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.core |
Core support classes for the
Launcher
including the LauncherFactory
and the LauncherDiscoveryRequestBuilder . |
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.
|
org.junit.platform.runner |
Runner and annotations for configuring and executing tests on the
JUnit Platform in a JUnit 4 environment. |
org.junit.vintage.engine.execution |
Internal classes for test execution within the JUnit Vintage test engine.
|
Modifier and Type | Method and Description |
---|---|
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. |
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. |
Modifier and Type | Field and Description |
---|---|
private static TestExecutionResult |
TestExecutionResult.SUCCESSFUL_RESULT |
Modifier and Type | Method and Description |
---|---|
static TestExecutionResult |
TestExecutionResult.aborted(java.lang.Throwable throwable)
Create a
TestExecutionResult for an aborted execution
of a test or container with the supplied throwable . |
static TestExecutionResult |
TestExecutionResult.failed(java.lang.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. |
TestExecutionResult |
ThrowableCollector.toTestExecutionResult()
Convert the collected
Throwables into a TestExecutionResult . |
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 | Field and Description |
---|---|
private TestExecutionResult |
OutcomeDelayingEngineExecutionListener.executionResult |
Modifier and Type | Method and Description |
---|---|
void |
ExecutionListenerAdapter.executionFinished(TestDescriptor testDescriptor,
TestExecutionResult testExecutionResult) |
void |
DelegatingEngineExecutionListener.executionFinished(TestDescriptor testDescriptor,
TestExecutionResult testExecutionResult) |
void |
OutcomeDelayingEngineExecutionListener.executionFinished(TestDescriptor testDescriptor,
TestExecutionResult executionResult) |
void |
TestExecutionListenerRegistry.CompositeTestExecutionListener.executionFinished(TestIdentifier testIdentifier,
TestExecutionResult testExecutionResult) |
default void |
TestExecutionListenerRegistry.EagerTestExecutionListener.executionJustFinished(TestIdentifier testIdentifier,
TestExecutionResult testExecutionResult) |
void |
StreamInterceptingTestExecutionListener.executionJustFinished(TestIdentifier testIdentifier,
TestExecutionResult testExecutionResult) |
Modifier and Type | Method and Description |
---|---|
void |
LoggingListener.executionFinished(TestIdentifier testIdentifier,
TestExecutionResult testExecutionResult) |
void |
SummaryGeneratingListener.executionFinished(TestIdentifier testIdentifier,
TestExecutionResult testExecutionResult) |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<TestIdentifier,TestExecutionResult> |
XmlReportData.finishedTests |
Modifier and Type | Method and Description |
---|---|
(package private) java.util.Optional<TestExecutionResult> |
XmlReportData.getResult(TestIdentifier testIdentifier) |
Modifier and Type | Method and Description |
---|---|
void |
LegacyXmlReportGeneratingListener.executionFinished(TestIdentifier testIdentifier,
TestExecutionResult result) |
private static boolean |
XmlReportWriter.isFailure(TestExecutionResult result) |
(package private) void |
XmlReportData.markFinished(TestIdentifier testIdentifier,
TestExecutionResult result) |
private void |
XmlReportWriter.writeErrorOrFailureElement(TestExecutionResult result,
javax.xml.stream.XMLStreamWriter writer) |
Modifier and Type | Method and Description |
---|---|
void |
JUnitPlatformRunnerListener.executionFinished(TestIdentifier testIdentifier,
TestExecutionResult testExecutionResult) |
private org.junit.runner.notification.Failure |
JUnitPlatformRunnerListener.toFailure(TestExecutionResult testExecutionResult,
org.junit.runner.Description description) |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<TestDescriptor,java.util.List<TestExecutionResult>> |
TestRun.executionResults |
Modifier and Type | Method and Description |
---|---|
(package private) TestExecutionResult |
TestRun.getStoredResultOrSuccessful(TestDescriptor testDescriptor) |
Modifier and Type | Method and Description |
---|---|
private void |
RunnerExecutor.reportUnexpectedFailure(TestRun testRun,
RunnerTestDescriptor runnerTestDescriptor,
TestExecutionResult result) |
(package private) void |
TestRun.storeResult(TestDescriptor testDescriptor,
TestExecutionResult result) |
Modifier and Type | Method and Description |
---|---|
private void |
RunListenerAdapter.handleFailure(org.junit.runner.notification.Failure failure,
java.util.function.Function<java.lang.Throwable,TestExecutionResult> resultCreator) |
private void |
RunListenerAdapter.handleFailure(org.junit.runner.notification.Failure failure,
java.util.function.Function<java.lang.Throwable,TestExecutionResult> resultCreator,
TestDescriptor testDescriptor) |