org.unitils.mock.core.matching.impl
Class BehaviorDefiningMatchingInvocationHandler.ChainedMockBehavior
java.lang.Object
org.unitils.mock.core.matching.impl.BehaviorDefiningMatchingInvocationHandler.ChainedMockBehavior
- All Implemented Interfaces:
- MockBehavior
- Enclosing class:
- BehaviorDefiningMatchingInvocationHandler
public static class BehaviorDefiningMatchingInvocationHandler.ChainedMockBehavior
- extends Object
- implements MockBehavior
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
mock
protected Mock<?> mock
behaviorDefiningInvocation
protected BehaviorDefiningInvocation behaviorDefiningInvocation
originalMockBehavior
protected MockBehavior originalMockBehavior
BehaviorDefiningMatchingInvocationHandler.ChainedMockBehavior
public BehaviorDefiningMatchingInvocationHandler.ChainedMockBehavior(Mock<?> mock,
BehaviorDefiningInvocation behaviorDefiningInvocation)
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.