Skip to content

Tag: wiremock

Wiremock stubbing error: “Unrecognized field “timestamp” (class com.github.tomakehurst.wiremock.common.Errors), not marked as ignorable”

here I come because I have not found any solution to my problem. I’m actually trying to stub a response with wiremock (that call to the Mocked service is be done via FeignClient). My intention is to get a fake response with the real feign client, not in a test, but in the real application. Therefore, In…

How to use WireMock’s response template in JUnit 5 Tests

I’m trying to use the Response Templating feature of WireMock, but it does not seem to work with the sample piece of code provided in the docs. This is a sample piece of code: Expected Output: Tests should pass. (meaning the {{request.url}} should be substituted with /test-url as a result of template re…