svn commit: r1098245 - /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: r1098245 - /ofbiz/trunk/framework/testtools/src/org/ofbiz/testtools/ModelTestSuite.java

jleroux@apache.org
Author: jleroux
Date: Sun May  1 10:14:59 2011
New Revision: 1098245

URL: http://svn.apache.org/viewvc?rev=1098245&view=rev
Log:
We have got this issue on trunk demo server

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=1098245&r1=1098244&r2=1098245&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  1 10:14:59 2011
@@ -23,6 +23,7 @@ import java.util.List;
 
 import javolution.util.FastList;
 import junit.framework.Test;
+import junit.framework.TestCase;
 import junit.framework.TestSuite;
 
 import org.apache.commons.lang.RandomStringUtils;
@@ -95,7 +96,8 @@ public class ModelTestSuite {
             String className = testElement.getAttribute("class-name");
 
             try {
-                Class<?> clz = ObjectType.loadClass(className);
+                @SuppressWarnings("unchecked")
+ Class<? extends TestCase> clz = (Class<? extends TestCase>) ObjectType.loadClass(className);
                 TestSuite suite = new TestSuite();
                 suite.addTestSuite(clz);
                 Enumeration<?> testEnum = suite.tests();