Annotation Interface HelidonTest


@Retention(RUNTIME) @Target(TYPE) @ExtendWith(HelidonJunitExtension.class) @TestMethodOrder(HelidonImplicitResetOrderer.class) @TestInstance(PER_CLASS) @Inherited public @interface HelidonTest
A shorthand to use HelidonJunitExtension with additional settings.

Sets the following defaults:

See Also:
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Whether to turn on pinning detection during @HelidonTest.
    long
    Time threshold for carrier thread blocking to be considered as pinning.
    boolean
    Forces the CDI container to be initialized and shutdown for each test method.
  • Element Details

    • resetPerTest

      boolean resetPerTest
      Forces the CDI container to be initialized and shutdown for each test method.

      The value of TestInstance is ignored.

      Returns:
      whether to reset per test method
      Default:
      false
    • pinningThreshold

      long pinningThreshold
      Time threshold for carrier thread blocking to be considered as pinning.
      Returns:
      threshold in milliseconds, 20 is default
      Default:
      20L
    • pinningDetection

      boolean pinningDetection
      Whether to turn on pinning detection during @HelidonTest.
      Returns:
      true for turning detection on, false is default
      Default:
      false