|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.unitils.mock.mockbehavior.impl.ExceptionThrowingMockBehavior
public class ExceptionThrowingMockBehavior
Mock behavior that throws a given exception.
| Constructor Summary | |
|---|---|
ExceptionThrowingMockBehavior(java.lang.Throwable exceptionToThrow)
Creates the throwing behavior for the given exception. |
|
| Method Summary | |
|---|---|
void |
assertCanExecute(ProxyInvocation proxyInvocation)
Checks whether the mock behavior can be executed for the given invocation. |
java.lang.Object |
execute(ProxyInvocation proxyInvocation)
Executes the mock behavior. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExceptionThrowingMockBehavior(java.lang.Throwable exceptionToThrow)
exceptionToThrow - The exception, not null| Method Detail |
|---|
public void assertCanExecute(ProxyInvocation proxyInvocation)
throws UnitilsException
assertCanExecute in interface ValidatableMockBehaviorproxyInvocation - The proxy method invocation, not null
UnitilsException
public java.lang.Object execute(ProxyInvocation proxyInvocation)
throws java.lang.Throwable
execute in interface MockBehaviorproxyInvocation - The proxy method invocation, not null
java.lang.Throwable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||