Skip to content

Releases: lipanski/mockito

0.27.0

25 Jul 07:46
Compare
Choose a tag to compare
  • Added a Mock#matched() as a soft way of checking that a Mock, as opposed to the Mock#assert() method, which panics.

Thanks @max-b

0.26.0

28 Jun 10:40
Compare
Choose a tag to compare
  • [Breaking] Increased the minimum supported Rust version to 1.36.0.

0.25.3

28 Jun 10:21
Compare
Choose a tag to compare
  • Fixed and issue where spaces encoded as + wouldn't be interpreted properly by Matcher::UrlEncoded.

Thanks to @cakekindel

0.25.2

30 May 17:36
Compare
Choose a tag to compare
  • Improve error messages and the String representation of mocks, especially when it comes to their AllOf and AnyOf parts.

Thanks to @max-b

0.25.1

08 Apr 18:49
Compare
Choose a tag to compare
  • When creating multiple mocks that match the same request, the last defined mock should be the one matched forever, once the all other mocks have reached their expected amount of hits. See #99 and 96f3e30

0.25.0

05 Apr 10:34
Compare
Choose a tag to compare
  • You can provide different mocks (and especially mock responses) for subsequent requests to the same endpoint. See #99 and b0966f8
  • The 501 Mock Not Implemented response now comes with a content-length: 0 header, to prevent some clients from hanging.

Thanks to @xneomac

0.24.0

15 Mar 19:38
Compare
Choose a tag to compare
  • Added #[must_use] to Mock.create() calls.
  • A warning was introduced to remind about calling Mock.create() whenever a mock is initialized without it.

Thanks to @dbr

0.23.3

21 Feb 14:54
Compare
Choose a tag to compare
  • Fix compatibility with the assert-json-diff library (version 1.0.3)

0.23.2

19 Feb 20:13
Compare
Choose a tag to compare
  • Fix a problem regarding the assert-json-diff library.

Thanks to @vldm

0.23.1

05 Feb 17:05
Compare
Choose a tag to compare
  • Set the connection: close header on all responses delivered by Mockito as this is the default behaviour at the moment.