public abstract class MultithreadedTestUtil
extends java.lang.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(java.util.List<java.util.concurrent.Future<T>> threadResults)
Verify that no assertions have failed inside a future.
|
public static <T> void assertOnFutures(java.util.List<java.util.concurrent.Future<T>> threadResults)
throws java.lang.InterruptedException,
java.util.concurrent.ExecutionException
List
T - threadResults - A list of futuresjava.lang.InterruptedException - If interrupted when waiting for a result
from one of the futuresjava.util.concurrent.ExecutionException - If an exception other than AssertionError
occurs inside any of the futures