| Package | Description |
|---|---|
| no.digipost.time |
| Modifier and Type | Class and Description |
|---|---|
class |
ControllableClock
A controllable
Clock, typically intended for use in testing. |
| Modifier and Type | Method and Description |
|---|---|
<X extends Exception> |
ControllableClock.doWithTimeAdjusted(Consumer<TimeControllable> adjustClock,
ThrowingConsumer<Instant,X> action)
Perform an action with the clock adjusted, and have the clock reset to it's original state
after the action has finished.
|
<T,X extends Exception> |
ControllableClock.getWithTimeAdjusted(Consumer<TimeControllable> adjustClock,
ThrowingFunction<Instant,T,X> resolveValue)
Resolve a value with the clock adjusted, and have the clock reset to it's original state
after the operation has finished.
|
Copyright © 2019 Digipost. All rights reserved.