/** directly activate the live activity with no startup. */ @Test public void directActivityActivate() { activeLiveActivity.activate(); assertActiveActivityState( activeLiveActivity, true, 0, true, 0, ActivityState.ACTIVATE_ATTEMPT, ActivityState.UNKNOWN); Mockito.verify(remoteControllerClient, Mockito.times(1)).activateActivity(activeLiveActivity); }
/** activate the live activity, then shut it down. */ @Test public void directActivityActivateAndShutdown() { activeLiveActivity.activate(); activeLiveActivity.shutdown(); assertActiveActivityState( activeLiveActivity, false, 0, false, 0, ActivityState.SHUTDOWN_ATTEMPT, ActivityState.UNKNOWN); Mockito.verify(remoteControllerClient, Mockito.times(1)).activateActivity(activeLiveActivity); Mockito.verify(remoteControllerClient, Mockito.times(1)).shutdownActivity(activeLiveActivity); }