Top Fields Constructors Methods
org.junit.platform.launcher.core

pack-priv Class InternalTestPlan

extends TestPlan
Class Inheritance
Imports
java.util.Optional, .Set, java.util.concurrent.atomic.AtomicBoolean, java.util.function.Predicate, org.junit.platform.commons.PreconditionViolationException, org.junit.platform.engine.UniqueId, org.junit.platform.launcher.TestIdentifier, .TestPlan

Since
1.4

Field Summary

Modifier and TypeField and Description
private final TestPlan
private final LauncherDiscoveryResult
private final AtomicBoolean

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public void
public boolean
containsTests()

Overrides org.junit.platform.launcher.TestPlan.containsTests.

Return whether this test plan contains any tests.

public long
pack-priv static InternalTestPlan
from(LauncherDiscoveryResult discoveryResult)

public Set<TestIdentifier>
public Set<TestIdentifier>
getChildren(UniqueId parentId)

Overrides org.junit.platform.launcher.TestPlan.getChildren.

Get the children of the supplied unique ID.

public TestPlan
public Set<TestIdentifier>
getDescendants(TestIdentifier parent)

Overrides org.junit.platform.launcher.TestPlan.getDescendants.

Get all descendants of the supplied TestIdentifier (i.e., all of its children and their children, recursively).

pack-priv LauncherDiscoveryResult
public Optional<TestIdentifier>
public Set<TestIdentifier>
getRoots()

Overrides org.junit.platform.launcher.TestPlan.getRoots.

Get the root TestIdentifiers for this test plan.

public TestIdentifier
pack-priv void
Inherited from org.junit.platform.launcher.TestPlan:
acceptfromgetConfigurationParametersgetOutputDirectoryCreatorgetOutputDirectoryProvidergetTestIdentifier

Field Detail

delegateback to summary
private final TestPlan delegate
discoveryResultback to summary
private final LauncherDiscoveryResult discoveryResult
executionStartedback to summary
private final AtomicBoolean executionStarted

Constructor Detail

InternalTestPlanback to summary
private InternalTestPlan(LauncherDiscoveryResult discoveryResult, TestPlan delegate)

Method Detail

addInternalback to summary
public void addInternal(TestIdentifier testIdentifier)

Overrides org.junit.platform.launcher.TestPlan.addInternal.

Annotations
@Override
containsTestsback to summary
public boolean containsTests()

Overrides org.junit.platform.launcher.TestPlan.containsTests.

Doc from org.junit.platform.launcher.TestPlan.containsTests.

Return whether this test plan contains any tests.

A test plan contains tests, if at least one of the contained engine descriptors contains tests.

Annotations
@Override
countTestIdentifiersback to summary
public long countTestIdentifiers(Predicate<? super TestIdentifier> predicate)

Overrides org.junit.platform.launcher.TestPlan.countTestIdentifiers.

Doc from org.junit.platform.launcher.TestPlan.countTestIdentifiers.

Count all TestIdentifiers that satisfy the given predicate.

Annotations
@Override
fromback to summary
pack-priv static InternalTestPlan from(LauncherDiscoveryResult discoveryResult)
getChildrenback to summary
public Set<TestIdentifier> getChildren(TestIdentifier parent)

Overrides org.junit.platform.launcher.TestPlan.getChildren.

Doc from org.junit.platform.launcher.TestPlan.getChildren.

Get the children of the supplied TestIdentifier.

Annotations
@Override
getChildrenback to summary
public Set<TestIdentifier> getChildren(UniqueId parentId)

Overrides org.junit.platform.launcher.TestPlan.getChildren.

Doc from org.junit.platform.launcher.TestPlan.getChildren.

Get the children of the supplied unique ID.

Annotations
@Override
getDelegateback to summary
public TestPlan getDelegate()
getDescendantsback to summary
public Set<TestIdentifier> getDescendants(TestIdentifier parent)

Overrides org.junit.platform.launcher.TestPlan.getDescendants.

Doc from org.junit.platform.launcher.TestPlan.getDescendants.

Get all descendants of the supplied TestIdentifier (i.e., all of its children and their children, recursively).

Annotations
@Override
getDiscoveryResultback to summary
pack-priv LauncherDiscoveryResult getDiscoveryResult()
getParentback to summary
public Optional<TestIdentifier> getParent(TestIdentifier child)

Overrides org.junit.platform.launcher.TestPlan.getParent.

Doc from org.junit.platform.launcher.TestPlan.getParent.

Get the parent of the supplied TestIdentifier.

Annotations
@Override
getRootsback to summary
public Set<TestIdentifier> getRoots()

Overrides org.junit.platform.launcher.TestPlan.getRoots.

Doc from org.junit.platform.launcher.TestPlan.getRoots.

Get the root TestIdentifiers for this test plan.

Annotations
@Override
getTestIdentifierback to summary
public TestIdentifier getTestIdentifier(UniqueId uniqueId)

Overrides org.junit.platform.launcher.TestPlan.getTestIdentifier.

Doc from org.junit.platform.launcher.TestPlan.getTestIdentifier.

Get the TestIdentifier with the supplied unique ID.

Annotations
@Override
markStartedback to summary
pack-priv void markStarted()