Class TimeoutInterceptor

  • All Implemented Interfaces:
    IMethodInterceptor

    public class TimeoutInterceptor
    extends java.lang.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
    • Constructor Detail

      • TimeoutInterceptor

        public TimeoutInterceptor​(Timeout timeout)