@ExtendWith(InjectJunitExtension.class)
@Target(TYPE)
@Retention(RUNTIME)
public @interface InjectTest
An avaje-inject test supporting
@Inject along with Mockito annotations -
@Mock, @Spy, @Captor.
This is a JUnit 5 extension.
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionString[]Wiring profiles to usebooleanCreate a new test beanscope for each test method
-
Element Details
-
profiles
String[] profilesWiring profiles to use- Default:
{}
-
scopePerTest
boolean scopePerTestCreate a new test beanscope for each test method- Default:
false
-