@Test public void testScalingFactorBoundaries () { doReturn(-1D, 2 * Math.sqrt(2) - 0.9, 0D).when(random).nextGaussian(); scheduler.getNextChaosTime(); verify(random, times(3)).nextGaussian(); }
@Override public Instant getNextChaosTime () { if (nextChaosTime != null) return nextChaosTime; if (lastChaosTime != null) return calculateNextChaosTime(); return calculateFirstChaosTime(); }
ChaosScheduler implements Scheduler { @Override public Instant getNextChaosTime () { if (nextChaosTime != null) return nextChaosTime; if (lastChaosTime != null) return calculateNextChaosTime(); return calculateFirstChaosTime(); } }
ChaosScheduler implements Scheduler { @Override public Instant getNextChaosTime () { if (nextChaosTime != null) return nextChaosTime; if (lastChaosTime != null) return calculateNextChaosTime(); return calculateFirstChaosTime(); }  }
ChaosScheduler implements Scheduler { @Override public Instant getNextChaosTime () { if (nextChaosTime != null) return nextChaosTime; if (lastChaosTime != null) return calculateNextChaosTime(); return calculateFirstChaosTime(); }  static ChaosSchedulerBuilder builder(); @Override Instant getNextChaosTime(); @Override void startExperiment(); }
ChaosScheduler implements Scheduler { @Override public Instant getNextChaosTime () { if (nextChaosTime != null) return nextChaosTime; if (lastChaosTime != null) return calculateNextChaosTime(); return calculateFirstChaosTime(); }  static ChaosSchedulerBuilder builder(); @Override Instant getNextChaosTime(); @Override void startExperiment();  }