Package io.quarkus.test.junit5.virtual
Annotation Interface ShouldNotPin
@Retention(RUNTIME)
@Target({METHOD,TYPE})
@Inherited
@Deprecated(since="3.31",
forRemoval=true)
public @interface ShouldNotPin
Deprecated, for removal: This API element is subject to removal in a future version.
Marker indicating that the test method or class should not pin the carrier thread.
If, during the execution of the test, a virtual thread pins the carrier thread, the test fails.
However, occasional pin can still be allowed by setting
atMost value-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionintDeprecated, for removal: This API element is subject to removal in a future version.Set value to allow occasional pin events
-
Element Details
-
atMost
int atMostDeprecated, for removal: This API element is subject to removal in a future version.Set value to allow occasional pin events- Returns:
- Default:
0
-
ShouldNotPininstead