@Test public void testReturnsFrameFromGifDecoder() throws IOException { Bitmap expected = Bitmap.createBitmap(100, 100, Bitmap.Config.ARGB_4444); when(gifDecoder.getNextFrame()).thenReturn(expected); assertEquals(expected, resourceDecoder.decode(gifDecoder, 100, 100).get()); }
@Test public void testReturnsValidId() { Util.assertClassHasValidId(GifFrameResourceDecoder.class, resourceDecoder.getId()); }