Class InternalTestPlan
java.lang.Object
org.junit.platform.launcher.TestPlan
org.junit.platform.launcher.core.InternalTestPlan
- Since:
- 1.4
-
Nested Class Summary
Nested classes/interfaces inherited from class TestPlan
TestPlan.Visitor -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final TestPlanprivate final LauncherDiscoveryResultprivate final AtomicBoolean -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateInternalTestPlan(LauncherDiscoveryResult discoveryResult, TestPlan delegate) -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(TestIdentifier testIdentifier) Add the suppliedTestIdentifierto this test plan.voidaddInternal(TestIdentifier testIdentifier) booleanReturn whether this test plan contains any tests.longcountTestIdentifiers(Predicate<? super TestIdentifier> predicate) Count allTestIdentifiersthat satisfy the given predicate.(package private) static InternalTestPlanfrom(LauncherDiscoveryResult discoveryResult) getChildren(String parentId) Get the children of the supplied unique ID.getChildren(UniqueId parentId) Get the children of the supplied unique ID.getChildren(TestIdentifier parent) Get the children of the suppliedTestIdentifier.getDescendants(TestIdentifier parent) Get all descendants of the suppliedTestIdentifier(i.e., all of its children and their children, recursively).(package private) LauncherDiscoveryResultgetParent(TestIdentifier child) Get the parent of the suppliedTestIdentifier.getRoots()Get the rootTestIdentifiersfor this test plan.getTestIdentifier(String uniqueId) Get theTestIdentifierwith the supplied unique ID.getTestIdentifier(UniqueId uniqueId) Get theTestIdentifierwith the supplied unique ID.(package private) voidMethods inherited from class TestPlan
accept, from, getConfigurationParameters, getOutputDirectoryCreator, getOutputDirectoryProvider
-
Field Details
-
executionStarted
-
discoveryResult
-
delegate
-
-
Constructor Details
-
InternalTestPlan
-
-
Method Details
-
from
-
markStarted
void markStarted() -
getDiscoveryResult
LauncherDiscoveryResult getDiscoveryResult() -
getDelegate
-
add
Description copied from class:TestPlanAdd the suppliedTestIdentifierto this test plan. -
addInternal
- Overrides:
addInternalin classTestPlan
-
getRoots
Description copied from class:TestPlanGet the rootTestIdentifiersfor this test plan. -
getParent
Description copied from class:TestPlanGet the parent of the suppliedTestIdentifier. -
getChildren
Description copied from class:TestPlanGet the children of the suppliedTestIdentifier.- Overrides:
getChildrenin classTestPlan- Parameters:
parent- the identifier to look up the children for; nevernull- Returns:
- an unmodifiable set of the parent's children, potentially empty
- See Also:
-
getChildren
Description copied from class:TestPlanGet the children of the supplied unique ID.- Overrides:
getChildrenin classTestPlan- Parameters:
parentId- the unique ID to look up the children for; nevernullor blank- Returns:
- an unmodifiable set of the parent's children, potentially empty
- See Also:
-
getChildren
Description copied from class:TestPlanGet the children of the supplied unique ID.- Overrides:
getChildrenin classTestPlan- Parameters:
parentId- the unique ID to look up the children for; nevernull- Returns:
- an unmodifiable set of the parent's children, potentially empty
- See Also:
-
getTestIdentifier
public TestIdentifier getTestIdentifier(String uniqueId) throws org.junit.platform.commons.PreconditionViolationException Description copied from class:TestPlanGet theTestIdentifierwith the supplied unique ID.- Overrides:
getTestIdentifierin classTestPlan- Parameters:
uniqueId- the unique ID to look up the identifier for; nevernullor blank- Returns:
- the identifier with the supplied unique ID; never
null - Throws:
org.junit.platform.commons.PreconditionViolationException- if noTestIdentifierwith the supplied unique ID is present in this test plan
-
getTestIdentifier
Description copied from class:TestPlanGet theTestIdentifierwith the supplied unique ID.- Overrides:
getTestIdentifierin classTestPlan- Parameters:
uniqueId- the unique ID to look up the identifier for; nevernull- Returns:
- the identifier with the supplied unique ID; never
null
-
countTestIdentifiers
Description copied from class:TestPlanCount allTestIdentifiersthat satisfy the given predicate.- Overrides:
countTestIdentifiersin classTestPlan- Parameters:
predicate- a predicate which returnstruefor identifiers to be counted; nevernull- Returns:
- the number of identifiers that satisfy the supplied predicate
-
getDescendants
Description copied from class:TestPlanGet all descendants of the suppliedTestIdentifier(i.e., all of its children and their children, recursively).- Overrides:
getDescendantsin classTestPlan- Parameters:
parent- the identifier to look up the descendants for; nevernull- Returns:
- an unmodifiable set of the parent's descendants, potentially empty
-
containsTests
public boolean containsTests()Description copied from class:TestPlanReturn whether this test plan contains any tests.A test plan contains tests, if at least one of the contained engine descriptors contains tests.
- Overrides:
containsTestsin classTestPlan- Returns:
trueif this test plan contains tests- See Also:
-