public static interface Node.DynamicTestExecutor
Node.
The test descriptors will be executed by the same
HierarchicalTestExecutor that executes the submitting node.
This interface is not intended to be implemented by clients.
| Modifier and Type | Method and Description |
|---|---|
void |
awaitFinished()
Block until all dynamic test descriptors submitted to this executor
are finished.
|
void |
execute(TestDescriptor testDescriptor)
Submit a dynamic test descriptor for immediate execution.
|
java.util.concurrent.Future<?> |
execute(TestDescriptor testDescriptor,
EngineExecutionListener executionListener)
Submit a dynamic test descriptor for immediate execution with a
custom, potentially no-op, execution listener.
|
void execute(TestDescriptor testDescriptor)
testDescriptor - the test descriptor to be executed; never
null@API(status=STABLE,
since="1.10")
java.util.concurrent.Future<?> execute(TestDescriptor testDescriptor,
EngineExecutionListener executionListener)
testDescriptor - the test descriptor to be executed; never
nullexecutionListener - the executionListener to be notified; never
nullEngineExecutionListener.NOOPvoid awaitFinished()
throws java.lang.InterruptedException
This method is useful if the node needs to perform actions in its
Node.execute(EngineExecutionContext, DynamicTestExecutor) method
after all its dynamic children have finished.
java.lang.InterruptedException - if interrupted while waiting