public class TestTimedOutException
extends java.lang.Exception
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
|
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