@Test public void setAdminStateInner () { adminManager.setAdminState(NEW_STATE, false); verify(notificationManager, never()).sendNotification(any()); ArgumentCaptor<ChaosNotification> notificationArgumentCaptor = ArgumentCaptor.forClass(ChaosNotification.class); adminManager.setAdminState(NEW_STATE, true); verify(notificationManager, times(1)).sendNotification(notificationArgumentCaptor.capture()); ChaosNotification chaosNotification = notificationArgumentCaptor.getValue(); assertEquals(chaosNotification.asMap(), expectedChaosNotification.asMap()); }
private void setAdminStateInner (AdminState newAdminState) { stateTimer = Instant.now(); adminState = newAdminState; }
AdminManager { private void setAdminStateInner (AdminState newAdminState) { stateTimer = Instant.now(); adminState = newAdminState; } }
AdminManager { private void setAdminStateInner (AdminState newAdminState) { stateTimer = Instant.now(); adminState = newAdminState; }  }
AdminManager { private void setAdminStateInner (AdminState newAdminState) { stateTimer = Instant.now(); adminState = newAdminState; }  AdminState getAdminState(); Duration getTimeInState(); boolean canRunExperiments(); boolean canRunSelfHealing(); boolean mustRunSelfHealing(); }
AdminManager { private void setAdminStateInner (AdminState newAdminState) { stateTimer = Instant.now(); adminState = newAdminState; }  AdminState getAdminState(); Duration getTimeInState(); boolean canRunExperiments(); boolean canRunSelfHealing(); boolean mustRunSelfHealing();  }