Whats the simpler way to mock call to classes from the `java.time` classes in Scala?

37 Views Asked by At

In javascript for example the jest library has a facility to kind of travel through time to test time dependent code, here, or in ruby on rails you have facilities to mock time like this. I'm looking for something similar in Scala that could allow me to mock calls to LocalDateTime.now from java.time for example, but I haven't found anything like the tools I just mention or how to mock LocalDateTime.now

0

There are 0 best solutions below