Package org.apache.beam.sdk.fn.test
Class TestExecutors
- java.lang.Object
-
- org.apache.beam.sdk.fn.test.TestExecutors
-
public class TestExecutors extends java.lang.ObjectATestRulethat validates that all submitted tasks finished and were completed. This allows for testing that tasks have exercised the appropriate shutdown logic.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceTestExecutors.TestExecutorServiceA union of theExecutorServiceandTestRuleinterfaces.
-
Constructor Summary
Constructors Constructor Description TestExecutors()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TestExecutors.TestExecutorServicefrom(java.util.concurrent.ExecutorService staticExecutorService)static TestExecutors.TestExecutorServicefrom(java.util.function.Supplier<java.util.concurrent.ExecutorService> executorServiceSuppler)
-
-
-
Method Detail
-
from
public static TestExecutors.TestExecutorService from(java.util.concurrent.ExecutorService staticExecutorService)
-
from
public static TestExecutors.TestExecutorService from(java.util.function.Supplier<java.util.concurrent.ExecutorService> executorServiceSuppler)
-
-