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
.org.junit.platform.reporting.legacy.xml Support for generating XML reports using a format which is compatible with the de facto standard for JUnit 4 based test reports that was made popular by the Ant build system. -
-
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(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 Set<TestIdentifier>
TestPlan. getChildren(String parentId)
Get the children of the supplied unique ID.Set<TestIdentifier>
TestPlan. getChildren(TestIdentifier parent)
Get the children of the suppliedTestIdentifier
.Set<TestIdentifier>
TestPlan. getDescendants(TestIdentifier parent)
Get all descendants of the suppliedTestIdentifier
(i.e., all of its children and their children, recursively).Optional<TestIdentifier>
TestPlan. getParent(TestIdentifier child)
Get the parent of the suppliedTestIdentifier
.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, 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.Set<TestIdentifier>
TestPlan. getChildren(TestIdentifier parent)
Get the children of the suppliedTestIdentifier
.Set<TestIdentifier>
TestPlan. getDescendants(TestIdentifier parent)
Get all descendants of the suppliedTestIdentifier
(i.e., all of its children and their children, recursively).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(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, String reason)
void
SummaryGeneratingListener. executionSkipped(TestIdentifier testIdentifier, String reason)
void
LoggingListener. executionStarted(TestIdentifier testIdentifier)
void
SummaryGeneratingListener. executionStarted(TestIdentifier testIdentifier)
static String
LegacyReportingUtils. getClassName(TestPlan testPlan, TestIdentifier testIdentifier)
Get the class name for the suppliedTestIdentifier
using the suppliedTestPlan
. -
Uses of TestIdentifier in org.junit.platform.reporting.legacy.xml
Methods in org.junit.platform.reporting.legacy.xml with parameters of type TestIdentifier Modifier and Type Method Description void
LegacyXmlReportGeneratingListener. executionFinished(TestIdentifier testIdentifier, TestExecutionResult result)
void
LegacyXmlReportGeneratingListener. executionSkipped(TestIdentifier testIdentifier, String reason)
void
LegacyXmlReportGeneratingListener. executionStarted(TestIdentifier testIdentifier)
void
LegacyXmlReportGeneratingListener. reportingEntryPublished(TestIdentifier testIdentifier, ReportEntry entry)
-