leandro
12/17/2020, 12:01 AMJavier
12/17/2020, 12:21 AMMarc Knaup
12/17/2020, 12:34 AMClock instance provided through dependency injection. During unit testing a custom simulated clock instance is provided.leandro
12/17/2020, 12:35 AMClock interface in my SUT, but I am unsure how to test itMarc Knaup
12/17/2020, 12:36 AMMarc Knaup
12/17/2020, 12:37 AMclock.advance() to simulate a different time. Optionally it can state how much time has passed.Marc Knaup
12/17/2020, 12:38 AMTimestamp would be Instant for you I guess :)leandro
12/17/2020, 12:38 AMMarc Knaup
12/17/2020, 12:39 AMManualClock to my fluid-time library 🙂Marc Knaup
12/17/2020, 5:29 PMManualClock for unit testing:
https://github.com/fluidsonic/fluid-time#readme