Annotation Interface EnableGeneratorController


Purpose and Usage

This annotation is meant to be set on a junit 5 test-case. It controls the generator subsystem and, in case of test-failures, provides information, that can be used for repeating the failed tests with a fixed seed for the generators, see GeneratorSeed for details. This fixed seed results in the generators reproducing the exact same test-data. Sample output:
GeneratorController seed was 4711L.
Use a fixed seed by applying @GeneratorSeed(4711L) for the method/class,
or by using the system property '-Dde.cuioss.test.generator.seed=4711'
 

Implementation

Shorthand for enabling GeneratorControllerExtension for a certain test-class. This type is equivalent to ExtendWith GeneratorControllerExtension
Author:
Oliver Wolff