open class SpringFailOnTimeout : Statement
SpringFailOnTimeout is a custom JUnit Statement which adds support for Spring's org.springframework.test.annotation.Timed annotation by throwing an exception if the next statement in the execution chain takes more than the specified number of milliseconds.
In contrast to JUnit's org.junit.internal.runners.statements.FailOnTimeout, the next statement will be executed in the same thread as the caller and will therefore not be aborted preemptively.
Author
Sam Brannen
Since
3.0
See Also
#evaluate()
SpringFailOnTimeout(next: Statement, testMethod: Method)
Construct a new SpringFailOnTimeout(next: Statement, timeout: Long)
Construct a new If the supplied |
open fun evaluate(): Unit
Evaluate the next Statement in the execution chain (typically an instance of SpringRepeat) and throw a TimeoutException if the next |