public final class TestClock
extends java.time.Clock
| Modifier and Type | Method and Description |
|---|---|
java.time.ZoneId |
getZone() |
java.time.Instant |
instant() |
static TestClock |
now() |
static TestClock |
now(java.time.Clock clock) |
static TestClock |
now(long millis) |
void |
proceed(long amount,
java.time.temporal.TemporalUnit unit) |
java.time.Clock |
withZone(java.time.ZoneId zone) |
public static TestClock now()
public static TestClock now(java.time.Clock clock)
public static TestClock now(long millis)
public java.time.ZoneId getZone()
getZone in class java.time.Clockpublic java.time.Clock withZone(java.time.ZoneId zone)
withZone in class java.time.Clockpublic java.time.Instant instant()
instant in class java.time.Clockpublic void proceed(long amount,
java.time.temporal.TemporalUnit unit)