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 java.lang.Object implements InvocationInterceptor.Invocation<T>
- Since:
- 5.9
-
-
Field Summary
Fields Modifier and Type Field Description private InvocationInterceptor.Invocation<T>
delegate
private java.util.function.Supplier<java.lang.String>
descriptionSupplier
private TimeoutDuration
timeout
-
Constructor Summary
Constructors Constructor Description SeparateThreadTimeoutInvocation(InvocationInterceptor.Invocation<T> delegate, TimeoutDuration timeout, java.util.function.Supplier<java.lang.String> descriptionSupplier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
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 Detail
-
delegate
private final InvocationInterceptor.Invocation<T> delegate
-
timeout
private final TimeoutDuration timeout
-
descriptionSupplier
private final java.util.function.Supplier<java.lang.String> descriptionSupplier
-
-
Constructor Detail
-
SeparateThreadTimeoutInvocation
SeparateThreadTimeoutInvocation(InvocationInterceptor.Invocation<T> delegate, TimeoutDuration timeout, java.util.function.Supplier<java.lang.String> descriptionSupplier)
-
-
Method Detail
-
proceed
public T proceed() throws java.lang.Throwable
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:
java.lang.Throwable
- in case the invocation failed
-
-