I\'m newbie on Android and get stuck on testing a SplashScreen, basically what I\'m doing is trying to test that the splash screen stays on for 3s. this is the code for the
In Robolectric 3.0, IuriiO's answer would translate to-
ShadowLooper.pauseMainLooper(); Robolectric.getForegroundThreadScheduler().advanceBy(intervalMs); ShadowLooper.unPauseMainLooper();