public abstract class MultithreadedTestUtil extends Object
Modifier and Type | Class and Description |
---|---|
static class |
MultithreadedTestUtil.RepeatingTestThread
A test thread that performs a repeating operation.
|
static class |
MultithreadedTestUtil.TestContext |
static class |
MultithreadedTestUtil.TestThread
A thread that can be added to a test context, and properly
passes exceptions through.
|
Modifier and Type | Field and Description |
---|---|
static Log |
LOG |
Constructor and Description |
---|
MultithreadedTestUtil() |
Modifier and Type | Method and Description |
---|---|
static <T> void |
assertOnFutures(List<Future<T>> threadResults)
Verify that no assertions have failed inside a future.
|
public static <T> void assertOnFutures(List<Future<T>> threadResults) throws InterruptedException, ExecutionException
List
T
- threadResults
- A list of futuresInterruptedException
- If interrupted when waiting for a result
from one of the futuresExecutionException
- If an exception other than AssertionError
occurs inside any of the futures