Annotation Type StrictTimeout


@API(status=MAINTAINED)
@Documented
@Retention(RUNTIME)
@Target({TYPE,METHOD,ANNOTATION_TYPE})
@ExtendWith(JupiterStrictTimeoutExtension.class)
public @interface StrictTimeout
Works like Assertions.assertTimeoutPreemptively and Assertions, section preemptive timeout. Very different in behavior to Timeout. This annotation does no cause problems with the ArtemisSecurityManager and can terminate tests stuck in endless loops (which Timeout can not).
Since:
0.1.0
Version:
1.0.0
Author:
Christian Femers
  • Required Element Summary

    Required Elements 
    Modifier and Type Required Element Description
    long value
    The duration of this timeout.
  • Optional Element Summary

    Optional Elements 
    Modifier and Type Optional Element Description
    java.util.concurrent.TimeUnit unit
    The time unit of this timeout, defaults to seconds.
  • Element Details

    • value

      long value
      The duration of this timeout. (per default in seconds)
    • unit

      java.util.concurrent.TimeUnit unit
      The time unit of this timeout, defaults to seconds.
      See Also:
      TimeUnit
      Default:
      SECONDS