Desmond M. Talton
06/11/2024, 2:00 PMwiremock = new WireMockServer(8080);
wiremock.start();
wiremock.stubFor(
<http://WireMock.post|WireMock.post>(WireMock.urlEqualTo("v1/path"))
.willReturn(
WireMock.aResponse()
.withStatus(333)
.withHeader("Content-Type", "application/json")
.withBody(
"{"response"}")));
I made my status something weird like 333 just to ensure its actually invoking, because 333 isnt a normal status to get. and it isnt. so I presume I've done something incorrect in my setup. Any tips?Lee Turner
06/11/2024, 6:26 PM