About 50 results
Open links in new tab
  1. mocking - Swagger/OpenAPI mock server - Stack Overflow

    Feb 12, 2020 · SwaggerHub provides a mock server for OpenAPI 2.0 and 3.0 specs. Mocking is supported on both free and paid plans. To use the mock server, import your spec into SwaggerHub …

  2. How to mock Spring WebFlux WebClient? - Stack Overflow

    Jul 25, 2017 · To anyone looking to mock webclient, consider putting your webclient codes as a function in a service, because it is way easier to mock a service than the webclient

  3. How to use a Postman Mock Server - Stack Overflow

    I have followed the guide here to create a postman mock for a postman collection. The mock seem to be successfully created, but I have no idea how to use the mock service. I've been given a url fo...

  4. MockServer headers expectations are too strict - Stack Overflow

    May 24, 2022 · If I understand your problem correctly, then you want to mock a response for a given request, and the actual request contains more headers than what you've set up the mock server to …

  5. go - Create a mock server from OpenAPI spec - Stack Overflow

    Nov 14, 2023 · I am trying to develop a Go application that makes request to an HTTP server and process the response. I would like to mock this server when running go test ./.... My endpoint of …

  6. c# - Mocking HttpClient in unit tests - Stack Overflow

    Apr 5, 2016 · In other words, if you had a need to mock handshakes and acks and dns resolution, etc, then I could see why you would need to mock httpclient, but that's a very very uncommon practice. If …

  7. MockServer throws "Connection refused" while SpringBootTest

    Nov 24, 2021 · I just can't get the org.mock-server running. It gives me: org.mockserver.client.netty.SocketConnectionException: Unable to connect to socket …

  8. How can I mock server side requests in Playwright

    Jun 27, 2023 · I'm trying to find any docs or examples of how to mock server side requests with Playwright e2e testing. The official documentation on Playwright shares examples of how to …

  9. java - How to set up different responses for the same request to ...

    Apr 14, 2021 · 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 …

  10. Mocking a REST call with MockRestServiceServer - Stack Overflow

    Jun 13, 2016 · The method calls an external application using REST and it's this call that I am trying to mock in the JUnit test. The helper method makes the REST call using Spring's RestTemplate. In my …