Package net.officefloor.frame.test
Interface ThreadedTestSupport.MultiThreadedExecution<T extends Throwable>
- Enclosing class:
- ThreadedTestSupport
public static interface ThreadedTestSupport.MultiThreadedExecution<T extends Throwable>
Multi-threaded execution.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanisError()Indicates if there is currently an error.booleanAllows to use within predicate checks to throw failure if one.voidWaits for completion of all threads.
-
Method Details
-
waitForCompletion
Waits for completion of all threads.- Throws:
T- If failure in a thread.
-
isError
boolean isError()Indicates if there is currently an error.
This method will not block.
- Returns:
trueif an error.
-
isErrorAndThrow
Allows to use within predicate checks to throw failure if one.
This method will not block.
- Returns:
falsealways, as will throw failure.- Throws:
T- Failure if an error.
-