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:
-
-
Constructor Summary
Constructors
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ForwardsInvocations
public ForwardsInvocations(Object delegatedObject)
-
Method Details
-
answer
- Specified by:
answer
in interface Answer<Object>
- Parameters:
invocation
- the invocation on the mock.
- Returns:
- the value to be returned
- Throws:
Throwable
- the throwable to be thrown