} @Test(expected = Resources.NotFoundException.class) public void testGetDrawableNullRClass() throws Exception { ResourceLoader resourceLoader = new EmptyResourceLoader(); resources = new Resources(null, null, null); ShadowResources.bind(resources, resourceLoader); assertThat(resources.getDrawable(-12345)).isInstanceOf(BitmapDrawable.class); } /** * given an R.anim.id value, will return an AnimationDrawable */ @Test public void testGetAnimationDrawable() { assertThat(resources.getDrawable(R.anim.test_anim_1)).isInstanceOf(AnimationDrawable.class); } @Test