|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.unitils.mock.dummy.DummyObjectUtil
public class DummyObjectUtil
Class for handling the dummy object behavior. A dummy object is a proxy that will return default values for every method. This can be used to quickly create test objects without having to worry about correctly filling in every field.
| Nested Class Summary | |
|---|---|
static class |
DummyObjectUtil.DummyObjectInvocationHandler
Invocation handler for the dummy proxy object that will return default values for every invocation. |
| Constructor Summary | |
|---|---|
DummyObjectUtil()
|
|
| Method Summary | ||
|---|---|---|
static
|
createDummy(java.lang.Class<T> type)
Creates the dummy proxy object. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DummyObjectUtil()
| Method Detail |
|---|
public static <T> T createDummy(java.lang.Class<T> type)
type - The type for the proxy, not null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||