[jboss-cvs] JBossAS SVN: r62293 - projects/test/trunk/test/src/main/org/jboss/test.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Apr 12 04:47:49 EDT 2007


Author: alesj
Date: 2007-04-12 04:47:49 -0400 (Thu, 12 Apr 2007)
New Revision: 62293

Modified:
   projects/test/trunk/test/src/main/org/jboss/test/BaseTestCase.java
Log:
get suite util method

Modified: projects/test/trunk/test/src/main/org/jboss/test/BaseTestCase.java
===================================================================
--- projects/test/trunk/test/src/main/org/jboss/test/BaseTestCase.java	2007-04-12 08:39:09 UTC (rev 62292)
+++ projects/test/trunk/test/src/main/org/jboss/test/BaseTestCase.java	2007-04-12 08:47:49 UTC (rev 62293)
@@ -23,6 +23,7 @@
 
 import org.jboss.logging.Logger;
 import org.jboss.test.logging.LoggingPlugin;
+import junit.framework.TestSuite;
 
 /**
  * Base Test Case. Simple test support.
@@ -48,6 +49,17 @@
       super(name);
    }
 
+   /**
+    * Create a new testsuite for the class
+    *
+    * @param clazz the class
+    * @return the suite
+    */
+   public static TestSuite suite(Class<?> clazz)
+   {
+      return new TestSuite(clazz);
+   }
+
    public Logger getLog()
    {
       return log;




More information about the jboss-cvs-commits mailing list