commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From skes...@apache.org
Subject svn commit: r570395 - /commons/proper/collections/branches/collections_jdk5_branch/src/test/org/apache/commons/collections/TestAllPackages.java
Date Tue, 28 Aug 2007 12:08:30 GMT
Author: skestle
Date: Tue Aug 28 05:08:29 2007
New Revision: 570395

URL: http://svn.apache.org/viewvc?rev=570395&view=rev
Log:
Generified InstantiateFactory (missed -another;sorry- commit file!)

Modified:
    commons/proper/collections/branches/collections_jdk5_branch/src/test/org/apache/commons/collections/TestAllPackages.java

Modified: commons/proper/collections/branches/collections_jdk5_branch/src/test/org/apache/commons/collections/TestAllPackages.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/branches/collections_jdk5_branch/src/test/org/apache/commons/collections/TestAllPackages.java?rev=570395&r1=570394&r2=570395&view=diff
==============================================================================
--- commons/proper/collections/branches/collections_jdk5_branch/src/test/org/apache/commons/collections/TestAllPackages.java
(original)
+++ commons/proper/collections/branches/collections_jdk5_branch/src/test/org/apache/commons/collections/TestAllPackages.java
Tue Aug 28 05:08:29 2007
@@ -16,6 +16,10 @@
  */
 package org.apache.commons.collections;
 
+import org.junit.runner.RunWith;
+import org.junit.runners.Suite;
+import org.junit.runners.Suite.SuiteClasses;
+
 import junit.framework.Test;
 import junit.framework.TestCase;
 import junit.framework.TestSuite;
@@ -27,30 +31,17 @@
  * 
  * @author Stephen Colebourne
  */
-public class TestAllPackages extends TestCase {
-    public TestAllPackages(String testName) {
-        super(testName);
-    }
-
-    public static Test suite() {
-        TestSuite suite = new TestSuite();
-        suite.addTest(org.apache.commons.collections.TestAll.suite());
-        suite.addTest(org.apache.commons.collections.bag.TestAll.suite());
-        suite.addTest(org.apache.commons.collections.bidimap.TestAll.suite());
-        suite.addTest(org.apache.commons.collections.buffer.TestAll.suite());
-        suite.addTest(org.apache.commons.collections.collection.TestAll.suite());
-        suite.addTest(org.apache.commons.collections.comparators.TestAll.suite());
-        suite.addTest(org.apache.commons.collections.iterators.TestAll.suite());
-        suite.addTest(org.apache.commons.collections.keyvalue.TestAll.suite());
-        suite.addTest(org.apache.commons.collections.list.TestAll.suite());
-        suite.addTest(org.apache.commons.collections.map.TestAll.suite());
-        suite.addTest(org.apache.commons.collections.set.TestAll.suite());
-        return suite;
-    }
-        
-    public static void main(String args[]) {
-        String[] testCaseName = { TestAllPackages.class.getName() };
-        junit.textui.TestRunner.main(testCaseName);
-    }
-    
+@RunWith(Suite.class)
+@SuiteClasses({org.apache.commons.collections.TestAll.class,
+        org.apache.commons.collections.bag.TestAll.class,
+        org.apache.commons.collections.bidimap.TestAll.class,
+        org.apache.commons.collections.buffer.TestAll.class,
+        org.apache.commons.collections.collection.TestAll.class,
+        org.apache.commons.collections.comparators.TestAll.class,
+        org.apache.commons.collections.iterators.TestAll.class,
+        org.apache.commons.collections.keyvalue.TestAll.class,
+        org.apache.commons.collections.list.TestAll.class,
+        org.apache.commons.collections.map.TestAll.class,
+        org.apache.commons.collections.set.TestAll.class})
+public class TestAllPackages {
 }



Mime
View raw message