maven-surefire-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jvan...@apache.org
Subject svn commit: r356820 - /maven/surefire/trunk/surefire/src/main/java/org/apache/maven/surefire/Surefire.java
Date Wed, 14 Dec 2005 18:00:21 GMT
Author: jvanzyl
Date: Wed Dec 14 10:00:17 2005
New Revision: 356820

URL: http://svn.apache.org/viewcvs?rev=356820&view=rev
Log:
o slipping back in the exclusion of abstract test running that got accidentally remove in
356674

Modified:
    maven/surefire/trunk/surefire/src/main/java/org/apache/maven/surefire/Surefire.java

Modified: maven/surefire/trunk/surefire/src/main/java/org/apache/maven/surefire/Surefire.java
URL: http://svn.apache.org/viewcvs/maven/surefire/trunk/surefire/src/main/java/org/apache/maven/surefire/Surefire.java?rev=356820&r1=356819&r2=356820&view=diff
==============================================================================
--- maven/surefire/trunk/surefire/src/main/java/org/apache/maven/surefire/Surefire.java (original)
+++ maven/surefire/trunk/surefire/src/main/java/org/apache/maven/surefire/Surefire.java Wed
Dec 14 10:00:17 2005
@@ -24,14 +24,15 @@
 import org.apache.maven.surefire.report.ReporterManager;
 
 import java.lang.reflect.Constructor;
+import java.lang.reflect.Modifier;
 import java.util.ArrayList;
 import java.util.Iterator;
 import java.util.List;
 import java.util.ResourceBundle;
 
 /**
+ * @version $Id$
  * @uathor Jason van Zyl
- * @version $Id:$
  */
 public class Surefire
 {
@@ -57,7 +58,7 @@
         return resources;
     }
 
-    public boolean run( List reports, List batteryHolders, String reportsDirectory ) 
+    public boolean run( List reports, List batteryHolders, String reportsDirectory )
         throws Exception
     {
         ClassLoader classLoader = this.getClass().getClassLoader();
@@ -272,6 +273,11 @@
                 batteryClass = loader.loadClass( "org.apache.maven.surefire.battery.Battery"
);
             }
             catch ( Exception e )
+            {
+                continue;
+            }
+
+            if ( Modifier.isAbstract( testClass.getModifiers() ) )
             {
                 continue;
             }



Mime
View raw message