public interface WeldJunitEnricher
WeldInitiator field annotated with WeldSetup is present on a test class, all service providers of this interface are used to enrich the
default test environment. The initial Weld instance is created using WeldInitiator.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.FooEnricher use -Dorg.weld.FooEnricher=false to disable the enricher.
| Modifier and Type | Method and Description |
|---|---|
void |
enrich(Object testInstance,
org.junit.jupiter.api.extension.ExtensionContext context,
org.jboss.weld.environment.se.Weld weld,
WeldInitiator.Builder weldInitiatorBuilder)
Enrich the default test environment.
|
void enrich(Object testInstance, org.junit.jupiter.api.extension.ExtensionContext context, org.jboss.weld.environment.se.Weld weld, WeldInitiator.Builder weldInitiatorBuilder)
Weld.initialize() and AbstractWeldInitiator.AbstractBuilder.build() methods must never be invoked in an enricher!
testInstance - context - weld - weldInitiatorBuilder - Copyright © 2019. All rights reserved.