Package de.cuioss.test.jsf.junit5
Class JsfSetupExtension
- java.lang.Object
-
- de.cuioss.test.jsf.junit5.JsfSetupExtension
-
- All Implemented Interfaces:
org.junit.jupiter.api.extension.AfterEachCallback,org.junit.jupiter.api.extension.Extension,org.junit.jupiter.api.extension.TestInstancePostProcessor
public class JsfSetupExtension extends Object implements org.junit.jupiter.api.extension.TestInstancePostProcessor, org.junit.jupiter.api.extension.AfterEachCallback
Starts and Configures theJsfRuntimeSetup, wraps it into anJsfEnvironmentHolderand inject it into anJsfEnvironmentConsumerif available- Author:
- Oliver Wolff
-
-
Field Summary
Fields Modifier and Type Field Description static org.junit.jupiter.api.extension.ExtensionContext.NamespaceNAMESPACEIdentifies theExtensionContext.Namespaceunder which the concrete instance ofJsfRuntimeSetupis stored .
-
Constructor Summary
Constructors Constructor Description JsfSetupExtension()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterEach(org.junit.jupiter.api.extension.ExtensionContext context)voidpostProcessTestInstance(Object testInstance, org.junit.jupiter.api.extension.ExtensionContext context)
-
-
-
Field Detail
-
NAMESPACE
public static final org.junit.jupiter.api.extension.ExtensionContext.Namespace NAMESPACE
Identifies theExtensionContext.Namespaceunder which the concrete instance ofJsfRuntimeSetupis stored .
-
-
Constructor Detail
-
JsfSetupExtension
public JsfSetupExtension()
-
-
Method Detail
-
postProcessTestInstance
public void postProcessTestInstance(Object testInstance, org.junit.jupiter.api.extension.ExtensionContext context) throws Exception
- Specified by:
postProcessTestInstancein interfaceorg.junit.jupiter.api.extension.TestInstancePostProcessor- Throws:
Exception
-
afterEach
public void afterEach(org.junit.jupiter.api.extension.ExtensionContext context)
- Specified by:
afterEachin interfaceorg.junit.jupiter.api.extension.AfterEachCallback
-
-