dave08
05/10/2021, 3:10 PMfun interface? That would allow very simple overriding of now() in unit tests... unless there are plans to add other functions to it?ilya.gorbunov
05/11/2021, 3:41 PMClock would allow passing lambdas where Clock 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)dave08
05/11/2021, 3:43 PMilya.gorbunov
05/11/2021, 4:12 PMdave08
05/12/2021, 9:09 AMInstant var... since I need to modify it for certain tests in the same class. I use a base Instant and either subtract from it or add to it to modify the now var I passed in to clock.Paul Woitaschek
05/15/2021, 6:21 AMPaul Woitaschek
05/15/2021, 6:21 AM