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:
- lifecycle:
TestInstance.Lifecycle.PER_CLASS
- method order:
HelidonImplicitResetOrderer
- See Also:
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionboolean
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 resetPerTestForces 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 pinningThresholdTime threshold for carrier thread blocking to be considered as pinning.- Returns:
- threshold in milliseconds,
20
is default
- Default:
20L
-
pinningDetection
boolean pinningDetectionWhether to turn on pinning detection during@HelidonTest
.- Returns:
- true for turning detection on,
false
is default
- Default:
false
-