Package 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
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
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 interfaceorg.junit.rules.TestRule
-
-