public class DelegatingMockInvocation extends java.lang.Object implements IMockInvocation
Constructor and Description |
---|
DelegatingMockInvocation(IMockInvocation delegate) |
Modifier and Type | Method and 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()
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
Copyright © 2015. All rights reserved