|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.spockframework.runtime.extension.builtin.TimeoutInterceptor
public class TimeoutInterceptor
Times out a method invocation if it takes too long. The method invocation will occur on the regular test framework thread. This can be important for integration tests with thread-local state.
| Constructor Summary | |
|---|---|
TimeoutInterceptor(Timeout timeout)
|
|
| Method Summary | |
|---|---|
void |
intercept(IMethodInvocation invocation)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TimeoutInterceptor(Timeout timeout)
| Method Detail |
|---|
public void intercept(IMethodInvocation invocation)
throws java.lang.Throwable
intercept in interface IMethodInterceptorjava.lang.Throwable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||