Skip to content

Releases: lipanski/mockito

0.30.0

18 Mar 17:50

Choose a tag to compare

  • Update the assert-json-diff dependency.

Thanks to @davidpdrsn

0.29.0

24 Jan 11:37

Choose a tag to compare

Thanks to @kornelski and @davidpdrsn

0.28.0

04 Nov 21:12

Choose a tag to compare

  • Introduced the Matcher::Binary variant for matching binary content.

Thanks to @torrefatto

0.27.0

25 Jul 07:46

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

Choose a tag to compare

  • [Breaking] Increased the minimum supported Rust version to 1.36.0.

0.25.3

28 Jun 10:21

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

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

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

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

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