cjstehno / ersatz

🤖 A simulated HTTP server for testing client code with configurable responses.
https://cjstehno.github.io/ersatz
Apache License 2.0
47 stars 5 forks source link

expose generic matcher method for request #87

Closed musketyr closed 6 years ago

musketyr commented 6 years ago

there should be method accepting Matcher<ClientRequest> on Request for more complex/not yet supported client request matching.

cjstehno commented 6 years ago

Makes sense. Something like:

Matcher<ClientRequest> crMatcher = ...

get('/foo').matches(crMatcher)
cjstehno commented 6 years ago

This has been fixed in development (1.6.2)