public class Timeout extends Object implements org.junit.rules.TestRule
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) |
public Timeout(long value, TimeUnit unit)
public static Timeout millis(long millis)
millis
- the timeout value in milli secondspublic static Timeout seconds(long seconds)
seconds
- the timeout value in secondspublic org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, org.junit.runner.Description description)
apply
in interface org.junit.rules.TestRule
Copyright © 2021 Eclipse. All rights reserved.