Class TestExecutorExtension<T extends ExecutorService>
- java.lang.Object
-
- org.apache.flink.testutils.executor.TestExecutorExtension<T>
-
- All Implemented Interfaces:
org.junit.jupiter.api.extension.AfterAllCallback
,org.junit.jupiter.api.extension.BeforeAllCallback
,org.junit.jupiter.api.extension.Extension
public class TestExecutorExtension<T extends ExecutorService> extends Object implements org.junit.jupiter.api.extension.BeforeAllCallback, org.junit.jupiter.api.extension.AfterAllCallback
Extension which starts/stops anExecutorService
for testing purposes.
-
-
Constructor Summary
Constructors Constructor Description TestExecutorExtension(Supplier<T> serviceFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterAll(org.junit.jupiter.api.extension.ExtensionContext context)
void
beforeAll(org.junit.jupiter.api.extension.ExtensionContext context)
T
getExecutor()
-