Uploaded image for project: 'Maven Surefire'
  1. Maven Surefire
  2. SUREFIRE-1293

Simplify org.apache.maven.plugin.surefire.report.TestSetRunListener by using the null object pattern

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.20
    • Component/s: Maven Surefire Plugin
    • Labels:

      Description

      The class org.apache.maven.plugin.surefire.report.TestSetRunListener has a lot of checks like this:

      if( field != null )
      {
          // do something with field
      }
      

      This can be simplified by providing fallback implementations for the fields being used by TestSetRunListener.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                tibor17 Tibor Digana
                Reporter:
                britter Benedikt Ritter
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: