Uses of Class
org.junit.platform.launcher.TestIdentifier
-
Packages that use TestIdentifier Package Description org.junit.platform.launcher Public API for configuring and launching test plans.org.junit.platform.launcher.listeners CommonTestExecutionListener
implementations and related support classes for theLauncher
. -
-
Uses of TestIdentifier in org.junit.platform.launcher
Methods in org.junit.platform.launcher that return TestIdentifier Modifier and Type Method Description static TestIdentifier
TestIdentifier. from(TestDescriptor testDescriptor)
Factory for creating a newTestIdentifier
from aTestDescriptor
.TestIdentifier
TestPlan. getTestIdentifier(java.lang.String uniqueId)
Get theTestIdentifier
with the supplied unique ID.Methods in org.junit.platform.launcher that return types with arguments of type TestIdentifier Modifier and Type Method Description java.util.Set<TestIdentifier>
TestPlan. getChildren(java.lang.String parentId)
Get the children of the supplied unique ID.java.util.Set<TestIdentifier>
TestPlan. getChildren(TestIdentifier parent)
Get the children of the suppliedTestIdentifier
.java.util.Set<TestIdentifier>
TestPlan. getDescendants(TestIdentifier parent)
Get all descendants of the suppliedTestIdentifier
(i.e., all of its children and their children, recursively).java.util.Optional<TestIdentifier>
TestPlan. getParent(TestIdentifier child)
Get the parent of the suppliedTestIdentifier
.java.util.Set<TestIdentifier>
TestPlan. getRoots()
Get the rootTestIdentifiers
for this test plan.Methods in org.junit.platform.launcher with parameters of type TestIdentifier Modifier and Type Method Description void
TestPlan. add(TestIdentifier testIdentifier)
Add the suppliedTestIdentifier
to this test plan.default void
TestExecutionListener. dynamicTestRegistered(TestIdentifier testIdentifier)
Called when a new, dynamicTestIdentifier
has been registered.default void
TestExecutionListener. executionFinished(TestIdentifier testIdentifier, TestExecutionResult testExecutionResult)
Called when the execution of a leaf or subtree of theTestPlan
has finished, regardless of the outcome.default void
TestExecutionListener. executionSkipped(TestIdentifier testIdentifier, java.lang.String reason)
Called when the execution of a leaf or subtree of theTestPlan
has been skipped.default void
TestExecutionListener. executionStarted(TestIdentifier testIdentifier)
Called when the execution of a leaf or subtree of theTestPlan
is about to be started.java.util.Set<TestIdentifier>
TestPlan. getChildren(TestIdentifier parent)
Get the children of the suppliedTestIdentifier
.java.util.Set<TestIdentifier>
TestPlan. getDescendants(TestIdentifier parent)
Get all descendants of the suppliedTestIdentifier
(i.e., all of its children and their children, recursively).java.util.Optional<TestIdentifier>
TestPlan. getParent(TestIdentifier child)
Get the parent of the suppliedTestIdentifier
.default void
TestExecutionListener. reportingEntryPublished(TestIdentifier testIdentifier, ReportEntry entry)
Called when additional test reporting data has been published for the suppliedTestIdentifier
.Method parameters in org.junit.platform.launcher with type arguments of type TestIdentifier Modifier and Type Method Description long
TestPlan. countTestIdentifiers(java.util.function.Predicate<? super TestIdentifier> predicate)
Count allTestIdentifiers
that satisfy the given predicate. -
Uses of TestIdentifier in org.junit.platform.launcher.listeners
Methods in org.junit.platform.launcher.listeners that return TestIdentifier Modifier and Type Method Description TestIdentifier
TestExecutionSummary.Failure. getTestIdentifier()
Get the identifier of the failed test or container.Methods in org.junit.platform.launcher.listeners with parameters of type TestIdentifier Modifier and Type Method Description void
LoggingListener. dynamicTestRegistered(TestIdentifier testIdentifier)
void
SummaryGeneratingListener. dynamicTestRegistered(TestIdentifier testIdentifier)
void
LoggingListener. executionFinished(TestIdentifier testIdentifier, TestExecutionResult testExecutionResult)
void
SummaryGeneratingListener. executionFinished(TestIdentifier testIdentifier, TestExecutionResult testExecutionResult)
void
LoggingListener. executionSkipped(TestIdentifier testIdentifier, java.lang.String reason)
void
SummaryGeneratingListener. executionSkipped(TestIdentifier testIdentifier, java.lang.String reason)
void
LoggingListener. executionStarted(TestIdentifier testIdentifier)
void
SummaryGeneratingListener. executionStarted(TestIdentifier testIdentifier)
static java.lang.String
LegacyReportingUtils. getClassName(TestPlan testPlan, TestIdentifier testIdentifier)
Get the class name for the suppliedTestIdentifier
using the suppliedTestPlan
.
-