public class TestTimedOutException extends Exception
Constructor and Description |
---|
TestTimedOutException(long timeout,
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
|
TimeUnit |
getTimeUnit()
Gets the time unit for the timeout value
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public 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–2019 JUnit. All rights reserved.