|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.unitils.mock.mockbehavior.impl.DefaultValueReturningMockBehavior
org.unitils.mock.mockbehavior.impl.DummyValueReturningMockBehavior
public class DummyValueReturningMockBehavior
Mock behavior that returns a default value. The default value for an object will be a proxy object with the same behaviour. When doing the same call multiple times the same 'proxy' object will be returned each time. Doing the same method call with other parameters will howerver result a new object returned.
Following defaults are used:
| Constructor Summary | |
|---|---|
DummyValueReturningMockBehavior()
|
|
| Method Summary | |
|---|---|
java.lang.Object |
execute(ProxyInvocation proxyInvocation)
Executes the mock behavior. |
| Methods inherited from class org.unitils.mock.mockbehavior.impl.DefaultValueReturningMockBehavior |
|---|
assertCanExecute, resolveNumber |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DummyValueReturningMockBehavior()
| Method Detail |
|---|
public java.lang.Object execute(ProxyInvocation proxyInvocation)
execute in interface MockBehaviorexecute in class DefaultValueReturningMockBehaviorproxyInvocation - The proxy method invocation, not null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||