public class FakeClock extends Clock
| Constructor and Description |
|---|
FakeClock() |
| Modifier and Type | Method and Description |
|---|---|
static FakeClock |
forCurrentTimeMillis(long millis) |
ZoneId |
getZone() |
Instant |
instant() |
void |
tick(long millis)
Tick the fake clock the given number of milliseconds.
|
void |
tick(long time,
TimeUnit unit) |
FakeClock |
withZone(ZoneId zoneId) |
equals, fixed, hashCode, millis, offset, system, systemDefaultZone, systemUTC, tick, tickMinutes, tickSecondsCopyright © 2016. All rights reserved.