title: How to move system date time in spring boot for testing scheduler scenario?
body: <p>In our scheduler application, we are using <code>quartz scheduler</code> with <code>Spring Boot scheduler</code> which reads <code>System.currentTimeMillis()</code>.</p>
  
  <p>Spring boot version is <code>1.3.5</code>.</p>
  
  <p>We are able to test scenarios like weekly, monthly, yearly by creating <code>cron</code> expression w.r.t current date time. And we are trying to simulate some situation where we will change the <code>current system time</code> for future and simulate few scenarios.</p>
  
  <p>I know <code>quartz scheduler</code> is well tested and no need to test how it will behave in future. Still, if someone has implemented/tested with similar approach, and can share knowledge it will be a great help.</p>