Stand-In Definitions
How one stand-in entry is written: the predicate that picks it out of arriving traffic and the canned reply it returns. Interviewers probe it because a wrong match fakes the wrong dependency.
on this pageshowhide
explore
- Incoming Request Criteria18 questions
- URL and Method4 questions
- Headers and Query4 questions
- Body Matchers5 questions
- Overlap and Priority5 questions
- Canned Replies13 questions
- Literal Bodies and Files4 questions
- Response Templating5 questions
- Conversation State4 questions
questions
page 2 of 2In WireMock, what does urlPathTemplate() match, and what does withPathParam() add?
level: middleimportance: nice to knowfreq 42%
basics
~20 sWireMock's urlPathTemplate matches a request path against a template such as /bindery/v2/orders/{orderId}, ignoring the query string. Each placeholder becomes a named variable. WireMock's withPathParam then constrains one of those variables with a value matcher such as equalTo or matching.
showing 31–31 of 31