コード例 #1
0
 public void testDrawWithNUllCanvas() {
   try {
     mTransitionDrawable.draw(null);
     fail("The method should check whether the canvas is null.");
   } catch (NullPointerException e) {
   }
 }
コード例 #2
0
 private void assertTransitionStart(int colorFrom) {
   mBitmap.eraseColor(0x00000000);
   mTransitionDrawable.draw(mCanvas);
   assertColorFillRect(mBitmap, 0, 0, CANVAS_WIDTH, CANVAS_HEIGHT, colorFrom);
 }