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