@Test public void testSetLoadedFromResourceId() throws Exception { Drawable drawable = new TestDrawable(); ShadowDrawable shadowDrawable = shadowOf(drawable); shadowDrawable.setLoadedFromResourceId(99); assertThat(shadowDrawable.getLoadedFromResourceId()).isEqualTo(99); }
@Test public void testCreateFromResourceId_shouldSetTheId() throws Exception { Drawable drawable = ShadowDrawable.createFromResourceId(34758); ShadowDrawable shadowDrawable = shadowOf(drawable); assertThat(shadowDrawable.getLoadedFromResourceId()).isEqualTo(34758); }