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

java.lang.Object
  extended by org.unitils.mock.core.matching.impl.BehaviorDefiningMatchingInvocationHandler.ChainedMockBehavior
All Implemented Interfaces:
MockBehavior
Enclosing class:
BehaviorDefiningMatchingInvocationHandler

public static class BehaviorDefiningMatchingInvocationHandler.ChainedMockBehavior
extends Object
implements MockBehavior


Field Summary
protected  BehaviorDefiningInvocation behaviorDefiningInvocation
           
protected  Mock<?> mock
           
protected  MockBehavior originalMockBehavior
           
 
Constructor Summary
BehaviorDefiningMatchingInvocationHandler.ChainedMockBehavior(Mock<?> mock, BehaviorDefiningInvocation behaviorDefiningInvocation)
           
 
Method Summary
 Object execute(ProxyInvocation proxyInvocation)
          Executes the mock behavior.
 void installChain()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mock

protected Mock<?> mock

behaviorDefiningInvocation

protected BehaviorDefiningInvocation behaviorDefiningInvocation

originalMockBehavior

protected MockBehavior originalMockBehavior
Constructor Detail

BehaviorDefiningMatchingInvocationHandler.ChainedMockBehavior

public BehaviorDefiningMatchingInvocationHandler.ChainedMockBehavior(Mock<?> mock,
                                                                     BehaviorDefiningInvocation behaviorDefiningInvocation)
Method Detail

installChain

public void installChain()

execute

public Object execute(ProxyInvocation proxyInvocation)
               throws Throwable
Description copied from interface: MockBehavior
Executes the mock behavior.

Specified by:
execute in interface MockBehavior
Parameters:
proxyInvocation - The proxy method invocation, not null
Returns:
The return value, null if there is no return value
Throws:
Throwable


Copyright © 2011. All Rights Reserved.