Questions tagged [wiremock]

Library used for stubbing and mocking web services.

Wiremock is a library written in Java by Tom Akehurst. It is used for stubbing and mocking web services. It supports HTTP response stubbing, request verification, proxy/intercept, record/playback of stubs and fault injection, and can be used from within a unit test or deployed into a test environment.

For more information see http://wiremock.org

894 questions
0
votes
1 answer

Retrofit does not callback when running Roboletric tests

Do not get a callback from Retrofit when testing (under JVM). Testing App with Robolectric (3.0), Wiremock (1.57:standalone) and Mockito (1.10.19). The App uses Retrofit (1.9) to connect with a back-end API. App has services that call the API via…
nordic70
  • 130
  • 2
  • 9
0
votes
3 answers

Espresso Wiremock Integration

I have developed a small application with login screen and also written some Espresso script to automate the same. I know that WireMock is a flexible library for stubbing and mocking web services. With the help of that one can create actual HTTP…
0
votes
1 answer

Gradle not satisfying dependencies?

I'm trying to build this project from github: https://github.com/tomakehurst/wiremock The thing is, when I download it and run gradle build, I don't think all the required jar files are being loaded onto the class path. I get this error when I…
Waffles
  • 349
  • 1
  • 8
  • 19
0
votes
1 answer

Exception in matchingJsonPath with wiremock

I'm trying to stub interaction (groovy code) stubInteraction( post(urlEqualTo("/someUrl")) .withRequestBody(matchingJsonPath("\$.firstName")) aResponse() .withBody("") …
MariuszS
  • 30,646
  • 12
  • 114
  • 155
-1
votes
0 answers

Converting HAR files to Wiremock Stubs?

I've got a HAR file, and I would like extract some request matching wiremock stubs from it. Does anyone have a way to automatically convert HAR files (see https://en.wikipedia.org/wiki/HAR_(file_format) ) to wiremock stub files?
Nicholas DiPiazza
  • 10,029
  • 11
  • 83
  • 152
-1
votes
1 answer

Micronaut JWKS keys endpoint mocked with Wiremock dynamic port for testing

I have a Micronaut application that uses JWT and JWKS. In my application yaml for tests, I have configured the jwks url as follows: micronaut: security: token: jwt: signatures: jwks: securityservice: …
dcalap
  • 1,048
  • 2
  • 13
  • 37
-1
votes
1 answer

Wiremock record apis return with "We're sorry but isp-portal doesn't work properly without JavaScript enabled. Please enable it to continue"

I try to evaluate WireMock to mock a third-party service. When trying to record some calls to the third-party service. I am issuing a call to the actual service e.g. curl -X GET…
Haim Raman
  • 11,508
  • 6
  • 44
  • 70
-1
votes
1 answer

Dynamic WireMock server in groovy test - Junit5

Regarding the article: https://wiremock.org/docs/junit-jupiter/ I tried doing my own server: @RegisterExtension static WireMockExtension wm1 = WireMockExtension.newInstance() …
tryingHard
  • 1,794
  • 4
  • 35
  • 74
-1
votes
1 answer

Running Wiremock standalone jar in MAC

I am trying to use wiremock standalone jar in Macbook Pro. I have java version 1.7. as below : java version "1.7.0_75" Java(TM) SE Runtime Environment (build 1.7.0_75-b13) Java HotSpot(TM) 64-Bit Server VM (build 24.75-b04, mixed mode) I am getting…
-1
votes
2 answers

How to Fix/Replace Wiremock.net

We are using two libraries WireMock.Net & WireMock.Net.RestClient which are reporting vulnerabilities in our dependency checker (NVD). Both of those libs are version 1.5.9. The following are listed as published vulnerabilities with most set at…
onesixtyfourth
  • 744
  • 9
  • 30
-1
votes
2 answers

Xpath matching with wiremock.net

I am trying to match request body in my wiremock.net mock service and send specific response back, only when 'code' tag contains value of '01.23.45.678.910'. here is the xml:
tabsandze
  • 23
  • 3
-1
votes
1 answer

WireMock affects other tests

All existing tests are annotated with @RunWith(SpringRunner.class) @SpringBootTest @ActiveProfiles({"test"}) I have added spring-cloud-contract-wiremock to my project and created a test with the following…
user3475366
  • 113
  • 1
  • 11
-1
votes
1 answer

how to implement mock server

I need to deploy and configure server that will response that I need. for example if I send:
seyshanbe
  • 31
  • 1
  • 4
-1
votes
2 answers

Mock/not-mock response on a per request basis in Integration test

I am writing Integration tests. I have a need where for a positive test case request hit an actual service and recieve the response. But for a negative test case I must get the mocked response. I am curious to understand if there is a way that I can…
singhal
  • 107
  • 2
  • 9
-1
votes
2 answers

WireMock set optional Parameters possibly?

i am very new here. I look up to setup die optional parameters in my Pattern. I have already read the documentary WireMock, but I have not found anything suitable. My question is, can I query the parameters in any order =? The next one would is ,y…
chan dee
  • 1
  • 2
1 2 3
59
60