public class PredefinedBehaviourAnswer
extends java.lang.Object
implements org.mockito.stubbing.Answer<java.lang.Object>
| Constructor and Description |
|---|
PredefinedBehaviourAnswer(java.util.List<SpyBehaviour> registeredBehaviours,
java.util.function.Function<java.lang.Object,java.lang.Object> realMethodResultWrapper) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
answer(org.mockito.invocation.InvocationOnMock invocation) |
public PredefinedBehaviourAnswer(java.util.List<SpyBehaviour> registeredBehaviours, java.util.function.Function<java.lang.Object,java.lang.Object> realMethodResultWrapper)
public java.lang.Object answer(org.mockito.invocation.InvocationOnMock invocation)
throws java.lang.Throwable
answer in interface org.mockito.stubbing.Answer<java.lang.Object>invocation - the invocation on the mock.java.lang.Throwable - the throwable to be thrown