public class TestClock extends Clock
| Constructor and Description |
|---|
TestClock() |
| Modifier and Type | Method and Description |
|---|---|
void |
fastForward(@NonNull TemporalAmount temporalAmount) |
static TestClock |
fixed(@NonNull Instant instant,
@NonNull ZoneId zone) |
static TestClock |
fixed(@NonNull OffsetDateTime odt) |
ZoneId |
getZone() |
Instant |
instant() |
void |
rewind(@NonNull TemporalAmount temporalAmount) |
void |
set(@NonNull Instant instant) |
Clock |
withZone(@NonNull ZoneId zone) |
equals, hashCode, millis, offset, system, systemDefaultZone, systemUTC, tick, tickMinutes, tickSecondspublic void fastForward(@NonNull
@NonNull TemporalAmount temporalAmount)
public void rewind(@NonNull
@NonNull TemporalAmount temporalAmount)
public void set(@NonNull
@NonNull Instant instant)
public static TestClock fixed(@NonNull @NonNull Instant instant, @NonNull @NonNull ZoneId zone)
public static TestClock fixed(@NonNull @NonNull OffsetDateTime odt)
Copyright © 2023 Mercateo AG. All rights reserved.