Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub?
to your account
Mockito 2.20.1 added support for per-mock/stubbing strictness. It looks like the most straightforward option would be passing an additional argument to withSettings().
The text was updated successfully, but these errors were encountered:
For anyone wanting to use this in the meantime: You simply replace whenever with Mockito.lenient().`when`, or Mockito.mock(Foo::class.java, withSettings().lenient()) to make the entire mock lenient.
Sorry, something went wrong.
Actually, it looks like this may have been fixed 10 days ago with #353
It allows passing the lenient parameter to mock(...) but does not add a lenient version of whenever
No branches or pull requests