jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r209087 - /incubator/jackrabbit/trunk/contrib/tck-webapp/src/java/org/apache/jackrabbit/tck/Tester.java
Date Mon, 04 Jul 2005 14:40:48 GMT
Author: mreutegg
Date: Mon Jul  4 07:40:46 2005
New Revision: 209087

URL: http://svn.apache.org/viewcvs?rev=209087&view=rev
Log:
- Maintain sequence of test cases when using an exclude list.

Modified:
    incubator/jackrabbit/trunk/contrib/tck-webapp/src/java/org/apache/jackrabbit/tck/Tester.java

Modified: incubator/jackrabbit/trunk/contrib/tck-webapp/src/java/org/apache/jackrabbit/tck/Tester.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/tck-webapp/src/java/org/apache/jackrabbit/tck/Tester.java?rev=209087&r1=209086&r2=209087&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/contrib/tck-webapp/src/java/org/apache/jackrabbit/tck/Tester.java
(original)
+++ incubator/jackrabbit/trunk/contrib/tck-webapp/src/java/org/apache/jackrabbit/tck/Tester.java
Mon Jul  4 07:40:46 2005
@@ -32,6 +32,8 @@
 import java.util.HashMap;
 import java.util.Iterator;
 import java.util.Enumeration;
+import java.util.List;
+import java.util.ArrayList;
 
 import org.apache.jackrabbit.test.AbstractJCRTest;
 import org.apache.jackrabbit.test.RepositoryHelper;
@@ -132,7 +134,8 @@
             } else {
                 TestSuite ts = new TestSuite();
                 ts.setName(testClassName);
-                Map testcases = new HashMap();
+                //Map testcases = new HashMap();
+                List testcases = new ArrayList();
                 boolean recreate = false;
 
                 Enumeration testMethods = testClass.tests();
@@ -142,16 +145,15 @@
                     if (excludeList.containsKey(testClassName + "#" + methodname)) {
                         recreate = true;
                     } else {
-                        testcases.put(methodname, tc);
+                        testcases.add(tc);
                     }
                 }
                 if (recreate) {
                     TestSuite recreatedTS = new TestSuite(ts.toString());
-                    Iterator itr = testcases.keySet().iterator();
+                    Iterator itr = testcases.iterator();
 
                     while (itr.hasNext()) {
-                        String key = (String) itr.next();
-                        recreatedTS.addTest((TestCase) testcases.get(key));
+                        recreatedTS.addTest((TestCase) itr.next());
                     }
                     updatedTS.addTest(recreatedTS);
                 } else {



Mime
View raw message