User: user57
Date: 01/07/09 19:34:05
Modified: src/main/org/jboss/test/web/test TestWebIntegration.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.9 +15 -21
jbosstest/src/main/org/jboss/test/web/test/TestWebIntegration.java
Index: TestWebIntegration.java
===================================================================
RCS file:
/cvsroot/jboss/jbosstest/src/main/org/jboss/test/web/test/TestWebIntegration.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- TestWebIntegration.java 2001/07/06 02:29:22 1.8
+++ TestWebIntegration.java 2001/07/10 02:34:05 1.9
@@ -26,7 +26,7 @@
with a role of 'AuthorizedUser' in the servlet container.
@author [EMAIL PROTECTED]
-@version $Revision: 1.8 $
+@version $Revision: 1.9 $
*/
public class TestWebIntegration extends TestCase
{
@@ -194,27 +194,21 @@
junit.textui.TestRunner.run(suite);
}
+ /**
+ * Setup the test suite.
+ */
public static Test suite() {
- TestSuite suite = new TestSuite();
+ TestSuite suite = new TestSuite();
- try {
- String filename = "../deploy/jbosstest-web.ear";
-
- // deployment is done in setUp()... to complex to move out
- // System.out.println("Deploying...");
- // Deploy.deploy(filename);
-
- suite.addTest(new TestSuite(TestWebIntegration.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;
+ String filename = "jbosstest-web.ear";
+ // deployment is done in setUp()... to complex to move out
+ // suite.addTest(new Deploy.Deployer(filename));
+
+ suite.addTest(new TestSuite(TestWebIntegration.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