public class TestExecutors
extends java.lang.Object
TestRule
that validates that all submitted tasks finished and were completed. This
allows for testing that tasks have exercised the appropriate shutdown logic.Modifier and Type | Class and Description |
---|---|
static interface |
TestExecutors.TestExecutorService
A union of the
ExecutorService and TestRule interfaces. |
Constructor and Description |
---|
TestExecutors() |
Modifier and Type | Method and Description |
---|---|
static TestExecutors.TestExecutorService |
from(java.util.concurrent.ExecutorService staticExecutorService) |
static TestExecutors.TestExecutorService |
from(java.util.function.Supplier<java.util.concurrent.ExecutorService> executorServiceSuppler) |
public static TestExecutors.TestExecutorService from(java.util.concurrent.ExecutorService staticExecutorService)
public static TestExecutors.TestExecutorService from(java.util.function.Supplier<java.util.concurrent.ExecutorService> executorServiceSuppler)