Class TimeMachine
java.lang.Object
org.springframework.modulith.moments.support.Moments
org.springframework.modulith.moments.support.TimeMachine
- All Implemented Interfaces:
Now
Extension of
Moments
to publicly expose methods to shift time.- Author:
- Oliver Drotbohm
- See Also:
-
Constructor Summary
ConstructorDescriptionTimeMachine
(Clock clock, ApplicationEventPublisher events, MomentsProperties properties) -
Method Summary
Methods inherited from class org.springframework.modulith.moments.support.Moments
everyHour, everyMidnight, instant, today
-
Constructor Details
-
TimeMachine
- Parameters:
clock
- must not be null.events
- must not be null.properties
- must not be null.
-
-
Method Details