public class ObservedInvocation extends ProxyInvocation
| Constructor and Description |
|---|
ObservedInvocation(ProxyInvocation proxyInvocation,
BehaviorDefiningInvocation behaviorDefiningInvocation,
MockBehavior mockBehavior)
Creates a observed invocation for the given prosy invocation.
|
| Modifier and Type | Method and Description |
|---|---|
BehaviorDefiningInvocation |
getBehaviorDefiningInvocation() |
MockBehavior |
getMockBehavior() |
Object |
getResult() |
Object |
getResultAtInvocationTime() |
boolean |
hasMockBehavior() |
void |
setResult(Object result)
Sets the result of the invocation.
|
getArguments, getArgumentsAtInvocationTime, getInvokedAt, getInvokedAtTrace, getLineNumber, getMethod, getMockName, getNrOfNotNullArguments, getProxy, invokeOriginalBehaviorpublic ObservedInvocation(ProxyInvocation proxyInvocation, BehaviorDefiningInvocation behaviorDefiningInvocation, MockBehavior mockBehavior)
proxyInvocation - The proxy invocation, not nullbehaviorDefiningInvocation - The invocation that defined the behavior, null if there is no behaviormockBehavior - The executed behavior, not nullpublic void setResult(Object result)
result - The result of the invocationpublic Object getResult()
public Object getResultAtInvocationTime()
public BehaviorDefiningInvocation getBehaviorDefiningInvocation()
public MockBehavior getMockBehavior()
public boolean hasMockBehavior()
Copyright © 2016. All Rights Reserved.