Class ForwardsInvocations
java.lang.Object
org.mockito.internal.stubbing.defaultanswers.ForwardsInvocations
- All Implemented Interfaces:
Serializable
,Answer<Object>
Internal answer to forward invocations on a real instance.
- Since:
- 1.9.5
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionanswer
(InvocationOnMock invocation) private static boolean
compatibleReturnTypes
(Class<?> superType, Class<?> subType) private Method
getDelegateMethod
(Method mockMethod)
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
delegatedObject
-
-
Constructor Details
-
ForwardsInvocations
-
-
Method Details
-
answer
-
getDelegateMethod
- Throws:
NoSuchMethodException
-
compatibleReturnTypes
-