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