Code example for ImageView

Methods: layout

0
        assertThat(shadowOf(imageView).getImageLevel()).isEqualTo(2);
    } 
 
    @Test 
    public void testCallingLayoutOnParent(){ 
        imageView.layout(1,2,3,4);
        ShadowImageView shadowImageView = Robolectric.shadowOf(imageView);
        assertTrue(shadowImageView.onLayoutWasCalled());
    } 
}