Class SeparateThreadTimeoutInvocation<T>

  • All Implemented Interfaces:
    org.junit.jupiter.api.extension.InvocationInterceptor.Invocation<T>

    class SeparateThreadTimeoutInvocation<T>
    extends java.lang.Object
    implements org.junit.jupiter.api.extension.InvocationInterceptor.Invocation<T>
    Since:
    5.9
    • Field Detail

      • delegate

        private final org.junit.jupiter.api.extension.InvocationInterceptor.Invocation<T> delegate
      • descriptionSupplier

        private final java.util.function.Supplier<java.lang.String> descriptionSupplier
    • Constructor Detail

      • SeparateThreadTimeoutInvocation

        SeparateThreadTimeoutInvocation​(org.junit.jupiter.api.extension.InvocationInterceptor.Invocation<T> delegate,
                                        TimeoutDuration timeout,
                                        java.util.function.Supplier<java.lang.String> descriptionSupplier,
                                        PreInterruptCallbackInvocation preInterruptCallback)
    • Method Detail

      • proceed

        public T proceed()
                  throws java.lang.Throwable
        Specified by:
        proceed in interface org.junit.jupiter.api.extension.InvocationInterceptor.Invocation<T>
        Throws:
        java.lang.Throwable