[android] - harden orientation changes (#9128)

This commit is contained in:
Tobrun
2017-05-30 16:56:19 +02:00
committed by GitHub
parent 40a73b390b
commit fc495dec12
5 changed files with 143 additions and 114 deletions

View File

@@ -9,6 +9,7 @@ import org.mockito.MockitoAnnotations;
import static junit.framework.Assert.assertEquals;
import static junit.framework.Assert.assertNotSame;
import static org.mockito.Mockito.when;
public class IconTest {
@@ -18,6 +19,7 @@ public class IconTest {
@Before
public void beforeTest() {
MockitoAnnotations.initMocks(this);
when(bitmap.getConfig()).thenReturn(Bitmap.Config.ARGB_8888);
}
@Test