Class TimeoutInterceptor

java.lang.Object
org.spockframework.runtime.extension.builtin.TimeoutInterceptor
All Implemented Interfaces:
IMethodInterceptor

public class TimeoutInterceptor extends Object implements 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