Uses of Class
org.junit.platform.engine.TestExecutionResult
-
Packages that use TestExecutionResult 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 anyTestEnginethat wishes to organize test suites hierarchically based on theNodeabstraction.org.junit.platform.launcher Public API for configuring and launching test plans.org.junit.platform.launcher.core Core support classes for theLauncherincluding theLauncherFactoryand theLauncherDiscoveryRequestBuilder.org.junit.platform.launcher.listeners CommonTestExecutionListenerimplementations and related support classes for theLauncher.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 Runnerand 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 aTestEnginerunning on the JUnit Platform.org.junit.vintage.engine.execution Internal classes for test execution within the JUnit Vintage test engine. -
-
Uses of TestExecutionResult in org.junit.jupiter.engine.descriptor
Methods in org.junit.jupiter.engine.descriptor with parameters of type TestExecutionResult Modifier and Type Method Description voidTestFactoryTestDescriptor. nodeFinished(JupiterEngineExecutionContext context, TestDescriptor descriptor, TestExecutionResult result)OverrideTestMethodTestDescriptor.nodeFinished(org.junit.jupiter.engine.execution.JupiterEngineExecutionContext, org.junit.platform.engine.TestDescriptor, org.junit.platform.engine.TestExecutionResult)as a no-op, since theTestWatcherAPI is not supported for@TestFactorycontainers.voidTestMethodTestDescriptor. nodeFinished(JupiterEngineExecutionContext context, TestDescriptor descriptor, TestExecutionResult result)InvoketestSuccessful(),testAborted(), ortestFailed()on each registeredTestWatcheraccording to the status of the suppliedTestExecutionResult, in reverse registration order. -
Uses of TestExecutionResult in org.junit.platform.engine
Fields in org.junit.platform.engine declared as TestExecutionResult Modifier and Type Field Description private static TestExecutionResultTestExecutionResult. SUCCESSFUL_RESULTMethods in org.junit.platform.engine that return TestExecutionResult Modifier and Type Method Description static TestExecutionResultTestExecutionResult. aborted(java.lang.Throwable throwable)Create aTestExecutionResultfor an aborted execution of a test or container with the suppliedthrowable.static TestExecutionResultTestExecutionResult. failed(java.lang.Throwable throwable)Create aTestExecutionResultfor a failed execution of a test or container with the suppliedthrowable.static TestExecutionResultTestExecutionResult. successful()Create aTestExecutionResultfor a successful execution of a test or container.Methods in org.junit.platform.engine with parameters of type TestExecutionResult Modifier and Type Method Description default voidEngineExecutionListener. 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. -
Uses of TestExecutionResult in org.junit.platform.engine.support.hierarchical
Methods in org.junit.platform.engine.support.hierarchical that return TestExecutionResult Modifier and Type Method Description TestExecutionResultSingleTestExecutor. executeSafely(SingleTestExecutor.Executable executable)Deprecated.Execute the suppliedSingleTestExecutor.Executableand return aTestExecutionResultbased on the outcome.TestExecutionResultThrowableCollector. toTestExecutionResult()Convert the collectedThrowablesinto aTestExecutionResult.Methods in org.junit.platform.engine.support.hierarchical with parameters of type TestExecutionResult Modifier and Type Method Description default voidNode. nodeFinished(C context, TestDescriptor testDescriptor, TestExecutionResult result)Callback invoked when the execution of this node has finished. -
Uses of TestExecutionResult in org.junit.platform.launcher
Methods in org.junit.platform.launcher with parameters of type TestExecutionResult Modifier and Type Method Description default voidTestExecutionListener. executionFinished(TestIdentifier testIdentifier, TestExecutionResult testExecutionResult)Called when the execution of a leaf or subtree of theTestPlanhas finished, regardless of the outcome. -
Uses of TestExecutionResult in org.junit.platform.launcher.core
Fields in org.junit.platform.launcher.core declared as TestExecutionResult Modifier and Type Field Description private TestExecutionResultOutcomeDelayingEngineExecutionListener. executionResultMethods in org.junit.platform.launcher.core with parameters of type TestExecutionResult Modifier and Type Method Description voidDelegatingEngineExecutionListener. executionFinished(TestDescriptor testDescriptor, TestExecutionResult testExecutionResult)voidExecutionListenerAdapter. executionFinished(TestDescriptor testDescriptor, TestExecutionResult testExecutionResult)voidOutcomeDelayingEngineExecutionListener. executionFinished(TestDescriptor testDescriptor, TestExecutionResult executionResult)voidTestExecutionListenerRegistry.CompositeTestExecutionListener. executionFinished(TestIdentifier testIdentifier, TestExecutionResult testExecutionResult)voidStreamInterceptingTestExecutionListener. executionJustFinished(TestIdentifier testIdentifier, TestExecutionResult testExecutionResult)default voidTestExecutionListenerRegistry.EagerTestExecutionListener. executionJustFinished(TestIdentifier testIdentifier, TestExecutionResult testExecutionResult) -
Uses of TestExecutionResult in org.junit.platform.launcher.listeners
Methods in org.junit.platform.launcher.listeners with parameters of type TestExecutionResult Modifier and Type Method Description voidLoggingListener. executionFinished(TestIdentifier testIdentifier, TestExecutionResult testExecutionResult)voidSummaryGeneratingListener. executionFinished(TestIdentifier testIdentifier, TestExecutionResult testExecutionResult) -
Uses of TestExecutionResult in org.junit.platform.reporting.legacy.xml
Fields in org.junit.platform.reporting.legacy.xml with type parameters of type TestExecutionResult Modifier and Type Field Description private java.util.List<TestExecutionResult>XmlReportWriter.AggregatedTestResult. executionResultsprivate java.util.Map<TestIdentifier,TestExecutionResult>XmlReportData. finishedTestsMethods in org.junit.platform.reporting.legacy.xml that return types with arguments of type TestExecutionResult Modifier and Type Method Description (package private) java.util.List<TestExecutionResult>XmlReportData. getResults(TestIdentifier testIdentifier)Methods in org.junit.platform.reporting.legacy.xml with parameters of type TestExecutionResult Modifier and Type Method Description voidLegacyXmlReportGeneratingListener. executionFinished(TestIdentifier testIdentifier, TestExecutionResult result)private static XmlReportWriter.AggregatedTestResult.TypeXmlReportWriter.AggregatedTestResult.Type. from(TestExecutionResult executionResult)private static booleanXmlReportWriter. isFailure(TestExecutionResult result)(package private) voidXmlReportData. markFinished(TestIdentifier testIdentifier, TestExecutionResult result)Method parameters in org.junit.platform.reporting.legacy.xml with type arguments of type TestExecutionResult Modifier and Type Method Description static XmlReportWriter.AggregatedTestResultXmlReportWriter.AggregatedTestResult. nonSkipped(java.util.List<TestExecutionResult> executionResults)Constructor parameters in org.junit.platform.reporting.legacy.xml with type arguments of type TestExecutionResult Constructor Description AggregatedTestResult(XmlReportWriter.AggregatedTestResult.Type type, java.util.List<TestExecutionResult> executionResults) -
Uses of TestExecutionResult in org.junit.platform.runner
Methods in org.junit.platform.runner with parameters of type TestExecutionResult Modifier and Type Method Description voidJUnitPlatformRunnerListener. executionFinished(TestIdentifier testIdentifier, TestExecutionResult testExecutionResult)private org.junit.runner.notification.FailureJUnitPlatformRunnerListener. toFailure(TestExecutionResult testExecutionResult, org.junit.runner.Description description) -
Uses of TestExecutionResult in org.junit.platform.testkit.engine
Fields in org.junit.platform.testkit.engine declared as TestExecutionResult Modifier and Type Field Description private TestExecutionResultTerminationInfo. testExecutionResultMethods in org.junit.platform.testkit.engine that return TestExecutionResult Modifier and Type Method Description TestExecutionResultTerminationInfo. getExecutionResult()Get theTestExecutionResultfor the completed execution.Methods in org.junit.platform.testkit.engine that return types with arguments of type TestExecutionResult Modifier and Type Method Description static org.assertj.core.api.Condition<TestExecutionResult>TestExecutionResultConditions. status(TestExecutionResult.Status expectedStatus)Create a newConditionthat matches if and only if aTestExecutionResult's status is equal to the suppliedStatus.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 newConditionthat matches if and only if aTestExecutionResult's throwable matches all supplied conditions.Methods in org.junit.platform.testkit.engine with parameters of type TestExecutionResult Modifier and Type Method Description static TerminationInfoTerminationInfo. executed(TestExecutionResult testExecutionResult)Create an executedTerminationInfoinstance for the suppliedTestExecutionResult.static EventEvent. executionFinished(TestDescriptor testDescriptor, TestExecutionResult result)voidExecutionRecorder. executionFinished(TestDescriptor testDescriptor, TestExecutionResult testExecutionResult)Record anEventfor a container or test that completed with the providedTestExecutionResult.static ExecutionExecution. finished(TestDescriptor testDescriptor, java.time.Instant startInstant, java.time.Instant endInstant, TestExecutionResult executionResult)Create a new instance of anExecutionthat finished with the providedTestExecutionResult.Method parameters in org.junit.platform.testkit.engine with type arguments of type TestExecutionResult Modifier and Type Method Description static org.assertj.core.api.Condition<Event>EventConditions. finished(org.assertj.core.api.Condition<TestExecutionResult> resultCondition)Create a newConditionthat matches if and only if anEvent's type isEventType.FINISHEDand its payload is an instance ofTestExecutionResultthat matches the suppliedCondition.static org.assertj.core.api.Condition<Event>EventConditions. result(org.assertj.core.api.Condition<TestExecutionResult> condition)Create a newConditionthat matches if and only if anEvent's payload is an instance ofTestExecutionResultthat matches the suppliedCondition.Constructors in org.junit.platform.testkit.engine with parameters of type TestExecutionResult Constructor Description TerminationInfo(boolean skipped, java.lang.String skipReason, TestExecutionResult testExecutionResult) -
Uses of TestExecutionResult in org.junit.vintage.engine.execution
Fields in org.junit.vintage.engine.execution with type parameters of type TestExecutionResult Modifier and Type Field Description private java.util.Map<TestDescriptor,java.util.List<TestExecutionResult>>TestRun. executionResultsMethods in org.junit.vintage.engine.execution that return TestExecutionResult Modifier and Type Method Description (package private) TestExecutionResultTestRun. getStoredResultOrSuccessful(TestDescriptor testDescriptor)Methods in org.junit.vintage.engine.execution with parameters of type TestExecutionResult Modifier and Type Method Description private voidRunnerExecutor. reportUnexpectedFailure(TestRun testRun, RunnerTestDescriptor runnerTestDescriptor, TestExecutionResult result)(package private) voidTestRun. storeResult(TestDescriptor testDescriptor, TestExecutionResult result)Method parameters in org.junit.vintage.engine.execution with type arguments of type TestExecutionResult Modifier and Type Method Description private voidRunListenerAdapter. handleFailure(org.junit.runner.notification.Failure failure, java.util.function.Function<java.lang.Throwable,TestExecutionResult> resultCreator)private voidRunListenerAdapter. handleFailure(org.junit.runner.notification.Failure failure, java.util.function.Function<java.lang.Throwable,TestExecutionResult> resultCreator, TestDescriptor testDescriptor)
-