Top "Wiremock" questions

Library used for stubbing and mocking web services.

Is it possible to simulate connection timeout using wiremock tools?

I know that it can simulate SocketTimeoutException by using withFixedDelay, but what about ConnectionTimeoutException?

java wiremock
Wiremock not matching regex

I'm using wiremock to mock certain requests and their respective response, but I'm trying to add a regex. Unfortunately, this …

regex mocking url-pattern wiremock
How to use WireMock on a Feign client in a Spring Boot application?

I have a class that makes use of a Feign client. Previously I used Mockito and gave a stored response …

java spring spring-boot wiremock feign
WireMock in Junit in Jenkins - BindException: Address already in use

I have some Junit test in which I use WireMock. Locally the tests pass, but on Jenkins I get an …

java jenkins junit wiremock
Wiremock Stand alone - How to manipulate response with request data

I was trying to implement mocking of POST REST call using Wiremock Standalone server. I am faced with a challenge …

java mocking stub wiremock
Using WireMock how can we verify that a request of a given url has NOT been made?

Given the following unit test, I can easily test if a request of a particular url has been made. Is …

java wiremock
How can I make WireMock port more dynamic to use it for testing service

I am using wiremock to mock github api to do some testing of my service. The service calls github api. …

spring spring-boot github-api wiremock
Wiremock Standalone with Dynamic response

I have a standalone instance of Wiremock server. The mappings are stored as json files under the mappings folder. I …

spring-boot wiremock
Wiremock error: Request was not matched as there were no stubs registered

@ClassRule public static WireMockRule wireMockRule = new WireMockRule(9898); @Test public void createXmlFile() { stubFor(get(urlPathEqualTo("/data/racing/")) .willReturn(aResponse() .withBody(loadJSONFile("…

spring-cloud wiremock spring-cloud-contract
Connection refused when using wiremock

I have this piece of code in a Junit, where I clearly set the port to 8888 when(clientUtils.getLinkUrl(eq(…

java spring-boot junit mockito wiremock