Merge branch '2.0.x'
This commit is contained in:
@@ -406,7 +406,7 @@ public class WiremockMockServerApplicationTests {
|
||||
MockRestServiceServer server = WireMockRestServiceServer.with(this.restTemplate) //
|
||||
.baseUrl("http://example.org") //
|
||||
.stubs("classpath:/mappings/url-path-pattern.json").build();
|
||||
assertThat(this.restTemplate.getForObject("http://example.org/123",
|
||||
assertThat(this.restTemplate.getForObject("http://example.org/123/url-path-pattern/",
|
||||
String.class)).isEqualTo("Hello Url Path Matcher");
|
||||
server.verify();
|
||||
}
|
||||
@@ -416,7 +416,7 @@ public class WiremockMockServerApplicationTests {
|
||||
MockRestServiceServer server = WireMockRestServiceServer.with(this.restTemplate) //
|
||||
.baseUrl("http://example.org") //
|
||||
.stubs("classpath:/mappings/url-matches.json").build();
|
||||
assertThat(this.restTemplate.getForObject("http://example.org/123",
|
||||
assertThat(this.restTemplate.getForObject("http://example.org/123/hello-url-matcher/",
|
||||
String.class)).isEqualTo("Hello Url Matcher");
|
||||
server.verify();
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"request": {
|
||||
"method": "GET",
|
||||
"urlPattern": "^.*[0-9]{3}$"
|
||||
"urlPattern": "^.*[0-9]{3}/hello-url-matcher/"
|
||||
},
|
||||
"response" : {
|
||||
"status" : 200,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"request": {
|
||||
"method": "GET",
|
||||
"urlPathPattern": "/([a-zA-Z0-9/-]*)"
|
||||
"urlPathPattern": "([a-zA-Z0-9/-]*)/url-path-pattern/"
|
||||
},
|
||||
"response" : {
|
||||
"status" : 200,
|
||||
|
||||
Reference in New Issue
Block a user