Reputation: 2832
Just started using wiremock and come across a scenario where i want to stub a GET request with a specific json response.
When appending the json to the expected response with;
.withBodyFile("product.json"))
I get the exception java.io.FileNotFoundException: src/test/resources/__files/product.json (No such file or directory).
The thing is I have the json file at this location.
Upvotes: 5
Views: 3320
Reputation: 1500
If you are running standalone, you should make sure that your json file is in src/test/resources/__files
Upvotes: 5