Skip to content

Commit

Permalink
refactor: avoid the use of urlPathTemplate only available since wirem…
Browse files Browse the repository at this point in the history
…ock 3.x
  • Loading branch information
aureamunoz committed Jan 17, 2024
1 parent c1ed937 commit 0d731dc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ int httpsPort() {
protected Map<String, String> initWireMock(WireMockServer server) {
server.stubFor(WireMock.get("/hello")
.willReturn(aResponse().withBody(FAST_RESPONSE).withStatus(200)));
server.stubFor(WireMock.get("/hello/v2/quarkus%2Fquarkus")
.willReturn(aResponse().withBody(FAST_RESPONSE).withStatus(200)));
return Map.of("fast-service", "localhost:8443");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ protected Map<String, String> initWireMock(WireMockServer server) {
server.stubFor(WireMock.get("/hello")
.willReturn(aResponse().withFixedDelay(1000)
.withBody(SLOW_RESPONSE).withStatus(200)));
server.stubFor(WireMock.get("/hello/v2/quarkus%2Fquarkus")
.willReturn(aResponse().withFixedDelay(1000)
.withBody(SLOW_RESPONSE).withStatus(200)));
return Map.of("slow-service", "localhost:8444");
}
}

0 comments on commit 0d731dc

Please sign in to comment.