User: starksm
Date: 01/07/08 18:06:03
Modified: src/main/org/jboss/test/dbtest/test Tag: Branch_2_4
Main.java
Log:
Merge latest changes from main to the 2.4 branch
Revision Changes Path
No revision
No revision
1.7.2.1 +27 -1 jbosstest/src/main/org/jboss/test/dbtest/test/Main.java
Index: Main.java
===================================================================
RCS file: /cvsroot/jboss/jbosstest/src/main/org/jboss/test/dbtest/test/Main.java,v
retrieving revision 1.7
retrieving revision 1.7.2.1
diff -u -r1.7 -r1.7.2.1
--- Main.java 2001/06/20 08:57:29 1.7
+++ Main.java 2001/07/09 01:06:03 1.7.2.1
@@ -22,8 +22,11 @@
import org.jboss.test.dbtest.interfaces.Record;
import org.jboss.test.dbtest.interfaces.RecordHome;
+import junit.framework.*;
+import org.jboss.test.util.Deploy;
-public class Main extends junit.framework.TestCase
+public class Main
+ extends TestCase
{
static boolean deployed = false;
@@ -313,6 +316,7 @@
protected void setUp() throws Exception
{
+ /*
if (deployed) return;
System.out.println("_____________________________________________");
@@ -329,5 +333,27 @@
new org.jboss.jmx.client.Deployer().deploy("../deploy/dbtest.jar");
deployed = true;
System.out.println("done!");
+ */
}
+
+ public static Test suite() {
+ TestSuite suite = new TestSuite();
+
+ try {
+ String filename = "../deploy/dbtest.jar";
+ System.out.println("Deploying...");
+ Deploy.deploy(filename);
+
+ suite.addTest(new TestSuite(Main.class));
+
+ // add a test case to undeploy our support applications
+ suite.addTest(new Deploy.Undeployer(filename));
+ }
+ catch (Throwable t) {
+ t.printStackTrace();
+ System.exit(0);
+ }
+
+ return suite;
+ }
}
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development