IMockInvocation
public 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()
IMockInvocation
getMockObject
in interface IMockInvocation
public IMockMethod getMethod()
IMockInvocation
getMethod
in interface IMockInvocation
public java.util.List<java.lang.Object> getArguments()
IMockInvocation
getArguments
in interface IMockInvocation
public java.lang.Object callRealMethod()
IMockInvocation
CannotInvokeRealMethodException
is thrown.callRealMethod
in interface IMockInvocation
public java.lang.Object callRealMethodWithArgs(java.lang.Object... arguments)
IMockInvocation
CannotInvokeRealMethodException
is thrown.callRealMethodWithArgs
in interface IMockInvocation
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
Copyright © 2018. All rights reserved