|
Spring Framework | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.junit.runners.model.Statement
org.springframework.test.context.junit4.statements.SpringFailOnTimeout
public class 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.
evaluate()| Constructor Summary | |
|---|---|
SpringFailOnTimeout(org.junit.runners.model.Statement next,
long timeout)
Constructs a new SpringFailOnTimeout statement. |
|
| Method Summary | |
|---|---|
void |
evaluate()
Invokes the next statement in the execution chain
(typically an instance of
InvokeMethod
or ExpectException) and throws an exception if the next
statement takes more than the specified timeout
. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SpringFailOnTimeout(org.junit.runners.model.Statement next,
long timeout)
SpringFailOnTimeout statement.
next - the next Statement in the execution chaintimeout - the configured timeout for the current testTimed.millis()| Method Detail |
|---|
public void evaluate()
throws java.lang.Throwable
statement in the execution chain
(typically an instance of
InvokeMethod
or ExpectException) and throws an exception if the next
statement takes more than the specified timeout
.
evaluate in class org.junit.runners.model.Statementjava.lang.Throwable
|
Spring Framework | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||