|
jDummy |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jdummy.generator.DummyValueGeneratingStubFactory
class DummyValueGeneratingStubFactory
Manaages stubs that generate consistent dummy results for invocations. Identical invocations (same object, same arguments) will return the same result.
| Field Summary | |
|---|---|
protected java.util.HashMap |
resultCache
|
protected DummyValueFactory |
valueFactory
|
| Constructor Summary | |
|---|---|
DummyValueGeneratingStubFactory(DummyValueFactory valueFactory)
|
|
| Method Summary | |
|---|---|
net.sf.jdummy.generator.DummyValueGeneratingStubFactory.DummyValueGeneratingStub |
createStub()
|
protected java.lang.Object |
handle(Invocation invocation)
|
protected java.lang.Object |
makeResult(Invocation invocation)
|
protected java.lang.String |
makeResultName(Invocation invocation)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final DummyValueFactory valueFactory
protected java.util.HashMap resultCache
| Constructor Detail |
|---|
public DummyValueGeneratingStubFactory(DummyValueFactory valueFactory)
valueFactory - | Method Detail |
|---|
public net.sf.jdummy.generator.DummyValueGeneratingStubFactory.DummyValueGeneratingStub createStub()
protected java.lang.Object handle(Invocation invocation)
throws java.lang.Throwable
java.lang.Throwableprotected java.lang.Object makeResult(Invocation invocation)
protected java.lang.String makeResultName(Invocation invocation)
|
jDummy |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||