Repository: maven-surefire
Updated Branches:
  refs/heads/master 7f64ddbf2 -> 82131a479


[SUREFIRE] unit test cleanup


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

Branch: refs/heads/master
Commit: 82131a47943ebf2045f5e69a27d0d487ffcbfc79
Parents: 7f64ddb
Author: Tibor17 <tibo...@lycos.com>
Authored: Sat Dec 26 02:33:42 2015 +0100
Committer: Tibor17 <tibo...@lycos.com>
Committed: Sat Dec 26 02:33:42 2015 +0100

----------------------------------------------------------------------
 .../org/apache/maven/surefire/junitcore/Surefire746Test.java  | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/82131a47/surefire-providers/surefire-junit47/src/test/java/org/apache/maven/surefire/junitcore/Surefire746Test.java
----------------------------------------------------------------------
diff --git 
a/surefire-providers/surefire-junit47/src/test/java/org/apache/maven/surefire/junitcore/Surefire746Test.java
 
b/surefire-providers/surefire-junit47/src/test/java/org/apache/maven/surefire/junitcore/Surefire746Test.java
index 635279d..0ee4269 100644
--- 
a/surefire-providers/surefire-junit47/src/test/java/org/apache/maven/surefire/junitcore/Surefire746Test.java
+++ 
b/surefire-providers/surefire-junit47/src/test/java/org/apache/maven/surefire/junitcore/Surefire746Test.java
@@ -35,7 +35,6 @@ import org.apache.maven.surefire.suite.RunResult;
 import org.apache.maven.surefire.testset.TestSetFailedException;
 import org.apache.maven.surefire.util.TestsToRun;
 
-import junit.framework.Assert;
 import org.junit.Rule;
 import org.junit.Test;
 import org.junit.rules.ExpectedException;
@@ -45,6 +44,8 @@ import org.junit.runner.notification.RunNotifier;
 import org.junit.runners.BlockJUnit4ClassRunner;
 import org.junit.runners.model.InitializationError;
 
+import static junit.framework.Assert.assertEquals;
+
 /**
  * {@code
  * <dependency>
@@ -121,8 +122,7 @@ public class Surefire746Test
         finally
         {
             RunResult result = reporterFactory.close();
-            Assert.assertEquals( "JUnit should report correctly number of test 
ran(Finished)",
-                    1, result.getCompletedCount() );
+            assertEquals( "JUnit should report correctly number of test 
ran(Finished)", 1, result.getCompletedCount() );
         }
     }
 
@@ -133,7 +133,6 @@ public class Surefire746Test
         public void shouldNeverBeCalled()
             throws Exception
         {
-            Assert.assertTrue( true );
         }
     }
 

Reply via email to