IMockInvocationpublic class DelegatingMockInvocation extends java.lang.Object implements IMockInvocation
| Constructor | Description |
|---|---|
DelegatingMockInvocation(IMockInvocation delegate) |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.Object |
callRealMethod() |
Delegates this method invocation to the real object underlying this mock object,
including any method arguments.
|
java.lang.Object |
callRealMethodWithArgs(java.lang.Object... arguments) |
Delegates this method invocation to the real object underlying this mock object,
replacing the original method arguments with the specified arguments.
|
java.util.List<java.lang.Object> |
getArguments() |
The arguments for the invocation.
|
IMockMethod |
getMethod() |
The invoked method.
|
IMockObject |
getMockObject() |
The mock object that received the invocation.
|
public DelegatingMockInvocation(IMockInvocation delegate)
public IMockObject getMockObject()
IMockInvocationgetMockObject in interface IMockInvocationpublic IMockMethod getMethod()
IMockInvocationgetMethod in interface IMockInvocationpublic java.util.List<java.lang.Object> getArguments()
IMockInvocationgetArguments in interface IMockInvocationpublic java.lang.Object callRealMethod()
IMockInvocationCannotInvokeRealMethodException is thrown.callRealMethod in interface IMockInvocationpublic java.lang.Object callRealMethodWithArgs(java.lang.Object... arguments)
IMockInvocationCannotInvokeRealMethodException is thrown.callRealMethodWithArgs in interface IMockInvocationCopyright © 2018. All rights reserved