| java.lang.Object | ||
| ↳ | Statement | |
| ↳ | org.springframework.test.context.junit4.statements.SpringFailOnTimeout | |
SpringFailOnTimeout is a custom JUnit 4.5+ Statement
which adds support for Spring's @Timed annotation by throwing
an exception if the next statement in the execution chain takes more than the
specified number of milliseconds.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a new
SpringFailOnTimeout statement. | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Invokes the next Statement statement in the execution chain
(typically an instance of
org.junit.internal.runners.statements.InvokeMethod InvokeMethod
or org.junit.internal.runners.statements.ExpectException
ExpectException) and throws an exception if the next
statement takes more than the specified timeout
. | |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Constructs a new SpringFailOnTimeout statement.
| next | the next Statement in the execution chain |
|---|---|
| timeout | the configured timeout for the current test |
Invokes the next Statement statement in the execution chain
(typically an instance of
org.junit.internal.runners.statements.InvokeMethod InvokeMethod
or org.junit.internal.runners.statements.ExpectException
ExpectException) and throws an exception if the next
statement takes more than the specified timeout
.
| Throwable |
|---|