src/androidTest/java/de/blau/android/SplashTest.java
/**
     * Start splash, check that it in turn starts Main
     */
Start splash, check that it in turn starts Main
Start splash check that it in turn starts Main
@Test
    public void splash() {
        ActivityMonitor monitor = instrumentation.addMonitor(Main.class.getName(), null, false);
        Intent intent = new Intent(Intent.ACTION_MAIN);
        Splash splash = mActivityRule.launchActivity(intent);
        assertNotNull(splash);
        Main main = (Main) instrumentation.waitForMonitorWithTimeout(monitor, 5000); 
        assertNotNull(main);
    }
@ Test public void splash ( ) { ActivityMonitor monitor = instrumentation . addMonitor ( Main . class . getName ( ) , null , false ) ; Intent intent = new Intent ( Intent . ACTION_MAIN ) ; Splash splash = mActivityRule . launchActivity ( intent ) ; assertNotNull ( splash ) ; Main main = ( Main ) instrumentation . waitForMonitorWithTimeout ( monitor , 5000 ) ; assertNotNull ( main ) ; }
Start splash, check that it in turn starts Main
Start splash check that it in turn starts Main
// wait for main