dave0805/10/2021, 3:10 PM
? That would allow very simple overriding of
in unit tests... unless there are plans to add other functions to it?
ilya.gorbunov05/11/2021, 3:41 PM
would allow passing lambdas where
is expected. This is certainly not how we would like the API with clocks to look like. A helper constructor-like method could be introduced, though, e.g.
Clock(() -> Instant)
dave0805/11/2021, 3:43 PM
ilya.gorbunov05/11/2021, 4:12 PM
dave0805/12/2021, 9:09 AM
... since I need to modify it for certain tests in the same class. I use a base
and either subtract from it or add to it to modify the
I passed in to clock.
Paul Woitaschek05/15/2021, 6:21 AM