Skip to content

Releases: lipanski/mockito

0.23.0

30 Jan 17:06
Compare
Choose a tag to compare
  • [Breaking] Increased the minimum supported Rust toolchain to 1.35.0.
  • Introduced the Mock#expect_at_least and Mock#expect_at_most functions to be used together with Mock#assert.
  • Bumped the percent-encoding dependency.
  • Introduced cargo fmt formatting as part of CI.

Thanks to @kornelski @xneomac @thomasetter

0.22.0

11 Nov 17:09
Compare
Choose a tag to compare
  • Applied the Rust 2018 edition.
  • Fixed an issue regarding usage of the AnyOf matcher for the path/query parts within a mock call.

Thanks to @thomasetter

0.21.0

25 Sep 18:38
Compare
Choose a tag to compare
  • Introduced a feature flag color (enabled by default), that controls whether the output is coloured and, more importantly, whether the colored crate is required.

Thanks to @repi

0.20.0

29 Jul 17:39
Compare
Choose a tag to compare
  • Introduced the Matcher::PartialJson and Matcher::PartialJsonString variants to match a JSON String partially (inclusion).

Thanks to @matteosister

0.19.0

20 Jul 08:44
Compare
Choose a tag to compare
  • Introduced the Mock#with_body_from_fn function, which allows generating the response body programmatically.

Thanks to @kornelski

0.18.0

11 Jul 18:38
Compare
Choose a tag to compare
  • [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 existing Matcher::AnyOf.
  • Introduced Matcher::UrlEncoded to match key/value pairs in URL-encoded strings.
  • Introduced Mock#match_query to be able to match the URL query part distinctly from the path. The function supports all known matchers but works best with Matcher::UrlEncoded. The old behaviour of matching the query as part of the path argument in a mock call has been preserved, but using Mock#match_query has the effect of overriding that.

🎈 🎈 🎈

0.17.1

28 Apr 06:49
Compare
Choose a tag to compare
  • Exclude CI & other unrelated files from packaging and turn the binary into an example.

Thanks to @ignatenkobrain

0.17.0

25 Mar 19:47
Compare
Choose a tag to compare
  • Support Transfer-Encoding: chunked.

Thanks to @loyd

0.16.0

18 Feb 17:43
Compare
Choose a tag to compare
  • Support HTTP/1.0 and working without Content-Length.
  • Allow overriding the Content-Length response header and skipping the response body entirely in the particular case of HEAD requests.

Thanks to @loyd

0.15.1

04 Feb 21:11
Compare
Choose a tag to compare

Thanks to @saks