You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
See mockito/mockito#1272
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: