You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ti...@apache.org on 2016/11/30 23:38:15 UTC

maven-surefire git commit: [SUREFIRE-1306] JUnit4RerunFailingTestsIT does not execute with the JUnit version configured in the test

Repository: maven-surefire
Updated Branches:
  refs/heads/master 15b953000 -> 195e4833c


[SUREFIRE-1306] JUnit4RerunFailingTestsIT does not execute with the JUnit version configured in the test


Project: http://git-wip-us.apache.org/repos/asf/maven-surefire/repo
Commit: http://git-wip-us.apache.org/repos/asf/maven-surefire/commit/195e4833
Tree: http://git-wip-us.apache.org/repos/asf/maven-surefire/tree/195e4833
Diff: http://git-wip-us.apache.org/repos/asf/maven-surefire/diff/195e4833

Branch: refs/heads/master
Commit: 195e4833ca7abb0278d34bff94cd7669d5331e45
Parents: 15b9530
Author: Tibor17 <ti...@lycos.com>
Authored: Thu Dec 1 00:35:01 2016 +0100
Committer: Tibor17 <ti...@lycos.com>
Committed: Thu Dec 1 00:35:01 2016 +0100

----------------------------------------------------------------------
 .../maven/surefire/common/junit4/JUnitTestFailureListener.java  | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/195e4833/surefire-providers/common-junit4/src/main/java/org/apache/maven/surefire/common/junit4/JUnitTestFailureListener.java
----------------------------------------------------------------------
diff --git a/surefire-providers/common-junit4/src/main/java/org/apache/maven/surefire/common/junit4/JUnitTestFailureListener.java b/surefire-providers/common-junit4/src/main/java/org/apache/maven/surefire/common/junit4/JUnitTestFailureListener.java
index e6fe2de..2585f50 100644
--- a/surefire-providers/common-junit4/src/main/java/org/apache/maven/surefire/common/junit4/JUnitTestFailureListener.java
+++ b/surefire-providers/common-junit4/src/main/java/org/apache/maven/surefire/common/junit4/JUnitTestFailureListener.java
@@ -39,7 +39,10 @@ public class JUnitTestFailureListener
     public void testFailure( Failure failure )
         throws Exception
     {
-        allFailures.add( failure );
+        if ( failure != null )
+        {
+            allFailures.add( failure );
+        }
     }
 
     public List<Failure> getAllFailures()