|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.unitils.mock.mockbehavior.impl.DefaultValueReturningMockBehavior
public class DefaultValueReturningMockBehavior
Mock behavior that returns a default value.
Following defaults are used:
| Constructor Summary | |
|---|---|
DefaultValueReturningMockBehavior()
|
|
| 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 DefaultValueReturningMockBehavior()
| Method Detail |
|---|
public void assertCanExecute(ProxyInvocation proxyInvocation)
throws UnitilsException
assertCanExecute in interface ValidatableMockBehaviorproxyInvocation - The proxy method invocation, not null
UnitilsExceptionpublic java.lang.Object execute(ProxyInvocation proxyInvocation)
execute in interface MockBehaviorproxyInvocation - The proxy method invocation, not null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||