Releases: lipanski/mockito
Releases · lipanski/mockito
0.23.3
0.23.2
0.23.1
0.23.0
- [Breaking] Increased the minimum supported Rust toolchain to 1.35.0.
- Introduced the
Mock#expect_at_leastandMock#expect_at_mostfunctions to be used together withMock#assert. - Bumped the percent-encoding dependency.
- Introduced
cargo fmtformatting as part of CI.
Thanks to @kornelski @xneomac @thomasetter
0.22.0
0.21.0
0.20.0
- Introduced the
Matcher::PartialJsonandMatcher::PartialJsonStringvariants to match a JSON String partially (inclusion).
Thanks to @matteosister
0.19.0
- Introduced the
Mock#with_body_from_fnfunction, which allows generating the response body programmatically.
Thanks to @kornelski
0.18.0
- [Breaking] The minimum supported Rust version was increased to 1.32, after upgrading the rand crate dependency to 0.7.0.
- Introduced
Matcher::AllOf, which can be used to check a set of matchers in conjunction. It works in a similar way to the existingMatcher::AnyOf. - Introduced
Matcher::UrlEncodedto match key/value pairs in URL-encoded strings. - Introduced
Mock#match_queryto be able to match the URL query part distinctly from the path. The function supports all known matchers but works best withMatcher::UrlEncoded. The old behaviour of matching the query as part of the path argument in amockcall has been preserved, but usingMock#match_queryhas the effect of overriding that.
🎈 🎈 🎈