Module de.cuioss.test.generator
Package de.cuioss.test.generator.junit
Annotation Interface EnableGeneratorController
@Retention(RUNTIME)
@Target(TYPE)
@ExtendWith(GeneratorControllerExtension.class)
public @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, seeGeneratorSeed 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 enablingGeneratorControllerExtension for a certain test-class. This type is
equivalent to ExtendWith GeneratorControllerExtension- Author:
- Oliver Wolff