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]"
Set Date Using System Property
You can pass in the Java system property to set the date to whatever you want for local testing purposes as follows
This code is open source software licensed under the Apache 2.0 License.