Class TimeoutInvocation<T>
java.lang.Object
org.junit.jupiter.engine.extension.TimeoutInvocation<T>
- All Implemented Interfaces:
org.junit.jupiter.api.extension.InvocationInterceptor.Invocation<T>
class TimeoutInvocation<T>
extends Object
implements org.junit.jupiter.api.extension.InvocationInterceptor.Invocation<T>
- Since:
- 5.5
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.junit.jupiter.api.extension.InvocationInterceptor.Invocation
<T> private final ScheduledExecutorService
private final TimeoutDuration
-
Constructor Summary
ConstructorsConstructorDescriptionTimeoutInvocation
(org.junit.jupiter.api.extension.InvocationInterceptor.Invocation<T> delegate, TimeoutDuration timeout, ScheduledExecutorService executor, Supplier<String> descriptionSupplier) -
Method Summary
Modifier and TypeMethodDescriptionprivate TimeoutException
createTimeoutException
(Throwable failure) 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 Details
-
delegate
-
timeout
-
executor
-
descriptionSupplier
-
-
Constructor Details
-
TimeoutInvocation
TimeoutInvocation(org.junit.jupiter.api.extension.InvocationInterceptor.Invocation<T> delegate, TimeoutDuration timeout, ScheduledExecutorService executor, Supplier<String> descriptionSupplier)
-
-
Method Details