Package de.cuioss.test.generator.junit
Annotation Type 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, seeGeneratorSeedfor 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 '-Dio.cui.test.generator.seed=4711'
Implementation
Shorthand for enablingGeneratorControllerExtensionfor a certain test-class. This type is equivalent toExtendWithGeneratorControllerExtension- Author:
- Oliver Wolff