Class SameThreadTimeoutInvocation<T>

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

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

      • delegate

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

        private final java.util.concurrent.ScheduledExecutorService executor
      • descriptionSupplier

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

      • SameThreadTimeoutInvocation

        SameThreadTimeoutInvocation​(org.junit.jupiter.api.extension.InvocationInterceptor.Invocation<T> delegate,
                                    TimeoutDuration timeout,
                                    java.util.concurrent.ScheduledExecutorService executor,
                                    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