Package org.jboss.weld.junit5
Interface WeldJunitEnricher
-
public interface WeldJunitEnricherIf noWeldInitiatorfield annotated withWeldSetupis present on a test class, all service providers of this interface are used to enrich the default test environment. The initialWeldinstance is created usingWeldInitiator.createWeld().A system property with key equal to FQCN of a customizer class may be used to disable an enricher completely. E.g. for a class
org.weld.FooEnricheruse-Dorg.weld.FooEnricher=falseto disable the enricher.- Author:
- Martin Kouba
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidenrich(Object testInstance, org.junit.jupiter.api.extension.ExtensionContext context, Weld weld, WeldInitiator.Builder weldInitiatorBuilder)Enrich the default test environment.
-
-
-
Method Detail
-
enrich
void enrich(Object testInstance, org.junit.jupiter.api.extension.ExtensionContext context, Weld weld, WeldInitiator.Builder weldInitiatorBuilder)
Enrich the default test environment.Weld.initialize()andAbstractWeldInitiator.AbstractBuilder.build()methods must never be invoked in an enricher!- Parameters:
testInstance-context-weld-weldInitiatorBuilder-
-
-