Package org.junit.platform.launcher.core
Class Root
- java.lang.Object
-
- org.junit.platform.launcher.core.Root
-
class Root extends java.lang.ObjectRepresents the root of all discoveredTestEnginesand theirTestDescriptors.- Since:
- 1.0
-
-
Field Summary
Fields Modifier and Type Field Description private ConfigurationParametersconfigurationParametersprivate java.util.Map<TestEngine,TestDescriptor>testEngineDescriptors
-
Constructor Summary
Constructors Constructor Description Root(ConfigurationParameters configurationParameters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidacceptInAllTestEngines(TestDescriptor.Visitor visitor)(package private) voidadd(TestEngine engine, TestDescriptor testDescriptor)Add anengine's rootTestDescriptor.(package private) voidapplyPostDiscoveryFilters(LauncherDiscoveryRequest discoveryRequest)ConfigurationParametersgetConfigurationParameters()(package private) java.util.Collection<TestDescriptor>getEngineDescriptors()(package private) TestDescriptorgetTestDescriptorFor(TestEngine testEngine)(package private) java.lang.Iterable<TestEngine>getTestEngines()private booleanisExcluded(TestDescriptor descriptor, Filter<TestDescriptor> postDiscoveryFilter)(package private) voidprune()Prune all branches in the tree ofTestDescriptorsthat do not have executable tests.
-
-
-
Field Detail
-
testEngineDescriptors
private final java.util.Map<TestEngine,TestDescriptor> testEngineDescriptors
-
configurationParameters
private final ConfigurationParameters configurationParameters
-
-
Constructor Detail
-
Root
Root(ConfigurationParameters configurationParameters)
-
-
Method Detail
-
getConfigurationParameters
public ConfigurationParameters getConfigurationParameters()
-
add
void add(TestEngine engine, TestDescriptor testDescriptor)
Add anengine's rootTestDescriptor.
-
getTestEngines
java.lang.Iterable<TestEngine> getTestEngines()
-
getEngineDescriptors
java.util.Collection<TestDescriptor> getEngineDescriptors()
-
getTestDescriptorFor
TestDescriptor getTestDescriptorFor(TestEngine testEngine)
-
applyPostDiscoveryFilters
void applyPostDiscoveryFilters(LauncherDiscoveryRequest discoveryRequest)
-
prune
void prune()
Prune all branches in the tree ofTestDescriptorsthat do not have executable tests.If a
TestEngineends up with noTestDescriptorsafter pruning, it will not be removed.
-
isExcluded
private boolean isExcluded(TestDescriptor descriptor, Filter<TestDescriptor> postDiscoveryFilter)
-
acceptInAllTestEngines
private void acceptInAllTestEngines(TestDescriptor.Visitor visitor)
-
-