DelegatingMockInvocation
, MockInvocation
public interface IMockInvocation
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.
|
IMockObject getMockObject()
IMockMethod getMethod()
java.util.List<java.lang.Object> getArguments()
java.lang.Object callRealMethod()
CannotInvokeRealMethodException
is thrown.java.lang.Object callRealMethodWithArgs(java.lang.Object... arguments)
CannotInvokeRealMethodException
is thrown.Copyright © 2018. All rights reserved