User: user57
Date: 01/07/09 19:34:03
Modified: src/main/org/jboss/test/cts/test AllJUnitTests.java
Main.java
Log:
o changed all deploy tests to deploy as a test and to not call System.exit().
this should allow reports to be generated for tests that fail to deploy.
o modified run_tests.xml basic-security-tests to not-halt on error, so that
test-and-report will produce reports even if the security tests fail.
Revision Changes Path
1.14 +6 -20 jbosstest/src/main/org/jboss/test/cts/test/AllJUnitTests.java
Index: AllJUnitTests.java
===================================================================
RCS file:
/cvsroot/jboss/jbosstest/src/main/org/jboss/test/cts/test/AllJUnitTests.java,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- AllJUnitTests.java 2001/07/06 02:29:20 1.13
+++ AllJUnitTests.java 2001/07/10 02:34:03 1.14
@@ -25,35 +25,21 @@
* @param name
*
*/
-
public AllJUnitTests (String name)
{
super(name);
}
/**
- * Method suite
- *
- *
- * @return
- *
+ * Setup the test suite.
*/
-
- public static Test suite ()
+ public static Test suite()
{
TestSuite suite = new TestSuite();
- String filename = "../deploy/cts.jar";
-
- try
- {
- System.out.println("Deploying...");
- Deploy.deploy(filename);
- }
- catch (Exception ex)
- {
- ex.printStackTrace();
- System.exit(0);
- }
+
+ // add a test case to deploy our support applications
+ String filename = "cts.jar";
+ suite.addTest(new Deploy.Deployer(filename));
suite.addTest(new StatefulSessionTest("testBasicSession"));
suite.addTest(new StatefulSessionTest("testEJBHomeInterface"));
1.5 +19 -22 jbosstest/src/main/org/jboss/test/cts/test/Main.java
Index: Main.java
===================================================================
RCS file: /cvsroot/jboss/jbosstest/src/main/org/jboss/test/cts/test/Main.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- Main.java 2001/07/06 02:29:20 1.4
+++ Main.java 2001/07/10 02:34:03 1.5
@@ -17,7 +17,7 @@
*
* @see <related>
* @author $Author: user57 $
- * @version $Revision: 1.4 $
+ * @version $Revision: 1.5 $
*/
public class Main
@@ -303,26 +303,23 @@
deployed = true;
}
- public static Test suite() {
- TestSuite suite = new TestSuite();
-
- try {
- String filename = "../deploy/cts.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;
- }
+ /**
+ * Setup the test suite.
+ */
+ public static Test suite() {
+ TestSuite suite = new TestSuite();
+
+ // add a test case to deploy our support applications
+ String filename = "cts.jar";
+ suite.addTest(new Deploy.Deployer(filename));
+
+ suite.addTest(new TestSuite(Main.class));
+
+ // add a test case to undeploy our support applications
+ suite.addTest(new Deploy.Undeployer(filename));
+
+ return suite;
+ }
}
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development