Module org.junit.jupiter.engine
Class SeparateThreadTimeoutInvocation<T>
java.lang.Object
org.junit.jupiter.engine.extension.SeparateThreadTimeoutInvocation<T>
- All Implemented Interfaces:
InvocationInterceptor.Invocation<T>
class SeparateThreadTimeoutInvocation<T>
extends Object
implements InvocationInterceptor.Invocation<T>
- Since:
- 5.9
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final InvocationInterceptor.Invocation
<T> private final TimeoutDuration
-
Constructor Summary
ConstructorsConstructorDescriptionSeparateThreadTimeoutInvocation
(InvocationInterceptor.Invocation<T> delegate, TimeoutDuration timeout, Supplier<String> descriptionSupplier) -
Method Summary
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
-
descriptionSupplier
-
-
Constructor Details
-
SeparateThreadTimeoutInvocation
SeparateThreadTimeoutInvocation(InvocationInterceptor.Invocation<T> delegate, TimeoutDuration timeout, 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
-