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 ScheduledExecutorService
private final TimeoutDuration
-
Constructor Summary
ConstructorsConstructorDescriptionTimeoutInvocation
(InvocationInterceptor.Invocation<T> delegate, TimeoutDuration timeout, ScheduledExecutorService executor, Supplier<String> descriptionSupplier) -
Method Summary
Modifier and TypeMethodDescriptionprivate TimeoutException
createTimeoutException
(Throwable failure) proceed()
Proceed with this invocation.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 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.Invocation
Proceed with this invocation.- Specified by:
proceed
in interfaceInvocationInterceptor.Invocation<T>
- Returns:
- the result of this invocation; potentially
null
. - Throws:
Throwable
- in case the invocation failed
-
createTimeoutException
-