Annotation Interface KoraAppTest


@ExtendWith(ru.tinkoff.kora.test.extension.junit5.KoraJUnit5Extension.class) @Documented @Target(TYPE) @Retention(RUNTIME) public @interface KoraAppTest
In case you want to initialize KoraAppGraph per Test Class, annotate your Test Class with TestInstance.Lifecycle.PER_CLASS, by default TestInstance.Lifecycle.PER_METHOD is used, indicating that new KoraAppGraph will be initialized each Test Method
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
     
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Class<?>[]
     
  • Element Details

    • value

      Class<?> value
      Returns:
      class annotated with KoraApp
    • components

      Class<?>[] components
      Returns:
      Component that should be included in Context initialization in addition to TestComponent found in tests
      Default:
      {}