Package it.tidalwave.util.test
Class MockTimeProvider
java.lang.Object
it.tidalwave.util.test.MockTimeProvider
- All Implemented Interfaces:
TimeProvider
,Supplier<Instant>
A mock implementation of
TimeProvider
which returns a fixed value that can be set (the zero epoch instant
by default).- Since:
- 1.39
- Author:
- Fabrizio Giudici
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface it.tidalwave.util.TimeProvider
TimeProvider.DefaultTimeProvider
-
Field Summary
Fields inherited from interface it.tidalwave.util.TimeProvider
__INSTANCE
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface it.tidalwave.util.TimeProvider
currentLocalDateTime, currentZonedDateTime, get
-
Constructor Details
-
MockTimeProvider
public MockTimeProvider()
-
-
Method Details
-
currentInstant
- Specified by:
currentInstant
in interfaceTimeProvider
-