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

java.lang.Object
  extended by org.unitils.mock.core.matching.impl.AssertVerifyingMatchingInvocationHandler
All Implemented Interfaces:
MatchingInvocationHandler
Direct Known Subclasses:
AssertInvokedInSequenceVerifyingMatchingInvocationHandler, AssertInvokedVerifyingMatchingInvocationHandler, AssertNotInvokedVerifyingMatchingInvocationHandler

public abstract class AssertVerifyingMatchingInvocationHandler
extends Object
implements MatchingInvocationHandler

Author:
Tim Ducheyne, Filip Neven

Field Summary
protected  MockFactory mockFactory
           
protected  Scenario scenario
           
 
Constructor Summary
AssertVerifyingMatchingInvocationHandler(Scenario scenario, MockFactory mockFactory)
           
 
Method Summary
protected  Object createChainedMock(ProxyInvocation proxyInvocation)
           
 Object handleInvocation(ProxyInvocation proxyInvocation, List<ArgumentMatcher> argumentMatchers)
           
protected abstract  void performAssertion(Scenario scenario, BehaviorDefiningInvocation behaviorDefiningInvocation)
           
protected abstract  Object performChainedAssertion(Mock<?> mock)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

scenario

protected Scenario scenario

mockFactory

protected MockFactory mockFactory
Constructor Detail

AssertVerifyingMatchingInvocationHandler

public AssertVerifyingMatchingInvocationHandler(Scenario scenario,
                                                MockFactory mockFactory)
Method Detail

handleInvocation

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

createChainedMock

protected Object createChainedMock(ProxyInvocation proxyInvocation)

performAssertion

protected abstract void performAssertion(Scenario scenario,
                                         BehaviorDefiningInvocation behaviorDefiningInvocation)

performChainedAssertion

protected abstract Object performChainedAssertion(Mock<?> mock)


Copyright © 2011. All Rights Reserved.