org.unitils.mock.core.matching.impl
Class BehaviorDefiningMatchingInvocationHandler

java.lang.Object
  extended by org.unitils.mock.core.matching.impl.BehaviorDefiningMatchingInvocationHandler
All Implemented Interfaces:
MatchingInvocationHandler

public class BehaviorDefiningMatchingInvocationHandler
extends java.lang.Object
implements MatchingInvocationHandler


Nested Class Summary
static class BehaviorDefiningMatchingInvocationHandler.ChainedMockBehavior
           
 
Field Summary
protected  BehaviorDefiningInvocations behaviorDefinition
           
protected  MockBehavior mockBehavior
           
protected  MockFactory mockFactory
           
 
Constructor Summary
BehaviorDefiningMatchingInvocationHandler(MockBehavior mockBehavior, BehaviorDefiningInvocations behaviorDefinition, MockFactory mockFactory)
           
 
Method Summary
protected  void addBehaviorDefiningInvocation(BehaviorDefiningInvocation behaviorDefiningInvocation, BehaviorDefiningInvocations behaviorDefinition)
           
protected  java.lang.Object createChainedMock(ProxyInvocation proxyInvocation, BehaviorDefiningInvocation behaviorDefiningInvocation)
           
 java.lang.Object handleInvocation(ProxyInvocation proxyInvocation, java.util.List<ArgumentMatcher> argumentMatchers)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mockBehavior

protected MockBehavior mockBehavior

mockFactory

protected MockFactory mockFactory

behaviorDefinition

protected BehaviorDefiningInvocations behaviorDefinition
Constructor Detail

BehaviorDefiningMatchingInvocationHandler

public BehaviorDefiningMatchingInvocationHandler(MockBehavior mockBehavior,
                                                 BehaviorDefiningInvocations behaviorDefinition,
                                                 MockFactory mockFactory)
Method Detail

handleInvocation

public java.lang.Object handleInvocation(ProxyInvocation proxyInvocation,
                                         java.util.List<ArgumentMatcher> argumentMatchers)
                                  throws java.lang.Throwable
Specified by:
handleInvocation in interface MatchingInvocationHandler
Throws:
java.lang.Throwable

addBehaviorDefiningInvocation

protected void addBehaviorDefiningInvocation(BehaviorDefiningInvocation behaviorDefiningInvocation,
                                             BehaviorDefiningInvocations behaviorDefinition)

createChainedMock

protected java.lang.Object createChainedMock(ProxyInvocation proxyInvocation,
                                             BehaviorDefiningInvocation behaviorDefiningInvocation)


Copyright © 2009. All Rights Reserved.