Serializablepublic class TestTimedOutException extends Exception
| Constructor | Description |
|---|---|
TestTimedOutException(long timeout,
TimeUnit timeUnit) |
Creates exception with a standard message "test timed out after [timeout] [timeUnit]"
|
| Modifier and Type | Method | Description |
|---|---|---|
long |
getTimeout() |
Gets the time passed before the test was interrupted
|
TimeUnit |
getTimeUnit() |
Gets the time unit for the timeout value
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic TestTimedOutException(long timeout, TimeUnit timeUnit)
timeout - the amount of time passed before the test was interruptedtimeUnit - the time unit for the timeout valuepublic long getTimeout()
public TimeUnit getTimeUnit()
Copyright © 2002–2018 JUnit. All rights reserved.