the right way test date & time in java

The practice to test applications that use time is to pass a Clock into any method that requires the current instant and a dependency injection framework is one way to achieve this.
Back to Top