No description, website, or topics provided.
Scala
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
project
src
.gitignore
.travis.yml
LICENSE
README.md

README.md

play-time

Build Status Download

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

-Dfeature.fakeDate=yyyy-MM-dd

License

This code is open source software licensed under the Apache 2.0 License.