@Test public void clockCanBeInitialized() { ManualClock clock = new ManualClock(10, SECONDS); assertThat(clock.currentTimeMillis()).isEqualTo(10000); }
@Override public long currentTimeMillis() { return currentTimeMillis.get(); }
ManualClock implements Clock { @Override public long currentTimeMillis() { return currentTimeMillis.get(); } }
ManualClock implements Clock { @Override public long currentTimeMillis() { return currentTimeMillis.get(); } ManualClock();  ManualClock(long time, TimeUnit unit); }
ManualClock implements Clock { @Override public long currentTimeMillis() { return currentTimeMillis.get(); } ManualClock();  ManualClock(long time, TimeUnit unit); @Override long currentTimeMillis(); void setTime(long time, TimeUnit unit); void waitFor(long duration, TimeUnit unit); }
ManualClock implements Clock { @Override public long currentTimeMillis() { return currentTimeMillis.get(); } ManualClock();  ManualClock(long time, TimeUnit unit); @Override long currentTimeMillis(); void setTime(long time, TimeUnit unit); void waitFor(long duration, TimeUnit unit);  }