Annotation Interface ShouldNotPin


@Retention(RUNTIME) @Target({METHOD,TYPE}) @Inherited public @interface ShouldNotPin
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 Elements
    Modifier and Type
    Optional Element
    Description
    int
    Set value to allow occasional pin events
  • Element Details

    • atMost

      int atMost
      Set value to allow occasional pin events
      Returns:
      Default:
      0