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

Refactor how the API allows matching #153

Closed cjstehno closed 2 years ago

cjstehno commented 2 years ago

Rework the outward facing interfaces to provide custom specialized matchers (of some sort) that will be converted to (or are compatible with) the underlying hamcrest matchers.

Hamcrest is a bit too finicky for the needs of the api and it would be nice to have something more specialized.

This will probably cause the existing api methods with matchers to be deprecated - removing in 4.0

cjstehno commented 2 years ago

This has been implemented in 3.1.0