WireMock does not match on POST request
I have successfully got my tests working with WireMock on a GET request, so hoping this is not a configuration issue.
When I try to match on a POST request, I am simply not able to get it to recognize the URL and intercept the the post request. For a POST, am I required to match on more than the URL?
WireMock version : 'com.github.tomakehurst
wiremock2.5.1'
Here is my code :
stubFor(post(urlPathEqualTo("/data/"))
.willReturn(aResponse().withHeader("Content-Type",...