Package de.cuioss.test.generator.junit
Class GeneratorControllerExtension
- java.lang.Object
-
- de.cuioss.test.generator.junit.GeneratorControllerExtension
-
- All Implemented Interfaces:
org.junit.jupiter.api.extension.BeforeEachCallback,org.junit.jupiter.api.extension.Extension,org.junit.jupiter.api.extension.TestExecutionExceptionHandler
public class GeneratorControllerExtension extends Object implements org.junit.jupiter.api.extension.BeforeEachCallback, org.junit.jupiter.api.extension.TestExecutionExceptionHandler
If enabled, either by usingExtendWithorEnableGeneratorControllerthisExtensioncontrols the seed initialization, by checking forGeneratorSeedand intercepts Test-failures by printing information providing the seed to reproduce.- Author:
- Oliver Wolff
-
-
Constructor Summary
Constructors Constructor Description GeneratorControllerExtension()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbeforeEach(org.junit.jupiter.api.extension.ExtensionContext context)voidhandleTestExecutionException(org.junit.jupiter.api.extension.ExtensionContext context, Throwable throwable)
-
-
-
Constructor Detail
-
GeneratorControllerExtension
public GeneratorControllerExtension()
-
-
Method Detail
-
handleTestExecutionException
public void handleTestExecutionException(org.junit.jupiter.api.extension.ExtensionContext context, Throwable throwable) throws Throwable
- Specified by:
handleTestExecutionExceptionin interfaceorg.junit.jupiter.api.extension.TestExecutionExceptionHandler- Throws:
Throwable
-
beforeEach
public void beforeEach(org.junit.jupiter.api.extension.ExtensionContext context) throws Exception
- Specified by:
beforeEachin interfaceorg.junit.jupiter.api.extension.BeforeEachCallback- Throws:
Exception
-
-