public class LambdaAnswer<T>
extends java.lang.Object
implements org.mockito.stubbing.Answer<T>
| Modifier and Type | Class and Description |
|---|---|
static interface |
LambdaAnswer.ValueToReturn<T> |
| Constructor and Description |
|---|
LambdaAnswer(boolean callRealMethod,
LambdaAnswer.ValueToReturn<T> callback) |
| Modifier and Type | Method and Description |
|---|---|
T |
answer(org.mockito.invocation.InvocationOnMock invocation) |
public LambdaAnswer(boolean callRealMethod,
LambdaAnswer.ValueToReturn<T> callback)
public T answer(org.mockito.invocation.InvocationOnMock invocation) throws java.lang.Throwable
answer in interface org.mockito.stubbing.Answer<T>invocation - the invocation on the mock.java.lang.Throwable - the throwable to be thrown