Package org.junit.platform.launcher.core
Class StackTracePruningEngineExecutionListener
- java.lang.Object
-
- org.junit.platform.launcher.core.DelegatingEngineExecutionListener
-
- org.junit.platform.launcher.core.StackTracePruningEngineExecutionListener
-
- All Implemented Interfaces:
EngineExecutionListener
class StackTracePruningEngineExecutionListener extends DelegatingEngineExecutionListener
Prunes the stack trace in case of a failed event.- Since:
- 1.10
- See Also:
ExceptionUtils.pruneStackTrace(Throwable, List)
-
-
Field Summary
-
Fields inherited from interface org.junit.platform.engine.EngineExecutionListener
NOOP
-
-
Constructor Summary
Constructors Constructor Description StackTracePruningEngineExecutionListener(EngineExecutionListener delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecutionFinished(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.private static java.util.List<java.lang.String>getTestClassNames(TestDescriptor testDescriptor)-
Methods inherited from class org.junit.platform.launcher.core.DelegatingEngineExecutionListener
dynamicTestRegistered, executionSkipped, executionStarted, fileEntryPublished, reportingEntryPublished
-
-
-
-
Constructor Detail
-
StackTracePruningEngineExecutionListener
StackTracePruningEngineExecutionListener(EngineExecutionListener delegate)
-
-
Method Detail
-
executionFinished
public void executionFinished(TestDescriptor testDescriptor, TestExecutionResult testExecutionResult)
Description copied from interface:EngineExecutionListenerMust be called when the execution of a leaf or subtree of the test tree has finished, regardless of the outcome.The
TestDescriptormay represent a test or a container.This method may only be called if the test or container has not been skipped.
This method must be called for a container
TestIdentifierafter all of its children have been skipped or have finished.The
TestExecutionResultdescribes the result of the execution for the suppliedtestDescriptor. The result does not include or aggregate the results of its children. For example, a container with a failing test must be reported asSUCCESSFULeven if one or more of its children are reported asFAILED.- Specified by:
executionFinishedin interfaceEngineExecutionListener- Overrides:
executionFinishedin classDelegatingEngineExecutionListener- Parameters:
testDescriptor- the descriptor of the finished test or containertestExecutionResult- the (unaggregated) result of the execution for the suppliedTestDescriptor- See Also:
TestExecutionResult
-
getTestClassNames
private static java.util.List<java.lang.String> getTestClassNames(TestDescriptor testDescriptor)
-
-