User: user57
Date: 01/07/05 19:29:20
Modified: src/main/org/jboss/test/dbtest/test Main.java
Log:
o Changed all tests which deploy one or more jars to undeploy after
testing.
Revision Changes Path
1.8 +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.8
diff -u -r1.7 -r1.8
--- Main.java 2001/06/20 08:57:29 1.7
+++ Main.java 2001/07/06 02:29:20 1.8
@@ -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