/** Startup the live activity */ @Test public void directActivityStartup() { activeLiveActivity.startup(); assertActiveActivityState( activeLiveActivity, true, 0, false, 0, ActivityState.STARTUP_ATTEMPT, ActivityState.UNKNOWN); Mockito.verify(remoteControllerClient, Mockito.times(1)).startupActivity(activeLiveActivity); }
/** Startup the live activity, then shut it down. */ @Test public void directActivityStartupAndShutdown() { activeLiveActivity.startup(); activeLiveActivity.shutdown(); assertActiveActivityState( activeLiveActivity, false, 0, false, 0, ActivityState.SHUTDOWN_ATTEMPT, ActivityState.UNKNOWN); Mockito.verify(remoteControllerClient, Mockito.times(1)).startupActivity(activeLiveActivity); Mockito.verify(remoteControllerClient, Mockito.times(1)).shutdownActivity(activeLiveActivity); }