Class IssueExtensionExecutionListener
java.lang.Object
org.junitpioneer.jupiter.issue.IssueExtensionExecutionListener
- All Implemented Interfaces:
org.junit.platform.launcher.TestExecutionListener
public class IssueExtensionExecutionListener
extends Object
implements org.junit.platform.launcher.TestExecutionListener
This listener collects the names and results of all tests, which are annotated with the
@Issue annotation.
After all tests are finished the results are provided to an IssueProcessor for further processing.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanThis listener will be active as soon as Pioneer is on the class/module path, regardless of whether@Issueis actually used.static final Stringprivate final ConcurrentMap<String, IssueTestCaseBuilder> static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) List<IssueTestSuite> voidexecutionFinished(org.junit.platform.launcher.TestIdentifier testIdentifier, org.junit.platform.engine.TestExecutionResult testExecutionResult) private List<IssueTestCase> getIssueTestCases(IssueTestCaseBuilder builder) private List<IssueTestCase> mergeIssueTestCases(List<IssueTestCase> first, List<IssueTestCase> second) voidreportingEntryPublished(org.junit.platform.launcher.TestIdentifier testIdentifier, org.junit.platform.engine.reporting.ReportEntry entry) voidtestPlanExecutionFinished(org.junit.platform.launcher.TestPlan testPlan) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.junit.platform.launcher.TestExecutionListener
dynamicTestRegistered, executionSkipped, executionStarted, testPlanExecutionStarted
-
Field Details
-
REPORT_ENTRY_KEY
- See Also:
-
TIME_REPORT_KEY
- See Also:
-
active
private final boolean activeThis listener will be active as soon as Pioneer is on the class/module path, regardless of whether@Issueis actually used. To prevent superfluous computation and memory use, we "deactivate" this listener if it is not needed. That's the case when we detect noIssueProcessor- presumably nobody uses this extension then. -
testCases
-
-
Constructor Details
-
IssueExtensionExecutionListener
public IssueExtensionExecutionListener()
-
-
Method Details
-
reportingEntryPublished
public void reportingEntryPublished(org.junit.platform.launcher.TestIdentifier testIdentifier, org.junit.platform.engine.reporting.ReportEntry entry) - Specified by:
reportingEntryPublishedin interfaceorg.junit.platform.launcher.TestExecutionListener
-
executionFinished
public void executionFinished(org.junit.platform.launcher.TestIdentifier testIdentifier, org.junit.platform.engine.TestExecutionResult testExecutionResult) - Specified by:
executionFinishedin interfaceorg.junit.platform.launcher.TestExecutionListener
-
testPlanExecutionFinished
public void testPlanExecutionFinished(org.junit.platform.launcher.TestPlan testPlan) - Specified by:
testPlanExecutionFinishedin interfaceorg.junit.platform.launcher.TestExecutionListener
-
createIssueTestSuites
List<IssueTestSuite> createIssueTestSuites() -
getIssueTestCases
-
mergeIssueTestCases
private List<IssueTestCase> mergeIssueTestCases(List<IssueTestCase> first, List<IssueTestCase> second)
-