public class WeldJunit5AutoExtension extends WeldJunit5Extension
WeldJunit5Extension allowing to fully leverage annotation based configuration approach.
When used, the extension will attempt to resolve all beans used in your test class and automatically adds them to
Weld container while bootstrapping it.
There is quite a few annotations which can be used to configure it further still:GLOBAL_EXPLICIT_PARAM_INJECTION| Constructor and Description |
|---|
WeldJunit5AutoExtension() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
weldInit(Object testInstance,
org.junit.jupiter.api.extension.ExtensionContext context,
org.jboss.weld.environment.se.Weld weld,
WeldInitiator.Builder weldInitiatorBuilder) |
afterAll, afterTestExecution, beforeAll, postProcessTestInstance, resolveParameter, supportsParameterprotected void weldInit(Object testInstance, org.junit.jupiter.api.extension.ExtensionContext context, org.jboss.weld.environment.se.Weld weld, WeldInitiator.Builder weldInitiatorBuilder)
weldInit in class WeldJunit5ExtensionCopyright © 2018. All rights reserved.