Hey, guys,
So from time to time have the same issue with the same WireMock test, which remains unchanged over the time. Sew below.
The problem is that what was expected is exactly the same that was received. We are using version 2.3.1.
I remember the was a WireMock reporting bug: in other words, it might be an error reporting problem, not request matching one. But I cannot find it now. Has this been fixed? Should I just upgrade? Otherwise I simply cannot see what needs to be fixed in my code.
com.github.tomakehurst.wiremock.client.VerificationException: A request was unmatched by any stub mapping. Closest stub mapping was: expected:< POST /ClientApi/public/paymentservice/internal/transaction/createTransaction.do?userId=9999&sessionId=888843783&pageAttributeId=85&transactionSourceTypeId=5> but was:< POST /ClientApi/public/paymentservice/internal/transaction/createTransaction.do?userId=9999&sessionId=888843783&pageAttributeId=85&transactionSourceTypeId=5>
com.github.tomakehurst.wiremock.client.VerificationException: A request was unmatched by any stub mapping. Closest stub mapping was: expected:<
POST
/ClientApi/public/paymentservice/internal/transaction/createTransaction.do?userId=9999&sessionId=888843783&pageAttributeId=85&transactionSourceTypeId=5> but was:<
POST
/ClientApi/public/paymentservice/internal/transaction/createTransaction.do?userId=9999&sessionId=888843783&pageAttributeId=85&transactionSourceTypeId=5>
at com.github.tomakehurst.wiremock.client.VerificationException.forSingleUnmatchedRequest(VerificationException.java:43)
at com.github.tomakehurst.wiremock.client.VerificationException.forUnmatchedRequests(VerificationException.java:48)