commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From skes...@apache.org
Subject svn commit: r570382 - /commons/proper/collections/branches/collections_jdk5_branch/src/test/org/apache/commons/collections/TestAll.java
Date Tue, 28 Aug 2007 11:24:47 GMT
Author: skestle
Date: Tue Aug 28 04:24:46 2007
New Revision: 570382

URL: http://svn.apache.org/viewvc?rev=570382&view=rev
Log:
Generified InstantiateFactory (missed commit file!)

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

Modified: commons/proper/collections/branches/collections_jdk5_branch/src/test/org/apache/commons/collections/TestAll.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/branches/collections_jdk5_branch/src/test/org/apache/commons/collections/TestAll.java?rev=570382&r1=570381&r2=570382&view=diff
==============================================================================
--- commons/proper/collections/branches/collections_jdk5_branch/src/test/org/apache/commons/collections/TestAll.java
(original)
+++ commons/proper/collections/branches/collections_jdk5_branch/src/test/org/apache/commons/collections/TestAll.java
Tue Aug 28 04:24:46 2007
@@ -16,9 +16,11 @@
  */
 package org.apache.commons.collections;
 
-import junit.framework.Test;
 import junit.framework.TestCase;
-import junit.framework.TestSuite;
+
+import org.junit.runner.RunWith;
+import org.junit.runners.Suite;
+import org.junit.runners.Suite.SuiteClasses;
 
 /**
  * Entry point for all Collections package tests.
@@ -28,33 +30,20 @@
  * @author Rodney Waldhoff
  * @author Stephen Colebourne
  */
+@RunWith(Suite.class)
+@SuiteClasses({TestBagUtils.class,
+        TestClosureUtils.class,
+        TestCollectionUtils.class,
+        TestBufferUtils.class,
+        TestEnumerationUtils.class,
+        TestFactoryUtils.class,
+        TestIteratorUtils.class,
+        TestListUtils.class,
+        TestMapUtils.class,
+        TestPredicateUtils.class,
+        TestSetUtils.class,
+        TestTransformerUtils.class,
+        TestArrayStack.class,
+        TestExtendedProperties.class})
 public class TestAll extends TestCase {
-    public TestAll(String testName) {
-        super(testName);
-    }
-
-    public static Test suite() {
-        TestSuite suite = new TestSuite();
-        suite.addTest(TestBagUtils.suite());
-        suite.addTest(TestClosureUtils.suite());
-        suite.addTest(TestCollectionUtils.suite());
-        suite.addTest(TestBufferUtils.suite());
-        suite.addTest(TestEnumerationUtils.suite());
-        suite.addTest(TestFactoryUtils.suite());
-        suite.addTest(TestIteratorUtils.suite());
-        suite.addTest(TestListUtils.suite());
-        suite.addTest(TestMapUtils.suite());
-        suite.addTest(TestPredicateUtils.suite());
-        suite.addTest(TestSetUtils.suite());
-        suite.addTest(TestTransformerUtils.suite());
-        
-        suite.addTest(TestArrayStack.suite());
-        suite.addTest(TestExtendedProperties.suite());
-        return suite;
-    }
-
-    public static void main(String args[]) {
-        String[] testCaseName = { TestAll.class.getName() };
-        junit.textui.TestRunner.main(testCaseName);
-    }
 }



Mime
View raw message