OngoingStubbing<T> |
OngoingStubbing.then(Answer<?> answer) |
Sets a generic Answer for the method.
|
OngoingStubbing<T> |
OngoingStubbing.thenAnswer(Answer<?> answer) |
Sets a generic Answer for the method.
|
OngoingStubbing<T> |
OngoingStubbing.thenCallRealMethod() |
Sets the real implementation to be called when the method is called on a mock object.
|
OngoingStubbing<T> |
OngoingStubbing.thenReturn(T value) |
Sets a return value to be returned when the method is called.
|
OngoingStubbing<T> |
OngoingStubbing.thenReturn(T value,
T... values) |
Sets consecutive return values to be returned when the method is called.
|
OngoingStubbing<T> |
OngoingStubbing.thenThrow(Class<? extends Throwable> throwableType) |
Sets a Throwable type to be thrown when the method is called.
|
OngoingStubbing<T> |
OngoingStubbing.thenThrow(Class<? extends Throwable> toBeThrown,
Class<? extends Throwable>... nextToBeThrown) |
Sets Throwable classes to be thrown when the method is called.
|
OngoingStubbing<T> |
OngoingStubbing.thenThrow(Throwable... throwables) |
Sets Throwable objects to be thrown when the method is called.
|
<T> OngoingStubbing<T> |
LenientStubber.when(T methodCall) |
Allows declaring the method to stub.
|