public class BehaviorDefiningInvocation extends ProxyInvocation
| Modifier and Type | Field and Description |
|---|---|
protected List<ArgumentMatcher> |
argumentMatchers |
protected MockBehavior |
mockBehavior |
| Constructor and Description |
|---|
BehaviorDefiningInvocation(ProxyInvocation proxyInvocation,
MockBehavior mockBehavior,
List<ArgumentMatcher> argumentMatchers)
Creates a behavior defining invocation for the given prosy invocation.
|
| Modifier and Type | Method and Description |
|---|---|
MockBehavior |
getMockBehavior() |
int |
matches(ProxyInvocation proxyInvocation)
Returns whether or not the given
ProxyInvocation matches this object's predefined Method and arguments. |
void |
setMockBehavior(MockBehavior mockBehavior) |
getArguments, getArgumentsAtInvocationTime, getInvokedAt, getInvokedAtTrace, getLineNumber, getMethod, getMockName, getNrOfNotNullArguments, getProxy, invokeOriginalBehaviorprotected List<ArgumentMatcher> argumentMatchers
protected MockBehavior mockBehavior
public BehaviorDefiningInvocation(ProxyInvocation proxyInvocation, MockBehavior mockBehavior, List<ArgumentMatcher> argumentMatchers)
proxyInvocation - The proxy invocation, not nullmockBehavior - The behavior to execute, not nullargumentMatchers - The argument matchers to use when matching the invocation, not nullpublic MockBehavior getMockBehavior()
public void setMockBehavior(MockBehavior mockBehavior)
mockBehavior - The behavior to execute, not nullpublic int matches(ProxyInvocation proxyInvocation)
ProxyInvocation matches this object's predefined Method and arguments.proxyInvocation - the ProxyInvocation to match.Copyright © 2016. All Rights Reserved.