Sometimes you need to have your service pretend it is some date the future in order to test certain behaviour.
This little library allows you to do just that.
Currently supports fake dates. More specific fake dateTime to be added.
resolvers += Resolver.bintrayRepo("hmrc", "releases") libraryDependencies += "uk.gov.hmrc" %% "play-time" % "[INSERT-VERSION]"
You can pass in the Java system property to set the date to whatever you want for local testing purposes as follows
-Dfeature.fakeDate=yyyy-MM-dd
This code is open source software licensed under the Apache 2.0 License.