Releases: lipanski/mockito
Releases · lipanski/mockito
0.17.0
0.16.0
0.15.1
0.15.0
- [Breaking] The mock sever will get a dynamically assigned port, though it will try port 1234 first. You will need to change the way you set the server URL - from
mockito::SERVER_URLormockito::SERVER_ADDRESStomockito::server_url()ormockito::server_address().
Thanks to @kornelski
0.14.1
- Refactored the server checks - thanks to @kornelski
- Debug mode: use the log crate instead of the old custom logger - thanks to @kornelski
- Keep compatibility with older toolchains - thanks to @lucab
- Introduce clippy - thanks to @macisamuele
0.14.0
~~This is the release candidate for the 1.0.0 🎉 ~~
- [Breaking] Fully deprecated
Matcher::JSON, in favour ofMatcher::Json. - Replace http-muncher with httparse. This fixed the issues regarding the failing Windows tests. See #51 and #41
- Updated dependencies.
Thanks to @sterlingjensen, @otavio, @galaxie and @mikrostew
0.13.0
- Introduced the
Matcher::AnyOfvariant, which takes a vector of matchers as argument. - The
Mock::with_bodyandMock::with_body_from_filefunctions now support binary content. - Multi-valued headers (e.g. the
Viaheader) are checked over all values. The previous implementation was looking only for the first found header value. - Changed the response reason phrase for non-matching requests from
501 Not Implementedto501 Mock Not Found. - Changed the response reason phrase for unparseable requests from
422 Unprocessable Entityto422 Mock Error.
Thanks to @kornelski
0.12.0
0.11.1
- Introduced
Matcher::JsonStringwhich works similarly to the existing Json matcher, except that it takes aStringas an argument. This can be useful for test suites which don't exposeserde_jsonmethods. - Renamed
Matcher::JSONtoMatcher::Jsonand introduced a deprecation warning for the old matcher. - Added a debug mode to Mockito, which can be enabled by setting the
MOCKITO_DEBUGenvironment variable before running tests.