public class TestTimedOutException
extends java.lang.Exception
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID |
private long |
timeout |
private java.util.concurrent.TimeUnit |
timeUnit |
Constructor and Description |
---|
TestTimedOutException(long timeout,
java.util.concurrent.TimeUnit timeUnit)
Creates exception with a standard message "test timed out after [timeout] [timeUnit]"
|
Modifier and Type | Method and Description |
---|---|
long |
getTimeout()
Gets the time passed before the test was interrupted
|
java.util.concurrent.TimeUnit |
getTimeUnit()
Gets the time unit for the timeout value
|
private static final long serialVersionUID
private final java.util.concurrent.TimeUnit timeUnit
private final long timeout
public TestTimedOutException(long timeout, java.util.concurrent.TimeUnit timeUnit)
timeout
- the amount of time passed before the test was interruptedtimeUnit
- the time unit for the timeout value