I am setting up an acceptance test environment - this requires me to stand up my api before running my tests. On startup my api looks to hit an external service which I need to mock using wiremock.
I am using scalatra + sbt, so in my build.sbt config I write the code to create a new wiremock server and pock an endpoint.
val credentialsApiMockServer = new WireMockServer(4000)
This gives an error - java.lang.IllegalArgumentException: resource keystore not found.
When I run the same code in a real test, it works fine. Seems it's caused by this: Resources.getResource("keystore").toString(); in the wiremock config file.
Any ideas?
Thanks