Package | Description |
---|---|
org.junit.jupiter.engine.descriptor |
Test descriptors used within the JUnit Jupiter test engine.
|
org.junit.platform.engine |
Public API for test engines.
|
org.junit.platform.engine.support.hierarchical |
Support classes and base implementation for any
TestEngine that wishes to organize test suites
hierarchically based on the
Node abstraction. |
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 . |
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.
|
Modifier and Type | Method and Description |
---|---|
void |
TestFactoryTestDescriptor.nodeFinished(JupiterEngineExecutionContext context,
TestDescriptor descriptor,
TestExecutionResult result)
Override
TestMethodTestDescriptor.nodeFinished(org.junit.jupiter.engine.execution.JupiterEngineExecutionContext, org.junit.platform.engine.TestDescriptor, org.junit.platform.engine.TestExecutionResult) as a no-op, since
the TestWatcher API is not supported for @TestFactory
containers. |
void |
TestMethodTestDescriptor.nodeFinished(JupiterEngineExecutionContext context,
TestDescriptor descriptor,
TestExecutionResult result)
Invoke
testSuccessful() ,
testAborted() , or
testFailed() on each
registered TestWatcher according to the status of the supplied
TestExecutionResult , in reverse registration order. |
Modifier and Type | Method and Description |
---|---|
static TestExecutionResult |
TestExecutionResult.aborted(Throwable throwable)
Create a
TestExecutionResult for an aborted execution
of a test or container with the supplied throwable . |
static TestExecutionResult |
TestExecutionResult.failed(Throwable throwable)
Create a
TestExecutionResult for a failed execution
of a test or container with the supplied throwable . |
static TestExecutionResult |
TestExecutionResult.successful()
Create a
TestExecutionResult for a successful execution
of a test or container. |
Modifier and Type | Method and Description |
---|---|
void |
EngineExecutionListener.executionFinished(TestDescriptor testDescriptor,
TestExecutionResult testExecutionResult)
Must be called when the execution of a leaf or subtree of the test tree
has finished, regardless of the outcome.
|
Modifier and Type | Method and Description |
---|---|
TestExecutionResult |
SingleTestExecutor.executeSafely(SingleTestExecutor.Executable executable)
Deprecated.
Execute the supplied
SingleTestExecutor.Executable and return a
TestExecutionResult based on the outcome. |
Modifier and Type | Method and Description |
---|---|
default void |
Node.nodeFinished(C context,
TestDescriptor testDescriptor,
TestExecutionResult result)
Callback invoked when the execution of this node has finished.
|
Modifier and Type | Method and Description |
---|---|
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. |
Modifier and Type | Method and Description |
---|---|
void |
SummaryGeneratingListener.executionFinished(TestIdentifier testIdentifier,
TestExecutionResult testExecutionResult) |
void |
LoggingListener.executionFinished(TestIdentifier testIdentifier,
TestExecutionResult testExecutionResult) |
Modifier and Type | Method and Description |
---|---|
void |
LegacyXmlReportGeneratingListener.executionFinished(TestIdentifier testIdentifier,
TestExecutionResult result) |
Copyright © 2023. All rights reserved.