Package | Description |
---|---|
org.junit.platform.launcher |
Public API for configuring and launching test plans.
|
org.junit.platform.launcher.listeners |
Common
TestExecutionListener implementations and related support classes for
the Launcher . |
Modifier and Type | Method | Description |
---|---|---|
static TestIdentifier |
TestIdentifier.from(TestDescriptor testDescriptor) |
Factory for creating a new
TestIdentifier from a TestDescriptor . |
TestIdentifier |
TestPlan.getTestIdentifier(java.lang.String uniqueId) |
Get the
TestIdentifier with the supplied unique ID. |
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 supplied
TestIdentifier . |
java.util.Set<TestIdentifier> |
TestPlan.getDescendants(TestIdentifier parent) |
Get all descendants of the supplied
TestIdentifier (i.e.,
all of its children and their children, recursively). |
java.util.Optional<TestIdentifier> |
TestPlan.getParent(TestIdentifier child) |
Get the parent of the supplied
TestIdentifier . |
java.util.Set<TestIdentifier> |
TestPlan.getRoots() |
Get the root
TestIdentifiers for this test plan. |
Modifier and Type | Method | Description |
---|---|---|
void |
TestPlan.add(TestIdentifier testIdentifier) |
Add the supplied
TestIdentifier to this test plan. |
default void |
TestExecutionListener.dynamicTestRegistered(TestIdentifier testIdentifier) |
Called when a new, dynamic
TestIdentifier has been registered. |
default void |
TestExecutionListener.executionFinished(TestIdentifier testIdentifier,
TestExecutionResult testExecutionResult) |
Called when the execution of a leaf or subtree of the
TestPlan
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 the
TestPlan
has been skipped. |
default void |
TestExecutionListener.executionStarted(TestIdentifier testIdentifier) |
Called when the execution of a leaf or subtree of the
TestPlan
is about to be started. |
java.util.Set<TestIdentifier> |
TestPlan.getChildren(TestIdentifier parent) |
Get the children of the supplied
TestIdentifier . |
java.util.Set<TestIdentifier> |
TestPlan.getDescendants(TestIdentifier parent) |
Get all descendants of the supplied
TestIdentifier (i.e.,
all of its children and their children, recursively). |
java.util.Optional<TestIdentifier> |
TestPlan.getParent(TestIdentifier child) |
Get the parent of the supplied
TestIdentifier . |
default void |
TestExecutionListener.reportingEntryPublished(TestIdentifier testIdentifier,
ReportEntry entry) |
Called when additional test reporting data has been published for
the supplied
TestIdentifier . |
Modifier and Type | Method | Description |
---|---|---|
long |
TestPlan.countTestIdentifiers(java.util.function.Predicate<? super TestIdentifier> predicate) |
Count all
TestIdentifiers that satisfy the
given predicate. |
Modifier and Type | Method | Description |
---|---|---|
TestIdentifier |
TestExecutionSummary.Failure.getTestIdentifier() |
Get the identifier of the failed test or container.
|
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) |