IMockInvocationpublic class MockInvocation extends java.lang.Object implements IMockInvocation
| Constructor | Description |
|---|---|
MockInvocation(IMockObject mockObject,
IMockMethod method,
java.util.List<java.lang.Object> arguments,
IResponseGenerator realMethodInvoker) |
| 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.
|
boolean |
equals(java.lang.Object other) |
|
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.
|
int |
hashCode() |
|
java.lang.String |
toString() |
public MockInvocation(IMockObject mockObject, IMockMethod method, java.util.List<java.lang.Object> arguments, IResponseGenerator realMethodInvoker)
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 IMockInvocationpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.ObjectCopyright © 2018. All rights reserved