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 java.lang.Object
implements MockBehavior


Constructor Summary
BehaviorDefiningMatchingInvocationHandler.ChainedMockBehavior(Mock<?> mock, BehaviorDefiningInvocation behaviorDefiningInvocation)
           
 
Method Summary
 java.lang.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
 

Constructor Detail

BehaviorDefiningMatchingInvocationHandler.ChainedMockBehavior

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

installChain

public void installChain()

execute

public java.lang.Object execute(ProxyInvocation proxyInvocation)
                         throws java.lang.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:
java.lang.Throwable


Copyright © 2009. All Rights Reserved.