<How to Mock requests only for certain tests and f...
# stackoverflow
r
How to Mock requests only for certain tests and for certain APIs with WireMock When I run WireMock to a test class, it is applied to all tests and all APIs

https://i.stack.imgur.com/1mrnx.png▾

RestResponse { code=404, body=No response could be served as there are no stub mappings in this WireMock instance. } How to Mock requests only for certain tests and for certain APIs with WireMock?