mockserver Questions
5
Solved
While testing a RestClient-Implementation I want to simulate a RestClientException that may be thrown by some RestTemplate-methods in that implementation f.e. the delete-method:
@Override
public ...
Shuttle asked 3/3, 2017 at 11:13
2
I have an orchestrator spring boot service that makes several async rest requests to external services and I would like to mock the responses of those services.
My code is:
mockServer.expect(req...
Tahsildar asked 13/12, 2017 at 12:45
3
Solved
I'm trying to create a mock server using wire-mock and I'm facing the following problem: I want to hit an URL like this /customers?customerId={customerId}&customerNo={customerNo}.
My question i...
Dobsonfly asked 29/3, 2018 at 6:38
2
I am trying to understand what is the difference between two frameworks which are MockServerClient( or org.mockserver.integration.ClientAndServer) and WireMockServer?Can they be exchanged? I read t...
Martini asked 9/8, 2019 at 0:15
5
Solved
My website is making post requests to Postman's mock server. I want to be able to see my request to make sure that it is coming across in the way that I expect. I have tried attaching a monitor but...
Loriannlorianna asked 21/6, 2018 at 16:33
2
I need to configure multiple expectations on an instance of MockRestServiceServer. The expectations are for two different URLs:
Call URL #1
Call URL #1 (for a second time)
Call URL #2
The same ...
Kayne asked 8/11, 2016 at 20:8
3
We have some APIs we use in our application that are not accessible from local developer machines due to firewalls.
I want to use mockServer to mock some of these API so we can develop locally.
Whe...
Randa asked 11/6, 2021 at 19:21
2
Solved
i'm having an issue when setting up the MockServerClient for multiple responses with the exact same request.
I read that with expectations with "Times" this might be done, but i coulnd't ...
Mercurial asked 14/4, 2021 at 11:54
0
I am using Mock Server with OPEN API 3.0 to mock data & expectations. I need to fetch a dummy image using Mock Server as per the given sample on:
https://www.mock-server.com/mock_server/getting...
Ynes asked 14/9, 2020 at 15:33
1
Solved
I have tests with:
org.springframework.test.web.client.MockRestServiceServer mockServer
When I run with any(String.class) or exact URL they work well:
mockServer.expect(requestTo(any(String.cla...
Werby asked 18/2, 2019 at 11:6
1
© 2022 - 2024 — McMap. All rights reserved.