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

Proxying multiple URL using wiremock-docker

I have a project that utilizes microservices. I am trying to use wire-mock to create a test environment. How can I proxy multiple URLs using docker-compose. Here is my docker-compose file. networks: ft-simulator: external:…
John Hamlett IV
  • 495
  • 11
  • 23
0
votes
0 answers

Gradle: How can I embedde a mock service to start with my service

I am new to gradle.Working on a spring-boot application. For my tests I have created a mock service using wiremock and want to use that service for a particular endpoint. The original endpoint address is in the application.yml file and I have…
worrynerd
  • 705
  • 1
  • 12
  • 31
0
votes
1 answer

If WireMock query is not matched then defaults to overlapping endpoint instead of 404

Here are two endpoints Endpoint 1 { "request": { "method": "GET", "urlPath": "/event/event410" }, "response": { "status": 410, "jsonBody": {"status":"Error","message":"Target resource is no longer available - type 410 -"}, …
Mohammad
  • 134
  • 2
  • 10
0
votes
1 answer

How to mock a service using wiremock

I am trying to mock my ServiceA using Wiremock. But seems like there is some setup missing . I am getting this error : Error 404 Not…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/java" class="post-tag grid--cell" title="show questions tagged 'java'" rel="tag">java</a> <a href="../../questions/tagged/mocking" class="post-tag grid--cell" title="show questions tagged 'mocking'" rel="tag">mocking</a> <a href="../../questions/tagged/wiremock" class="post-tag grid--cell" title="show questions tagged 'wiremock'" rel="tag">wiremock</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Sep 08 '17 at 22:46">asked Sep 08 '17 at 22:46</time> <a href="../../users/4817108/worrynerd" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/4817108.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="worrynerd" /> </a> <div class="s-user-card--info"> <a href="../../users/4817108/worrynerd" class="s-user-card--link">worrynerd</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">705</li> <li class="s-award-bling s-award-bling__gold" title="1 gold badge">1</li> <li class="s-award-bling s-award-bling__silver" title="12 silver badge">12</li> <li class="s-award-bling s-award-bling__bronze" title="31 bronze badge">31</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-45297012"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>0</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status "> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/45297012/wiremock-custom-request-matcher-in-spring-cloud-contract" class="question-hyperlink">Wiremock custom request matcher in Spring Cloud Contract</a></h3> <div class="excerpt">I have been using wiremock for integration testing and I have custom request matcher created and used for authorization stubs. Is there any way I can use this matcher in spring cloud contract contract definitions? To be specific - I want to create…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/wiremock" class="post-tag grid--cell" title="show questions tagged 'wiremock'" rel="tag">wiremock</a> <a href="../../questions/tagged/spring-cloud-contract" class="post-tag grid--cell" title="show questions tagged 'spring-cloud-contract'" rel="tag">spring-cloud-contract</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Jul 25 '17 at 07:46">asked Jul 25 '17 at 07:46</time> <a href="../../users/5560238/vilkg" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/5560238.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="vilkg" /> </a> <div class="s-user-card--info"> <a href="../../users/5560238/vilkg" class="s-user-card--link">vilkg</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">625</li> <li class="s-award-bling s-award-bling__silver" title="6 silver badges">6</li> <li class="s-award-bling s-award-bling__bronze" title="7 bronze badges">7</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-45225430"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>0</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status "> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/45225430/wiremock-returns-image-that-s-corrupt" class="question-hyperlink">WireMock returns image that's corrupt</a></h3> <div class="excerpt">I've recorded a mock through WireMock that contains an image in the body. When I try to get the stub using Postman the response back is an image that won't load and the size of the content is roughly 20-50% larger than when I get the same image from…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/jetty" class="post-tag grid--cell" title="show questions tagged 'jetty'" rel="tag">jetty</a> <a href="../../questions/tagged/wiremock" class="post-tag grid--cell" title="show questions tagged 'wiremock'" rel="tag">wiremock</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Jul 20 '17 at 21:22">asked Jul 20 '17 at 21:22</time> <a href="../../users/5499522/suite22" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/5499522.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="suite22" /> </a> <div class="s-user-card--info"> <a href="../../users/5499522/suite22" class="s-user-card--link">suite22</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">476</li> <li class="s-award-bling s-award-bling__silver" title="3 silver badges">3</li> <li class="s-award-bling s-award-bling__bronze" title="16 bronze badges">16</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-44988033"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>0</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status "> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/44988033/wiremock-with-multiple-hosts-and-dnsmasq" class="question-hyperlink">WireMock with multiple hosts and dnsmasq?</a></h3> <div class="excerpt">I'm working on mocking endpoints for an iOS app that hits over a dozen different HTTPS hosts. Based on my understanding from the WireMock docs and this answer from the maintainer, WireMock is designed to proxy / mock only one host. My current plan…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/dnsmasq" class="post-tag grid--cell" title="show questions tagged 'dnsmasq'" rel="tag">dnsmasq</a> <a href="../../questions/tagged/wiremock" class="post-tag grid--cell" title="show questions tagged 'wiremock'" rel="tag">wiremock</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Jul 08 '17 at 15:54">asked Jul 08 '17 at 15:54</time> <a href="../../users/5499522/suite22" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/5499522.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="suite22" /> </a> <div class="s-user-card--info"> <a href="../../users/5499522/suite22" class="s-user-card--link">suite22</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">476</li> <li class="s-award-bling s-award-bling__silver" title="3 silver badges">3</li> <li class="s-award-bling s-award-bling__bronze" title="16 bronze badges">16</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-44970669"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>0</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status "> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/44970669/wiremock-ignore-all-request-beside-only-one" class="question-hyperlink">WireMock. Ignore all request beside only one</a></h3> <div class="excerpt">I start WireMock as standalone process: java -jar wiremock-standalone-2.6.0.jar --port 8080 -v OK. When http request content suffix /api/profile/Favorite/ the WireMock must return stub response. On all other requests must by ignore by WireMock and…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/wiremock" class="post-tag grid--cell" title="show questions tagged 'wiremock'" rel="tag">wiremock</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Jul 07 '17 at 12:22">asked Jul 07 '17 at 12:22</time> <a href="../../users/8164968/alex" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/8164968.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Alex" /> </a> <div class="s-user-card--info"> <a href="../../users/8164968/alex" class="s-user-card--link">Alex</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">1,857</li> <li class="s-award-bling s-award-bling__gold" title="4 gold badges">4</li> <li class="s-award-bling s-award-bling__silver" title="17 silver badges">17</li> <li class="s-award-bling s-award-bling__bronze" title="34 bronze badges">34</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-43887995"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>0</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status "> <strong>0</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/43887995/regex-in-request-body-not-working-for-wiremock" class="question-hyperlink">Regex in request body not working for WireMock</a></h3> <div class="excerpt">I am using WireMock to mock a third party response for a test case. Here is how I am trying to write the stub - wireMockRule.stubFor(post(urlMatching("/v1/url/([0-9]*)")) .withRequestBody(matching("\\{\"id\": \"([0-9]*)\",\"type\": " +…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/java" class="post-tag grid--cell" title="show questions tagged 'java'" rel="tag">java</a> <a href="../../questions/tagged/regex" class="post-tag grid--cell" title="show questions tagged 'regex'" rel="tag">regex</a> <a href="../../questions/tagged/junit" class="post-tag grid--cell" title="show questions tagged 'junit'" rel="tag">junit</a> <a href="../../questions/tagged/wiremock" class="post-tag grid--cell" title="show questions tagged 'wiremock'" rel="tag">wiremock</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked May 10 '17 at 09:04">asked May 10 '17 at 09:04</time> <a href="../../users/6065250/dhiraj" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/6065250.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Dhiraj" /> </a> <div class="s-user-card--info"> <a href="../../users/6065250/dhiraj" class="s-user-card--link">Dhiraj</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">113</li> <li class="s-award-bling s-award-bling__silver" title="3 silver badges">3</li> <li class="s-award-bling s-award-bling__bronze" title="7 bronze badges">7</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-43783951"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>0</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status "> <strong>0</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/43783951/mock-a-service-after-a-particular-execution-in-a-test-case" class="question-hyperlink">Mock a service after a particular execution in a test case</a></h3> <div class="excerpt">Consider the scenario as below : In a service - public method M1() { daoCall(); thirdPartyServiceCall(); } I am trying to write a test case for M1. I am preparing a mock for third party service using WireMock. testM1() { …</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/java" class="post-tag grid--cell" title="show questions tagged 'java'" rel="tag">java</a> <a href="../../questions/tagged/junit4" class="post-tag grid--cell" title="show questions tagged 'junit4'" rel="tag">junit4</a> <a href="../../questions/tagged/wiremock" class="post-tag grid--cell" title="show questions tagged 'wiremock'" rel="tag">wiremock</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked May 04 '17 at 13:15">asked May 04 '17 at 13:15</time> <a href="../../users/6065250/dhiraj" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/6065250.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Dhiraj" /> </a> <div class="s-user-card--info"> <a href="../../users/6065250/dhiraj" class="s-user-card--link">Dhiraj</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">113</li> <li class="s-award-bling s-award-bling__silver" title="3 silver badges">3</li> <li class="s-award-bling s-award-bling__bronze" title="7 bronze badges">7</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-43735130"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>0</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status "> <strong>0</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/43735130/spring-boot-profile-switch-real-or-mock-api" class="question-hyperlink">Spring Boot Profile Switch Real or Mock API</a></h3> <div class="excerpt">I have application.yml spring.active.profile=default,dev api-url: http://dev-api.com I have another file application-mock.yml which has below api-url related to wiremock. application-mock.yml api-url: http://localhost:7845 I have…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/spring" class="post-tag grid--cell" title="show questions tagged 'spring'" rel="tag">spring</a> <a href="../../questions/tagged/spring-boot" class="post-tag grid--cell" title="show questions tagged 'spring-boot'" rel="tag">spring-boot</a> <a href="../../questions/tagged/spring-profiles" class="post-tag grid--cell" title="show questions tagged 'spring-profiles'" rel="tag">spring-profiles</a> <a href="../../questions/tagged/wiremock" class="post-tag grid--cell" title="show questions tagged 'wiremock'" rel="tag">wiremock</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked May 02 '17 at 10:04">asked May 02 '17 at 10:04</time> <a href="../../users/2057006/user2057006" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/2057006.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="user2057006" /> </a> <div class="s-user-card--info"> <a href="../../users/2057006/user2057006" class="s-user-card--link">user2057006</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">617</li> <li class="s-award-bling s-award-bling__gold" title="4 gold badges">4</li> <li class="s-award-bling s-award-bling__silver" title="15 silver badges">15</li> <li class="s-award-bling s-award-bling__bronze" title="28 bronze badges">28</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-43528980"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>0</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status "> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/43528980/wiremock-and-spring-integration" class="question-hyperlink">Wiremock and Spring Integration</a></h3> <div class="excerpt">I have a flow in Spring integration, which works as follows Read from MQ--> Do a Message Transformation-->Send the transformed message to an Api Now in my integration test, I am trying to mock the Api out and I tried 2 flavours but did not…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/spring-integration" class="post-tag grid--cell" title="show questions tagged 'spring-integration'" rel="tag">spring-integration</a> <a href="../../questions/tagged/spring-test" class="post-tag grid--cell" title="show questions tagged 'spring-test'" rel="tag">spring-test</a> <a href="../../questions/tagged/spring-restcontroller" class="post-tag grid--cell" title="show questions tagged 'spring-restcontroller'" rel="tag">spring-restcontroller</a> <a href="../../questions/tagged/wiremock" class="post-tag grid--cell" title="show questions tagged 'wiremock'" rel="tag">wiremock</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Apr 20 '17 at 20:09">asked Apr 20 '17 at 20:09</time> <a href="../../users/6027579/krisrr3" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/6027579.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="krisrr3" /> </a> <div class="s-user-card--info"> <a href="../../users/6027579/krisrr3" class="s-user-card--link">krisrr3</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">77</li> <li class="s-award-bling s-award-bling__silver" title="1 silver badges">1</li> <li class="s-award-bling s-award-bling__bronze" title="16 bronze badges">16</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-43077381"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>0</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status "> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/43077381/wiremock-stub-working-like-echo" class="question-hyperlink">Wiremock stub working like ECHO</a></h3> <div class="excerpt">my JS application is using wiremocks to mock backend calls. Is it possible to create such Wiremock definition in order to create echo service (the body JSON content of response shoould be the same as body JSON content of request). </div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/spring-mvc" class="post-tag grid--cell" title="show questions tagged 'spring-mvc'" rel="tag">spring-mvc</a> <a href="../../questions/tagged/wiremock" class="post-tag grid--cell" title="show questions tagged 'wiremock'" rel="tag">wiremock</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Mar 28 '17 at 18:36">asked Mar 28 '17 at 18:36</time> <a href="../../users/4247632/p-k" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/4247632.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="P.K." /> </a> <div class="s-user-card--info"> <a href="../../users/4247632/p-k" class="s-user-card--link">P.K.</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">1,746</li> <li class="s-award-bling s-award-bling__gold" title="6 gold badges">6</li> <li class="s-award-bling s-award-bling__silver" title="25 silver badges">25</li> <li class="s-award-bling s-award-bling__bronze" title="62 bronze badges">62</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-42680237"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>0</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status "> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/42680237/does-spring-cloud-contract-dsl-support-bodyfilename" class="question-hyperlink">Does Spring Cloud Contract DSL support bodyFileName</a></h3> <div class="excerpt">I am trying to define a contract using spring-cloud-contract framework that for a specific request returns a response with big body. This body is always the same. So I would prefer to store this body in some static file. And generated Wiremock…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/spring" class="post-tag grid--cell" title="show questions tagged 'spring'" rel="tag">spring</a> <a href="../../questions/tagged/spring-cloud" class="post-tag grid--cell" title="show questions tagged 'spring-cloud'" rel="tag">spring-cloud</a> <a href="../../questions/tagged/wiremock" class="post-tag grid--cell" title="show questions tagged 'wiremock'" rel="tag">wiremock</a> <a href="../../questions/tagged/spring-cloud-contract" class="post-tag grid--cell" title="show questions tagged 'spring-cloud-contract'" rel="tag">spring-cloud-contract</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Mar 08 '17 at 19:27">asked Mar 08 '17 at 19:27</time> <a href="../../users/1348763/dmitry" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/1348763.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Dmitry" /> </a> <div class="s-user-card--info"> <a href="../../users/1348763/dmitry" class="s-user-card--link">Dmitry</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">119</li> <li class="s-award-bling s-award-bling__silver" title="1 silver badges">1</li> <li class="s-award-bling s-award-bling__bronze" title="4 bronze badges">4</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-42485677"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>0</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status answered-accepted"> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/42485677/mock-rest-api-fake-domain" class="question-hyperlink">Mock rest api & fake domain</a></h3> <div class="excerpt">I was trying to create a basic mock server, that allows some simple JSON responses for REST calls. I wanted everything to run on node, as this is the current dev environment for the team, so I came up with apimocker, jswiremock, etc. which all work…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/javascript" class="post-tag grid--cell" title="show questions tagged 'javascript'" rel="tag">javascript</a> <a href="../../questions/tagged/mocking" class="post-tag grid--cell" title="show questions tagged 'mocking'" rel="tag">mocking</a> <a href="../../questions/tagged/automated-tests" class="post-tag grid--cell" title="show questions tagged 'automated-tests'" rel="tag">automated-tests</a> <a href="../../questions/tagged/wiremock" class="post-tag grid--cell" title="show questions tagged 'wiremock'" rel="tag">wiremock</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Feb 27 '17 at 12:19">asked Feb 27 '17 at 12:19</time> <a href="../../users/3966786/andre-kirchner" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/3966786.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="André Kirchner" /> </a> <div class="s-user-card--info"> <a href="../../users/3966786/andre-kirchner" class="s-user-card--link">André Kirchner</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">162</li> <li class="s-award-bling s-award-bling__bronze" title="13 bronze badges">13</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="s-pagination pager fr"> <a class="s-pagination--item" href="../../questions/tagged/wiremock_page=56" rel="prev" title="Go to page 56">Prev </a> <a class="s-pagination--item" href="../../questions/tagged/wiremock_page=1" rel="" title="Go to page 1">1</a> <a class="s-pagination--item" href="../../questions/tagged/wiremock_page=2" rel="" title="Go to page 2">2</a> <a class="s-pagination--item" href="../../questions/tagged/wiremock_page=3" rel="" title="Go to page 3">3</a> <div class="s-pagination--item s-pagination--item__clear">…</div> <a class="s-pagination--item" href="../../questions/tagged/wiremock_page=59" rel="" title="Go to page 59">59</a> <a class="s-pagination--item" href="../../questions/tagged/wiremock_page=60" rel="" title="Go to page 60">60</a> <a class="s-pagination--item" href="../../questions/tagged/wiremock_page=58" rel="next" title="Go to page 58"> Next</a> </div> </div> </div> </div> </div> <script src="../../static/js/stack-icons.js"></script> <script src="../../static/js/fromnow.js"></script> </body> </html>