Hey. Could I get some help here. I'm struggling t...
# help
d
Hey. Could I get some help here. I'm struggling to get my wiremock working properly. I have a quarkus project where I need to stub a call to an endpoint. This is what I have.
Copy code
wiremock = 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?
l
It is a little tricky without knowing what your request looks like but one thing could be whether you need a / on the front of the url ? Could you post more info about your request ?