Closed beltram closed 2 years ago
This looks good! I think we need to really make sure the documentation is clear though - what happens when two mocks have the same level of priority but interlacing conditions?
Indeed.
I improved tests to enlight this and documented this on the method : when 2 mocks have the same priority it fallbacks to insertion order
(same behaviour as original Wiremock btw).
I was relunctant in repeating this in lib.rs
because IMO this is a rather advanced usage of wiremock and could be confusing for newcomers
Merged and released!
Hi @LukeMathWalker, this is something from the original Wiremock I wanted to bring in wiremock-rs for a long time.
Let me know what you think