Class NodeTestTask.DefaultDynamicTestExecutor
- java.lang.Object
-
- org.junit.platform.engine.support.hierarchical.NodeTestTask.DefaultDynamicTestExecutor
-
- All Implemented Interfaces:
Node.DynamicTestExecutor
- Enclosing class:
- NodeTestTask<C extends EngineExecutionContext>
private class NodeTestTask.DefaultDynamicTestExecutor extends java.lang.Object implements Node.DynamicTestExecutor
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<java.util.concurrent.Future<?>>
futures
-
Constructor Summary
Constructors Modifier Constructor Description private
DefaultDynamicTestExecutor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
awaitFinished()
Block until all dynamic test descriptors submitted to this executor are finished.void
execute(TestDescriptor dynamicTestDescriptor)
Submit a dynamic test descriptor for immediate execution.
-
-
-
Method Detail
-
execute
public void execute(TestDescriptor dynamicTestDescriptor)
Description copied from interface:Node.DynamicTestExecutor
Submit a dynamic test descriptor for immediate execution.- Specified by:
execute
in interfaceNode.DynamicTestExecutor
- Parameters:
dynamicTestDescriptor
- the test descriptor to be executed
-
awaitFinished
public void awaitFinished() throws java.lang.InterruptedException
Description copied from interface:Node.DynamicTestExecutor
Block until all dynamic test descriptors submitted to this executor are finished.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.- Specified by:
awaitFinished
in interfaceNode.DynamicTestExecutor
- Throws:
java.lang.InterruptedException
- if interrupted while waiting
-
-