Module de.cuioss.test.generator
Package de.cuioss.test.generator
package de.cuioss.test.generator
Generators
Using the generators help creating variations of test-data. On the one hand it produces a large number of different values. On the other hand it makes error cases reproducible seeEnableGeneratorController and
GeneratorSeed for details.
Provided Features
The generators defined within this packages are the base for the cui-value-object test framework. In essence, it is a variant of QuickCheck. In the current implementation it actually uses code derived from QuickCheck, thanks guys, but mostly the generator part. These code is isolatedde.cuioss.test.generator.internal.net.java.quickcheck and will be
replaced in the future. Therefore: Do not use any of that code at all!
Central elements are:
TypedGenerator: Is the core Type. Instances of it are used for generating arbitrary instances of any value-object. Compared toGeneratorit provides an additional method providing runtime information on the type being generated:TypedGenerator.getType().Generators: Factory methods for accessingTypedGeneratorfor many java-lang types.de.cuioss.test.generator.domain: Provides some domain specificTypedGenerator
-
ClassDescriptionProvides a number of
TypedGeneratorfor arbitrary java-typesA generator creates instances of type T.