Module org.junit.platform.engine
Class HierarchicalTestExecutor<C extends EngineExecutionContext>
- java.lang.Object
-
- org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor<C>
-
- Type Parameters:
C
- the type ofEngineExecutionContext
used by theHierarchicalTestEngine
class HierarchicalTestExecutor<C extends EngineExecutionContext> extends java.lang.Object
Implementation core of allTestEngines
that wish to use theNode
abstraction as the driving principle for structuring and executing test suites.A
HierarchicalTestExecutor
is instantiated by a concrete implementation ofHierarchicalTestEngine
and takes care of executing nodes in the hierarchy in the appropriate order as well as firing the necessary events in theEngineExecutionListener
.- Since:
- 1.0
-
-
Field Summary
Fields Modifier and Type Field Description private HierarchicalTestExecutorService
executorService
private ExecutionRequest
request
private C
rootContext
private ThrowableCollector.Factory
throwableCollectorFactory
-
Constructor Summary
Constructors Constructor Description HierarchicalTestExecutor(ExecutionRequest request, C rootContext, HierarchicalTestExecutorService executorService, ThrowableCollector.Factory throwableCollectorFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) java.util.concurrent.Future<java.lang.Void>
execute()
-
-
-
Field Detail
-
request
private final ExecutionRequest request
-
rootContext
private final C extends EngineExecutionContext rootContext
-
executorService
private final HierarchicalTestExecutorService executorService
-
throwableCollectorFactory
private final ThrowableCollector.Factory throwableCollectorFactory
-
-
Constructor Detail
-
HierarchicalTestExecutor
HierarchicalTestExecutor(ExecutionRequest request, C rootContext, HierarchicalTestExecutorService executorService, ThrowableCollector.Factory throwableCollectorFactory)
-
-