public class ForwardsInvocations extends java.lang.Object implements Answer<java.lang.Object>, java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
private java.lang.Object |
delegatedObject |
private static long |
serialVersionUID |
| Constructor and Description |
|---|
ForwardsInvocations(java.lang.Object delegatedObject) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
answer(InvocationOnMock invocation) |
private static boolean |
compatibleReturnTypes(java.lang.Class<?> superType,
java.lang.Class<?> subType) |
private java.lang.reflect.Method |
getDelegateMethod(java.lang.reflect.Method mockMethod) |
private static final long serialVersionUID
private java.lang.Object delegatedObject
public java.lang.Object answer(InvocationOnMock invocation) throws java.lang.Throwable
private java.lang.reflect.Method getDelegateMethod(java.lang.reflect.Method mockMethod)
throws java.lang.NoSuchMethodException
java.lang.NoSuchMethodExceptionprivate static boolean compatibleReturnTypes(java.lang.Class<?> superType,
java.lang.Class<?> subType)