public class BehaviorDefiningMatchingInvocationHandler extends Object implements MatchingInvocationHandler
| Modifier and Type | Class and Description |
|---|---|
static class |
BehaviorDefiningMatchingInvocationHandler.ChainedMockBehavior |
| Modifier and Type | Field and Description |
|---|---|
protected BehaviorDefiningInvocations |
behaviorDefiningInvocations |
protected MockBehavior |
mockBehavior |
protected MockFactory |
mockFactory |
| Constructor and Description |
|---|
BehaviorDefiningMatchingInvocationHandler(MockBehavior mockBehavior,
BehaviorDefiningInvocations behaviorDefiningInvocations,
MockFactory mockFactory) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addBehaviorDefiningInvocation(BehaviorDefiningInvocation behaviorDefiningInvocation,
BehaviorDefiningInvocations behaviorDefinition) |
protected Object |
createChainedMock(ProxyInvocation proxyInvocation,
BehaviorDefiningInvocation behaviorDefiningInvocation) |
Object |
handleInvocation(ProxyInvocation proxyInvocation,
List<ArgumentMatcher> argumentMatchers) |
protected MockBehavior mockBehavior
protected MockFactory mockFactory
protected BehaviorDefiningInvocations behaviorDefiningInvocations
public BehaviorDefiningMatchingInvocationHandler(MockBehavior mockBehavior, BehaviorDefiningInvocations behaviorDefiningInvocations, MockFactory mockFactory)
public Object handleInvocation(ProxyInvocation proxyInvocation, List<ArgumentMatcher> argumentMatchers) throws Throwable
handleInvocation in interface MatchingInvocationHandlerThrowableprotected void addBehaviorDefiningInvocation(BehaviorDefiningInvocation behaviorDefiningInvocation, BehaviorDefiningInvocations behaviorDefinition)
protected Object createChainedMock(ProxyInvocation proxyInvocation, BehaviorDefiningInvocation behaviorDefiningInvocation)
Copyright © 2016. All Rights Reserved.