Releases: lipanski/mockito
Releases · lipanski/mockito
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_URL
ormockito::SERVER_ADDRESS
tomockito::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::AnyOf
variant, which takes a vector of matchers as argument. - The
Mock::with_body
andMock::with_body_from_file
functions now support binary content. - Multi-valued headers (e.g. the
Via
header) 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 Implemented
to501 Mock Not Found
. - Changed the response reason phrase for unparseable requests from
422 Unprocessable Entity
to422 Mock Error
.
Thanks to @kornelski
0.12.0
0.11.1
- Introduced
Matcher::JsonString
which works similarly to the existing Json matcher, except that it takes aString
as an argument. This can be useful for test suites which don't exposeserde_json
methods. - Renamed
Matcher::JSON
toMatcher::Json
and introduced a deprecation warning for the old matcher. - Added a debug mode to Mockito, which can be enabled by setting the
MOCKITO_DEBUG
environment variable before running tests.