io.vertx.ext.unit.junit

## Class Timeout

- java.lang.Object
- - io.vertx.ext.unit.junit.Timeout

- All Implemented Interfaces:
    org.junit.rules.TestRule

      public class Timeout
      extends Object
      implements org.junit.rules.TestRule

  A rule for configuring the tests timeout.
  Author:
    Julien Viet

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Timeout(long value, TimeUnit unit)`

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `org.junit.runners.model.Statement` | `apply(org.junit.runners.model.Statement base, org.junit.runner.Description description)`
    `static Timeout` | `millis(long millis)`
    `static Timeout` | `seconds(long seconds)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### Timeout

          public Timeout(long value,
                         TimeUnit unit)

  - ### Method Detail

    - #### millis

          public static Timeout millis(long millis)

      Parameters:
        `millis` - the timeout value in milli seconds
      Returns:
        a new timeout rule

    - #### seconds

          public static Timeout seconds(long seconds)

      Parameters:
        `seconds` - the timeout value in seconds
      Returns:
        a new timeout rule

    - #### apply

          public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base,
                                                         org.junit.runner.Description description)

      Specified by:
        `apply` in interface `org.junit.rules.TestRule`

Copyright © 2022 Eclipse. All rights reserved.