@Test public void scheduleExperiments () { ArgumentCaptor<Boolean> captor = ArgumentCaptor.forClass(Boolean.class); doReturn(Collections.emptySet()).when(experimentManager).scheduleExperiments(captor.capture()); experimentManager.scheduleExperiments(); assertThat(captor.getValue(), is(false)); }
@Scheduled(fixedDelay = 1000 * 15) void scheduleExperiments () { if (automatedMode) { scheduleExperiments(false); } }
ExperimentManager { @Scheduled(fixedDelay = 1000 * 15) void scheduleExperiments () { if (automatedMode) { scheduleExperiments(false); } } }
ExperimentManager { @Scheduled(fixedDelay = 1000 * 15) void scheduleExperiments () { if (automatedMode) { scheduleExperiments(false); } }  }
ExperimentManager { @Scheduled(fixedDelay = 1000 * 15) void scheduleExperiments () { if (automatedMode) { scheduleExperiments(false); } }  void setExperimentBackoffPeriod(Duration experimentBackoffPeriod); boolean areExperimentsInProgress(); }
ExperimentManager { @Scheduled(fixedDelay = 1000 * 15) void scheduleExperiments () { if (automatedMode) { scheduleExperiments(false); } }  void setExperimentBackoffPeriod(Duration experimentBackoffPeriod); boolean areExperimentsInProgress();  }