What are the best practices to test the time-dependent business logic in Spring Data and Spring Data REST projects? How to set different "system" time in one test method?
For example - we have two different algorithms to solve the same task - one algorithm is used until 11-00, another one - after 11-00.
Or we have a task that must be performed only on Mondays...