public class Timeouts extends Object
Timeout| Constructor and Description |
|---|
Timeouts() |
| Modifier and Type | Method and Description |
|---|---|
static org.junit.rules.Timeout |
timeout(long timeout,
TimeUnit timeUnit)
Create a
Timeout instance with the timeout specified
at the timeUnit of granularity of the provided TimeUnit. |
public static org.junit.rules.Timeout timeout(long timeout,
TimeUnit timeUnit)
Timeout instance with the timeout specified
at the timeUnit of granularity of the provided TimeUnit.timeout - the maximum time to allow the test to run
before it should timeouttimeUnit - the time unit for the timeoutCopyright © 2013–2016. All rights reserved.