Constructor and Description |
---|
MockClock()
Creates a mock clock whose time is
Instant.EPOCH . |
MockClock(Instant instant)
Creates a mock clock whose time is the given instant.
|
Modifier and Type | Method and Description |
---|---|
ZoneId |
getZone() |
Instant |
instant() |
Clock |
withZone(ZoneId zone) |
equals, fixed, hashCode, millis, offset, system, systemDefaultZone, systemUTC, tick, tickMinutes, tickSeconds
public MockClock()
Instant.EPOCH
.public MockClock(Instant instant)
Copyright © 2019. All rights reserved.