Annotation Type InjectTest


@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 Elements
    Modifier and Type
    Optional Element
    Description
    Wiring profiles to use
    boolean
    Create a new test beanscope for each test method
  • Element Details

    • profiles

      String[] profiles
      Wiring profiles to use
      Default:
      {}
    • scopePerTest

      boolean scopePerTest
      Create a new test beanscope for each test method
      Default:
      false