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.
If you are running standalone, you should make sure that your json file is in src/test/resources/__files
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With