I have a service which connects to a set of api's which i want to test.
I would like to make a Fake Service for my integration tests (to simulate failure situations)
I cannot simply use @RestController as they are not loaded during a test, and I looked into mockserver but I am unsure if it is what I am looking for, as I do not want my test to trigger a mock call, but rather my code should trigger the api call normally, simply using the mock server rather than an actual server (the base url is configurable so i can make my service point to a mock server)
UPDATE 1:
The only alternative I am seeing is possibly launching Cargo and deploying my service inside it?
UPDATE 2: I just found out about Wiremock. Could this be usable here?