<How to write a wiremock for this use case and ver...
# stackoverflow
r
How to write a wiremock for this use case and verify a pact I have this controller @RequestMapping(value="/sayhi/{id}", method=RequestMethod.GET) public ResponseEntity sayHello(@PathVariable("id") String id) { //code to say hi } I have a wiremock which does urlPathMatching with a value for id - lets say "123" as follows WireMock.urlPathMatching("/sayhi/123") and then it returns a response with a body when executed on which I have put asserts. How can I make the urlPathMatching dynamic so that instead of 123 we can send anything and how do I...