[jboss-cvs] JBossAS SVN: r61829 - trunk/testsuite/src/main/org/jboss/test/util/ejb.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Thu Mar 29 04:09:28 EDT 2007
Author: dimitris at jboss.org
Date: 2007-03-29 04:09:28 -0400 (Thu, 29 Mar 2007)
New Revision: 61829
Modified:
trunk/testsuite/src/main/org/jboss/test/util/ejb/EJBTestCase.java
Log:
Add the missing getDelegate(Class) method.
Modified: trunk/testsuite/src/main/org/jboss/test/util/ejb/EJBTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/util/ejb/EJBTestCase.java 2007-03-29 05:08:46 UTC (rev 61828)
+++ trunk/testsuite/src/main/org/jboss/test/util/ejb/EJBTestCase.java 2007-03-29 08:09:28 UTC (rev 61829)
@@ -30,6 +30,9 @@
import junit.framework.TestCase;
import junit.framework.TestResult;
+import org.jboss.test.AbstractTestDelegate;
+import org.jboss.test.JBossTestServices;
+
/**
* An ejb test case is an extension to test case where the test is executed
* in the ejb server's virtual machine.
@@ -71,6 +74,12 @@
private boolean serverSide = false;
protected Properties props;
+ public static AbstractTestDelegate getDelegate(Class clazz) throws Exception
+ {
+ AbstractTestDelegate delegate = new JBossTestServices(clazz);
+ return delegate;
+ }
+
/**
* Constructs a test case that will run the method with the specified name.
* @param methodName the name of the method that will executed when this
More information about the jboss-cvs-commits
mailing list