Issue matching part of request body's using WireMock's matchingJsonPath
using:
junit-jupiter 5.11.3
wiremock 3.4.2
I am using Wiremock on an integration test. I want to make sure that the data we generate for the request body (in a nested json object called data) matches what is expected (the full request is much too big to test in its entirety), so I have a JUnit5 parameterized test receiving the data, and I tried using matchingJsonPath:
@ParameterizedTest
@MethodSource("dataToSend")
void test(MyData data) {
wireMock.stubFor(post(urlEqualTo("my-url"))...