src/test/java/de/blau/android/util/BrokenAndroidTest.java
/**
     * TEst that we detect broken deiveces properly
     */
TEst that we detect broken deiveces properly
TEst that we detect broken deiveces properly
@Test
    public void brokenTest() {
        BrokenAndroid ba = new BrokenAndroid(ApplicationProvider.getApplicationContext());
        BrokenAndroid.Properties props = ba.getProperties("xiaomi", "daisy_sprout");
        assertNotNull(props);
        assertFalse(props.fullScreen);
        props = ba.getProperties("xiaomi", "something");
        assertNotNull(props);
        assertFalse(props.fullScreen);
        props = ba.getProperties("something", "something");
        assertNull(props);
        props = ba.getProperties("google", "sargo");
        assertNotNull(props);
        assertFalse(props.fullScreen);
        props = ba.getProperties("google", "something");
        assertNull(props);
        assertFalse(ba.isFullScreenBroken()); 
    }
@ Test public void brokenTest ( ) { BrokenAndroid ba = new BrokenAndroid ( ApplicationProvider . getApplicationContext ( ) ) ; BrokenAndroid . Properties props = ba . getProperties ( "xiaomi" , "daisy_sprout" ) ; assertNotNull ( props ) ; assertFalse ( props . fullScreen ) ; props = ba . getProperties ( "xiaomi" , "something" ) ; assertNotNull ( props ) ; assertFalse ( props . fullScreen ) ; props = ba . getProperties ( "something" , "something" ) ; assertNull ( props ) ; props = ba . getProperties ( "google" , "sargo" ) ; assertNotNull ( props ) ; assertFalse ( props . fullScreen ) ; props = ba . getProperties ( "google" , "something" ) ; assertNull ( props ) ; assertFalse ( ba . isFullScreenBroken ( ) ) ; }
TEst that we detect broken deiveces properly
TEst that we detect broken deiveces properly
// test wildcard // test non existent entry // test specific entry // test non existent entry // whatever is set as device for roboelectric