Uses of Class
org.junit.platform.launcher.TestIdentifier
Package
Description
Java Flight Recorder support package.
Public API for configuring and launching test plans.
Common
TestExecutionListener
implementations and related support classes for
the Launcher
.Support for legacy reporting formats.
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.
Support for generating Open Test Reporting compatible XML event reports.
-
Uses of TestIdentifier in org.junit.platform.jfr
Modifier and TypeMethodDescriptionvoid
FlightRecordingExecutionListener.executionFinished
(TestIdentifier test, TestExecutionResult result) void
FlightRecordingExecutionListener.executionSkipped
(TestIdentifier test, String reason) void
FlightRecordingExecutionListener.executionStarted
(TestIdentifier test) void
FlightRecordingExecutionListener.reportingEntryPublished
(TestIdentifier test, ReportEntry reportEntry) -
Uses of TestIdentifier in org.junit.platform.launcher
Modifier and TypeMethodDescriptionstatic TestIdentifier
TestIdentifier.from
(TestDescriptor testDescriptor) Factory for creating a newTestIdentifier
from aTestDescriptor
.TestPlan.getTestIdentifier
(String uniqueId) Deprecated.TestPlan.getTestIdentifier
(UniqueId uniqueId) Get theTestIdentifier
with the supplied unique ID.Modifier and TypeMethodDescriptionTestPlan.getChildren
(String parentId) Deprecated.TestPlan.getChildren
(UniqueId parentId) Get the children of the supplied unique ID.TestPlan.getChildren
(TestIdentifier parent) Get the children of the suppliedTestIdentifier
.TestPlan.getDescendants
(TestIdentifier parent) Get all descendants of the suppliedTestIdentifier
(i.e., all of its children and their children, recursively).TestPlan.getParent
(TestIdentifier child) Get the parent of the suppliedTestIdentifier
.TestPlan.getRoots()
Get the rootTestIdentifiers
for this test plan.Modifier and TypeMethodDescriptionvoid
TestPlan.add
(TestIdentifier testIdentifier) Deprecated.Calling this method is no longer supported and will throw an exception.void
TestPlan.addInternal
(TestIdentifier testIdentifier) 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.TestPlan.getChildren
(TestIdentifier parent) Get the children of the suppliedTestIdentifier
.TestPlan.getDescendants
(TestIdentifier parent) Get all descendants of the suppliedTestIdentifier
(i.e., all of its children and their children, recursively).TestPlan.getParent
(TestIdentifier child) Get the parent of the suppliedTestIdentifier
.default void
TestPlan.Visitor.postVisitContainer
(TestIdentifier testIdentifier) Called after visiting a container.default void
TestPlan.Visitor.preVisitContainer
(TestIdentifier testIdentifier) Called before visiting a container.default void
TestExecutionListener.reportingEntryPublished
(TestIdentifier testIdentifier, ReportEntry entry) Called when additional test reporting data has been published for the suppliedTestIdentifier
.default void
TestPlan.Visitor.visit
(TestIdentifier testIdentifier) Called for all test identifiers regardless of their type.Modifier and TypeMethodDescriptionlong
TestPlan.countTestIdentifiers
(Predicate<? super TestIdentifier> predicate) Count allTestIdentifiers
that satisfy the given predicate. -
Uses of TestIdentifier in org.junit.platform.launcher.listeners
Modifier and TypeMethodDescriptionTestExecutionSummary.Failure.getTestIdentifier()
Get the identifier of the failed test or container.Modifier and TypeMethodDescriptionvoid
LoggingListener.dynamicTestRegistered
(TestIdentifier testIdentifier) void
SummaryGeneratingListener.dynamicTestRegistered
(TestIdentifier testIdentifier) void
LoggingListener.executionFinished
(TestIdentifier testIdentifier, TestExecutionResult testExecutionResult) void
SummaryGeneratingListener.executionFinished
(TestIdentifier testIdentifier, TestExecutionResult testExecutionResult) void
UniqueIdTrackingListener.executionFinished
(TestIdentifier testIdentifier, TestExecutionResult testExecutionResult) void
LoggingListener.executionSkipped
(TestIdentifier testIdentifier, String reason) void
SummaryGeneratingListener.executionSkipped
(TestIdentifier testIdentifier, String reason) void
UniqueIdTrackingListener.executionSkipped
(TestIdentifier testIdentifier, String reason) void
LoggingListener.executionStarted
(TestIdentifier testIdentifier) void
SummaryGeneratingListener.executionStarted
(TestIdentifier testIdentifier) static String
LegacyReportingUtils.getClassName
(TestPlan testPlan, TestIdentifier testIdentifier) Deprecated.Get the class name for the suppliedTestIdentifier
using the suppliedTestPlan
. -
Uses of TestIdentifier in org.junit.platform.reporting.legacy
Modifier and TypeMethodDescriptionstatic 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
Modifier and TypeMethodDescriptionvoid
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) -
Uses of TestIdentifier in org.junit.platform.reporting.open.xml
Modifier and TypeMethodDescriptionvoid
OpenTestReportGeneratingListener.executionFinished
(TestIdentifier testIdentifier, TestExecutionResult testExecutionResult) void
OpenTestReportGeneratingListener.executionSkipped
(TestIdentifier testIdentifier, String reason) void
OpenTestReportGeneratingListener.executionStarted
(TestIdentifier testIdentifier) void
OpenTestReportGeneratingListener.reportingEntryPublished
(TestIdentifier testIdentifier, ReportEntry entry)
TestPlan.getTestIdentifier(UniqueId)