Class SameThreadTimeoutInvocation<T>
- java.lang.Object
-
- org.junit.jupiter.engine.extension.SameThreadTimeoutInvocation<T>
-
- All Implemented Interfaces:
org.junit.jupiter.api.extension.InvocationInterceptor.Invocation<T>
class SameThreadTimeoutInvocation<T> extends java.lang.Object implements org.junit.jupiter.api.extension.InvocationInterceptor.Invocation<T>
- Since:
- 5.5
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
SameThreadTimeoutInvocation.InterruptTask
-
Field Summary
Fields Modifier and Type Field Description private org.junit.jupiter.api.extension.InvocationInterceptor.Invocation<T>
delegate
private java.util.function.Supplier<java.lang.String>
descriptionSupplier
private java.util.concurrent.ScheduledExecutorService
executor
private TimeoutDuration
timeout
-
Constructor Summary
Constructors Constructor Description SameThreadTimeoutInvocation(org.junit.jupiter.api.extension.InvocationInterceptor.Invocation<T> delegate, TimeoutDuration timeout, java.util.concurrent.ScheduledExecutorService executor, java.util.function.Supplier<java.lang.String> descriptionSupplier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
proceed()
-
-
-
Field Detail
-
delegate
private final org.junit.jupiter.api.extension.InvocationInterceptor.Invocation<T> delegate
-
timeout
private final TimeoutDuration timeout
-
executor
private final java.util.concurrent.ScheduledExecutorService executor
-
descriptionSupplier
private final java.util.function.Supplier<java.lang.String> descriptionSupplier
-
-
Constructor Detail
-
SameThreadTimeoutInvocation
SameThreadTimeoutInvocation(org.junit.jupiter.api.extension.InvocationInterceptor.Invocation<T> delegate, TimeoutDuration timeout, java.util.concurrent.ScheduledExecutorService executor, java.util.function.Supplier<java.lang.String> descriptionSupplier)
-
-