Module org.junit.jupiter.engine
Class TimeoutInvocationFactory.ExecutorResource
- java.lang.Object
-
- org.junit.jupiter.engine.extension.TimeoutInvocationFactory.ExecutorResource
-
- All Implemented Interfaces:
ExtensionContext.Store.CloseableResource
- Direct Known Subclasses:
TimeoutInvocationFactory.SingleThreadExecutorResource
- Enclosing class:
- TimeoutInvocationFactory
private abstract static class TimeoutInvocationFactory.ExecutorResource extends java.lang.Object implements ExtensionContext.Store.CloseableResource
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.concurrent.ScheduledExecutorService
executor
-
Constructor Summary
Constructors Constructor Description ExecutorResource(java.util.concurrent.ScheduledExecutorService executor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Close underlying resources.(package private) java.util.concurrent.ScheduledExecutorService
get()
-
-
-
Method Detail
-
get
java.util.concurrent.ScheduledExecutorService get()
-
close
public void close() throws java.lang.Throwable
Description copied from interface:ExtensionContext.Store.CloseableResource
Close underlying resources.- Specified by:
close
in interfaceExtensionContext.Store.CloseableResource
- Throws:
java.lang.Throwable
- any throwable will be caught and rethrown
-
-