Package org.mockito.stubbing
Interface LenientStubber
-
- All Superinterfaces:
BaseStubber
@NotExtensible public interface LenientStubber extends BaseStubber
Used for declaring optional stubbings withMockito.lenient()
- Since:
- 2.20.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <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 Detail
-
when
<T> OngoingStubbing<T> when(T methodCall)
Allows declaring the method to stub. SeeMockito.when(Object)
. Needed for classic stubbing with when().then()- Since:
- 2.20.0
-
-