Class TimeoutInterceptor
java.lang.Object
org.spockframework.runtime.extension.builtin.TimeoutInterceptor
- All Implemented Interfaces:
IMethodInterceptor
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.
- Author:
- Peter Niederwieser
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
TimeoutInterceptor
-
-
Method Details
-
intercept
- Specified by:
intercept
in interfaceIMethodInterceptor
- Throws:
Throwable
-