skip to content

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 pageshow

explore

questions

page 2 of 2

In WireMock, what does urlPathTemplate() match, and what does withPathParam() add?

level: middleimportance: nice to knowfreq 42%

basics

~20 s

WireMock'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.

open as a page

showing 31–31 of 31