C F I N P R S T
All Classes All Packages
All Classes All Packages
All Classes All Packages
C
- clearObservers() - Method in class pl.amazingcode.timeflow.TestTime
-
Remove all registered observers.
- clock() - Method in class pl.amazingcode.timeflow.TestTime
-
Returns the clock.
- clock() - Method in class pl.amazingcode.timeflow.Time
-
Returns the clock.
F
- fastBackward(Duration) - Method in class pl.amazingcode.timeflow.TestTime
-
Jump the clock backward by the given duration.
- fastForward(Duration) - Method in class pl.amazingcode.timeflow.TestTime
-
Jump the clock forward by the given duration.
I
- instance() - Static method in class pl.amazingcode.timeflow.Time
-
Returns the singleton instance of Time.
N
- now() - Method in class pl.amazingcode.timeflow.TestTime
-
Returns the current instant using the clock.
- now() - Method in class pl.amazingcode.timeflow.Time
-
Returns the current instant using the clock.
P
- pl.amazingcode.timeflow - package pl.amazingcode.timeflow
R
- registerObserver(Consumer<Clock>) - Method in class pl.amazingcode.timeflow.TestTime
-
Register an observer that will be notified every time the clock is changed by
TestTime.fastForward(Duration),TestTime.fastBackward(Duration)orTestTime.timeFlow(Duration, Instant, int). - resetClock() - Method in class pl.amazingcode.timeflow.TestTime
S
- setClock(Clock) - Method in class pl.amazingcode.timeflow.TestTime
- setClock(Clock) - Method in class pl.amazingcode.timeflow.Time
T
- testInstance() - Static method in class pl.amazingcode.timeflow.TestTime
-
Returns the singleton instance of TestTime.
- TestTime - Class in pl.amazingcode.timeflow
-
TestTime is a singleton class that provides access to the current time and allows to manipulate it both in production and test code.
- Time - Class in pl.amazingcode.timeflow
-
Time is a singleton class that provides access to the current time.
- Time() - Constructor for class pl.amazingcode.timeflow.Time
- timeFlow(Duration, Instant, int) - Method in class pl.amazingcode.timeflow.TestTime
-
Simulate time flow by jumping the clock forward by the given step every flowSpeedMillis.
All Classes All Packages