Class TimeoutInvocation<T>
java.lang.Object
org.junit.jupiter.engine.extension.TimeoutInvocation<T>
- All Implemented Interfaces:
InvocationInterceptor.Invocation<T>
- Since:
- 5.5
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final InvocationInterceptor.Invocation<T>private final ScheduledExecutorServiceprivate final TimeoutDuration -
Constructor Summary
ConstructorsConstructorDescriptionTimeoutInvocation(InvocationInterceptor.Invocation<T> delegate, TimeoutDuration timeout, ScheduledExecutorService executor, Supplier<String> descriptionSupplier) -
Method Summary
Modifier and TypeMethodDescriptionprivate TimeoutExceptioncreateTimeoutException(Throwable failure) proceed()Proceed with this invocation.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.junit.jupiter.api.extension.InvocationInterceptor.Invocation
skip
-
Field Details
-
delegate
-
timeout
-
executor
-
descriptionSupplier
-
-
Constructor Details
-
TimeoutInvocation
TimeoutInvocation(InvocationInterceptor.Invocation<T> delegate, TimeoutDuration timeout, ScheduledExecutorService executor, Supplier<String> descriptionSupplier)
-
-
Method Details
-
proceed
Description copied from interface:InvocationInterceptor.InvocationProceed with this invocation.- Specified by:
proceedin interfaceInvocationInterceptor.Invocation<T>- Returns:
- the result of this invocation; potentially
null. - Throws:
Throwable- in case the invocation failed
-
createTimeoutException
-