You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by se...@apache.org on 2007/07/10 02:08:56 UTC
svn commit: r554793 -
/jakarta/jmeter/branches/rel-2-2/test/src/org/apache/jorphan/test/AllTests.java
Author: sebb
Date: Mon Jul 9 17:08:55 2007
New Revision: 554793
URL: http://svn.apache.org/viewvc?view=rev&rev=554793
Log:
TestSetup is not a suite, so use the common interface Test instead
Modified:
jakarta/jmeter/branches/rel-2-2/test/src/org/apache/jorphan/test/AllTests.java
Modified: jakarta/jmeter/branches/rel-2-2/test/src/org/apache/jorphan/test/AllTests.java
URL: http://svn.apache.org/viewvc/jakarta/jmeter/branches/rel-2-2/test/src/org/apache/jorphan/test/AllTests.java?view=diff&rev=554793&r1=554792&r2=554793
==============================================================================
--- jakarta/jmeter/branches/rel-2-2/test/src/org/apache/jorphan/test/AllTests.java (original)
+++ jakarta/jmeter/branches/rel-2-2/test/src/org/apache/jorphan/test/AllTests.java Mon Jul 9 17:08:55 2007
@@ -26,6 +26,7 @@
import java.util.List;
import java.util.Properties;
+import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
import junit.textui.TestRunner;
@@ -320,10 +321,10 @@
*/
Class clazz = Class.forName(name);
- TestSuite t = null;
+ Test t = null;
try {
Method m = clazz.getMethod("suite", new Class[0]);
- t = (TestSuite) m.invoke(clazz, null);
+ t = (Test) m.invoke(clazz, null);
suites++;
} catch (NoSuchMethodException e) {
} // this is not an error, the others are
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org