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 Summary

      Fields 
      Modifier and Type Field Description
      private org.junit.jupiter.api.extension.InvocationInterceptor.Invocation<T> delegate  
      private java.util.function.Supplier<java.lang.String> descriptionSupplier  
      private java.util.concurrent.ScheduledExecutorService executor  
      private TimeoutDuration timeout  
    • Constructor Summary

      Constructors 
      Constructor Description
      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)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T proceed()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.junit.jupiter.api.extension.InvocationInterceptor.Invocation

        skip
    • 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)
    • 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