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 ElementDescriptionbooleanWhether to turn on pinning detection during@HelidonTest.longTime threshold for carrier thread blocking to be considered as pinning.booleanForces 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
TestInstanceis 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,
20is default
- Default:
20L
-
pinningDetection
boolean pinningDetectionWhether to turn on pinning detection during@HelidonTest.- Returns:
- true for turning detection on,
falseis default
- Default:
false
-