Class IssueExtensionExecutionListener

  • All Implemented Interfaces:
    org.junit.platform.launcher.TestExecutionListener

    public class IssueExtensionExecutionListener
    extends java.lang.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 Detail

      • REPORT_ENTRY_KEY

        public static final java.lang.String REPORT_ENTRY_KEY
        See Also:
        Constant Field Values
      • active

        private final boolean active
        This listener will be active as soon as Pioneer is on the class/module path, regardless of whether @Issue is 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 no IssueProcessor - presumably nobody uses this extension then.
      • testCases

        private final java.util.concurrent.ConcurrentMap<java.lang.String,​IssueTestCaseBuilder> testCases
    • Constructor Detail

      • IssueExtensionExecutionListener

        public IssueExtensionExecutionListener()
    • Method Detail

      • reportingEntryPublished

        public void reportingEntryPublished​(org.junit.platform.launcher.TestIdentifier testIdentifier,
                                            org.junit.platform.engine.reporting.ReportEntry entry)
        Specified by:
        reportingEntryPublished in interface org.junit.platform.launcher.TestExecutionListener
      • executionFinished

        public void executionFinished​(org.junit.platform.launcher.TestIdentifier testIdentifier,
                                      org.junit.platform.engine.TestExecutionResult testExecutionResult)
        Specified by:
        executionFinished in interface org.junit.platform.launcher.TestExecutionListener
      • testPlanExecutionFinished

        public void testPlanExecutionFinished​(org.junit.platform.launcher.TestPlan testPlan)
        Specified by:
        testPlanExecutionFinished in interface org.junit.platform.launcher.TestExecutionListener
      • createIssueTestSuites

        java.util.List<IssueTestSuite> createIssueTestSuites()