svn commit: r771125 - /ofbiz/trunk/framework/testtools/src/org/ofbiz/testtools/ModelTestSuite.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r771125 - /ofbiz/trunk/framework/testtools/src/org/ofbiz/testtools/ModelTestSuite.java

doogie-3
Author: doogie
Date: Sun May  3 20:36:13 2009
New Revision: 771125

URL: http://svn.apache.org/viewvc?rev=771125&view=rev
Log:
Another generics fix.

Modified:
    ofbiz/trunk/framework/testtools/src/org/ofbiz/testtools/ModelTestSuite.java

Modified: ofbiz/trunk/framework/testtools/src/org/ofbiz/testtools/ModelTestSuite.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/testtools/src/org/ofbiz/testtools/ModelTestSuite.java?rev=771125&r1=771124&r2=771125&view=diff
==============================================================================
--- ofbiz/trunk/framework/testtools/src/org/ofbiz/testtools/ModelTestSuite.java (original)
+++ ofbiz/trunk/framework/testtools/src/org/ofbiz/testtools/ModelTestSuite.java Sun May  3 20:36:13 2009
@@ -29,6 +29,7 @@
 import org.apache.commons.lang.RandomStringUtils;
 import org.ofbiz.base.util.Debug;
 import org.ofbiz.base.util.ObjectType;
+import org.ofbiz.base.util.UtilGenerics;
 import org.ofbiz.base.util.UtilMisc;
 import org.ofbiz.base.util.UtilValidate;
 import org.ofbiz.base.util.UtilXml;
@@ -152,7 +153,7 @@
     private void prepareTest(Test test)
     {
         if (test instanceof TestSuite) {
-            Enumeration<Test> subTests = ((TestSuite) test).tests();
+            Enumeration<Test> subTests = UtilGenerics.cast(((TestSuite) test).tests());
             while (subTests.hasMoreElements()) {
                 prepareTest(subTests.nextElement());
             }