Module org.junit.jupiter.engine
Class SameThreadTimeoutInvocation<T>
java.lang.Object
org.junit.jupiter.engine.extension.SameThreadTimeoutInvocation<T>
- All Implemented Interfaces:
InvocationInterceptor.Invocation<T>
- Since:
- 5.5
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final InvocationInterceptor.Invocation<T>
private final ScheduledExecutorService
private final TimeoutDuration
-
Constructor Summary
ConstructorsConstructorDescriptionSameThreadTimeoutInvocation
(InvocationInterceptor.Invocation<T> delegate, TimeoutDuration timeout, ScheduledExecutorService executor, 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
-
executor
-
descriptionSupplier
-
-
Constructor Details
-
SameThreadTimeoutInvocation
SameThreadTimeoutInvocation(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
-