You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Benedikt Ritter (JIRA)" <ji...@apache.org> on 2016/10/09 15:14:20 UTC
[jira] [Updated] (SUREFIRE-1293) Simplify
org.apache.maven.plugin.surefire.report.TestSetRunListener by using the
null object pattern
[ https://issues.apache.org/jira/browse/SUREFIRE-1293?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benedikt Ritter updated SUREFIRE-1293:
--------------------------------------
External issue URL: https://github.com/apache/maven-surefire/pull/127
> Simplify org.apache.maven.plugin.surefire.report.TestSetRunListener by using the null object pattern
> ----------------------------------------------------------------------------------------------------
>
> Key: SUREFIRE-1293
> URL: https://issues.apache.org/jira/browse/SUREFIRE-1293
> Project: Maven Surefire
> Issue Type: Improvement
> Components: Maven Surefire Plugin
> Reporter: Benedikt Ritter
>
> The class org.apache.maven.plugin.surefire.report.TestSetRunListener has a lot of checks like this:
> {code:java}
> if( field != null )
> {
> // do something with field
> }
> {code}
> This can be simplified by providing fallback implementations for the fields being used by TestSetRunListener.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)