Package org.jboss.weld.junit5.auto
Class WeldJunit5AutoExtension
- java.lang.Object
-
- org.jboss.weld.junit5.WeldJunit5Extension
-
- org.jboss.weld.junit5.auto.WeldJunit5AutoExtension
-
- All Implemented Interfaces:
org.junit.jupiter.api.extension.AfterAllCallback
,org.junit.jupiter.api.extension.AfterEachCallback
,org.junit.jupiter.api.extension.BeforeAllCallback
,org.junit.jupiter.api.extension.BeforeEachCallback
,org.junit.jupiter.api.extension.Extension
,org.junit.jupiter.api.extension.ParameterResolver
public class WeldJunit5AutoExtension extends WeldJunit5Extension
An alternative toWeldJunit5Extension
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:
-
-
Field Summary
-
Fields inherited from class org.jboss.weld.junit5.WeldJunit5Extension
GLOBAL_EXPLICIT_PARAM_INJECTION
-
-
Constructor Summary
Constructors Constructor Description WeldJunit5AutoExtension()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
weldInit(org.junit.jupiter.api.extension.ExtensionContext context, org.jboss.weld.environment.se.Weld weld, WeldInitiator.Builder weldInitiatorBuilder)
-
Methods inherited from class org.jboss.weld.junit5.WeldJunit5Extension
afterAll, afterEach, beforeAll, beforeEach, resolveParameter, supportsParameter
-
-
-
-
Method Detail
-
weldInit
protected void weldInit(org.junit.jupiter.api.extension.ExtensionContext context, org.jboss.weld.environment.se.Weld weld, WeldInitiator.Builder weldInitiatorBuilder)
- Overrides:
weldInit
in classWeldJunit5Extension
-
-