How to override/control the way the JVM gets the system date?
- by Abel Morelos
How do you mock-up/trick the JVM to get a date other that the current system date? I have a set of tests in JUnit I don't want to change, but instead I want to change a setting so that when the JVM retrieves the date it retrieves the date I want.
Have you done something similar before?
Thanks.