After reading a value from application.conf, I'd like to create a java.io.File with that path.
val filePath= ConfigFactory.load().getString("filePath")
val file = application.getExistingFile(filePath).get
When running tests that run the above code, I get the following run-time error on the second line.
java.lang.RuntimeException: There is no started application
How can I retrieve a file in Play with a relative path both during application run-time & testing?