| 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.runner |
Runner and annotations for configuring and executing tests on the
JUnit Platform in a JUnit 4 environment. |
| org.junit.platform.testkit.engine |
Test Kit for testing the execution of a
TestEngine
running on the JUnit Platform. |
| org.junit.vintage.engine.execution |
Internal classes for test execution within the JUnit Vintage test engine.
|
| 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 | 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 |
|---|---|
default 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 |
CompositeEngineExecutionListener.executionFinished(TestDescriptor testDescriptor,
TestExecutionResult testExecutionResult) |
void |
DelegatingEngineExecutionListener.executionFinished(TestDescriptor testDescriptor,
TestExecutionResult testExecutionResult) |
void |
ExecutionListenerAdapter.executionFinished(TestDescriptor testDescriptor,
TestExecutionResult testExecutionResult) |
void |
OutcomeDelayingEngineExecutionListener.executionFinished(TestDescriptor testDescriptor,
TestExecutionResult executionResult) |
void |
StackTracePruningEngineExecutionListener.executionFinished(TestDescriptor testDescriptor,
TestExecutionResult testExecutionResult) |
void |
CompositeTestExecutionListener.executionFinished(TestIdentifier testIdentifier,
TestExecutionResult testExecutionResult) |
default void |
CompositeTestExecutionListener.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) |
void |
UniqueIdTrackingListener.executionFinished(TestIdentifier testIdentifier,
TestExecutionResult testExecutionResult) |
| 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 TestExecutionResult |
TerminationInfo.testExecutionResult |
| Modifier and Type | Method and Description |
|---|---|
TestExecutionResult |
TerminationInfo.getExecutionResult()
Get the
TestExecutionResult for the completed execution. |
| Modifier and Type | Method and Description |
|---|---|
static org.assertj.core.api.Condition<TestExecutionResult> |
TestExecutionResultConditions.status(TestExecutionResult.Status expectedStatus)
Create a new
Condition that matches if and only if a
TestExecutionResult's status is equal to the supplied Status. |
private static org.assertj.core.api.Condition<TestExecutionResult> |
TestExecutionResultConditions.throwable(org.assertj.core.api.Condition<? super java.lang.Throwable> condition) |
static org.assertj.core.api.Condition<TestExecutionResult> |
TestExecutionResultConditions.throwable(org.assertj.core.api.Condition<java.lang.Throwable>... conditions)
Create a new
Condition that matches if and only if a
TestExecutionResult's
throwable matches all
supplied conditions. |
| Modifier and Type | Method and Description |
|---|---|
static TerminationInfo |
TerminationInfo.executed(TestExecutionResult testExecutionResult)
Create an executed
TerminationInfo instance for the
supplied TestExecutionResult. |
static Event |
Event.executionFinished(TestDescriptor testDescriptor,
TestExecutionResult result)
|
void |
ExecutionRecorder.executionFinished(TestDescriptor testDescriptor,
TestExecutionResult testExecutionResult)
Record an
Event for a container or test that completed
with the provided TestExecutionResult. |
static Execution |
Execution.finished(TestDescriptor testDescriptor,
java.time.Instant startInstant,
java.time.Instant endInstant,
TestExecutionResult executionResult)
Create a new instance of an
Execution that finished with the
provided TestExecutionResult. |
| Modifier and Type | Method and Description |
|---|---|
static org.assertj.core.api.Condition<Event> |
EventConditions.finished(org.assertj.core.api.Condition<TestExecutionResult> resultCondition)
Create a new
Condition that matches if and only if an
Event's type is
EventType.FINISHED and its
payload is an instance of
TestExecutionResult that matches the supplied Condition. |
static org.assertj.core.api.Condition<Event> |
EventConditions.result(org.assertj.core.api.Condition<TestExecutionResult> condition)
Create a new
Condition that matches if and only if an
Event's payload is an instance of
TestExecutionResult that matches the supplied Condition. |
| Constructor and Description |
|---|
TerminationInfo(boolean skipped,
java.lang.String skipReason,
TestExecutionResult testExecutionResult) |
| 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) |