Package de.bwaldvogel.mongo.backend
Class TestClock
- java.lang.Object
-
- java.time.Clock
-
- de.bwaldvogel.mongo.backend.TestClock
-
public class TestClock extends java.time.Clock
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TestClockdefaultClock()java.time.ZoneIdgetZone()java.time.Instantinstant()voidreset()voidwindForward(java.time.Duration duration)java.time.ClockwithZone(java.time.ZoneId zone)
-
-
-
Method Detail
-
defaultClock
public static TestClock defaultClock()
-
getZone
public java.time.ZoneId getZone()
- Specified by:
getZonein classjava.time.Clock
-
withZone
public java.time.Clock withZone(java.time.ZoneId zone)
- Specified by:
withZonein classjava.time.Clock
-
instant
public java.time.Instant instant()
- Specified by:
instantin classjava.time.Clock
-
windForward
public void windForward(java.time.Duration duration)
-
reset
public void reset()
-
-