Package org.mockito.stubbing
Interface LenientStubber
- All Superinterfaces:
BaseStubber
Used for declaring optional stubbings with
Mockito.lenient()
- Since:
- 2.20.0
-
Method Summary
Modifier and TypeMethodDescription<T> OngoingStubbing<T>
when
(T methodCall) Allows declaring the method to stub.Methods inherited from interface org.mockito.stubbing.BaseStubber
doAnswer, doCallRealMethod, doNothing, doReturn, doReturn, doThrow, doThrow, doThrow
-
Method Details
-
when
Allows declaring the method to stub. SeeMockito.when(Object)
. Needed for classic stubbing with when().then()- Since:
- 2.20.0
-