|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- type of object generatedpublic interface ObjectGenerator<T>
Declarative object generator definition.
User should call implementation of ObjectGenerator as follows:
ObjectGenerator g;
Generator methodGenerator;
g.on(g.getRecorder().method()).returns(methodGenerator);
Nested Class Summary | |
---|---|
static interface |
ObjectGenerator.ReturnValue<R>
|
Method Summary | ||
---|---|---|
T |
getRecorder()
Implementation of T that is used to define the method a generator should be defined for. |
|
|
on(R value)
Define a method a generator should be defined for. |
Methods inherited from interface net.java.quickcheck.Generator |
---|
next |
Method Detail |
---|
T getRecorder()
<R> ObjectGenerator.ReturnValue<R> on(R value)
R
- type of the return typevalue
- is ignored
ObjectGenerator.ReturnValue
instance to define a generator for this
method
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |