Package org.jboss.weld.junit5.auto
Class TestInstanceInjectionExtension<T>
- java.lang.Object
-
- org.jboss.weld.junit5.auto.TestInstanceInjectionExtension<T>
-
- All Implemented Interfaces:
jakarta.enterprise.inject.spi.Extension
public class TestInstanceInjectionExtension<T> extends Object implements jakarta.enterprise.inject.spi.Extension
Extension that makes a test instance appear like a regular bean even though instantiated by JUnit. Injection into all test instances, also@Nested
ones, is handled inWeldInitiator.addObjectsToInjectInto(java.util.Set<java.lang.Object>)
and related. Proper handling of all other CDI annotations such as@Produces
is supported only on top level test classes.