C
- the type of EngineExecutionContext
used by the
HierarchicalTestEngine
class HierarchicalTestExecutor<C extends EngineExecutionContext>
extends java.lang.Object
TestEngines
that wish to
use the Node
abstraction as the driving principle for structuring
and executing test suites.
A HierarchicalTestExecutor
is instantiated by a concrete
implementation of HierarchicalTestEngine
and takes care of
executing nodes in the hierarchy in the appropriate order as well as
firing the necessary events in the EngineExecutionListener
.
Modifier and Type | Field and Description |
---|---|
private EngineExecutionListener |
listener |
private static Node |
noOpNode |
private C |
rootContext |
private TestDescriptor |
rootTestDescriptor |
private static SingleTestExecutor |
singleTestExecutor |
Constructor and Description |
---|
HierarchicalTestExecutor(ExecutionRequest request,
C rootContext) |
Modifier and Type | Method and Description |
---|---|
private Node<C> |
asNode(TestDescriptor testDescriptor) |
(package private) void |
execute() |
private void |
execute(TestDescriptor testDescriptor,
C parentContext,
ExecutionTracker tracker) |
private static final SingleTestExecutor singleTestExecutor
private final TestDescriptor rootTestDescriptor
private final EngineExecutionListener listener
private final C extends EngineExecutionContext rootContext
private static final Node noOpNode
HierarchicalTestExecutor(ExecutionRequest request, C rootContext)
void execute()
private void execute(TestDescriptor testDescriptor, C parentContext, ExecutionTracker tracker)
private Node<C> asNode(TestDescriptor testDescriptor)