Sourced from mockito's releases.
1.3.0
- Introduced
Server::new_with_opts
,Server::new_with_opts_async
and theServerOpts
struct to allow configuring the server host, port and enabling auto-asserts (see next item)- Added the
assert_on_drop
server option that allows you to automatically callassert()
whenever your mocks go out of scope (defaults to false)- Expose
Server::socket_address()
to return the raw serverSocketAddr
- Use only required features for dependencies
- Accept
hyper::header::HeaderValue
as amatch_header()
valueThanks to
@​andrewtoth
@​alexander-jackson
a09f1f0
Bump to 1.3.00be6d7a
Merge pull request #191
from lipanski/server-opts3e2d466
Allow configuring the mock server (host, port, assert_on_drop)12cb5d0
Add sponsor button3cce903
Merge pull request #186
from alexander-jackson/feat/return-raw-socket-address2ed230b
feat: return raw socket address496f26d
Merge pull request #185
from andrewtoth/less-deps40138fe
Merge pull request #184
from andrewtoth/into-headernameefc7da1
Use only required features for dependencies10d1081
Add impl IntoHeaderName for &HeaderName