org.unitils.mock.mockbehavior
Interface ValidatableMockBehavior

All Superinterfaces:
MockBehavior
All Known Implementing Classes:
DefaultValueReturningMockBehavior, DummyValueReturningMockBehavior, ExceptionThrowingMockBehavior, OriginalBehaviorInvokingMockBehavior, StubMockBehavior, ValueReturningMockBehavior

public interface ValidatableMockBehavior
extends MockBehavior

todo javadoc

Author:
Filip Neven, Tim Ducheyne, Kenny Claes

Method Summary
 void assertCanExecute(ProxyInvocation proxyInvocation)
          Checks whether the mock behavior can be executed for the given invocation.
 
Methods inherited from interface org.unitils.mock.mockbehavior.MockBehavior
execute
 

Method Detail

assertCanExecute

void assertCanExecute(ProxyInvocation proxyInvocation)
                      throws UnitilsException
Checks whether the mock behavior can be executed for the given invocation. An exception should be raised if this behavior is not suited for the given invocation.

Parameters:
proxyInvocation - The proxy method invocation, not null
Throws:
UnitilsException


Copyright © 2011. All Rights Reserved.