User: d_jencks Date: 01/09/17 10:33:54 Modified: src/main/org/jboss/test/xa/test XAUnitTestCase.java Log: Finished converting to JBossTestCase for deploy and logging. Security tests still do not work due to deploy problems Revision Changes Path 1.2 +24 -18 jbosstest/src/main/org/jboss/test/xa/test/XAUnitTestCase.java Index: XAUnitTestCase.java =================================================================== RCS file: /cvsroot/jboss/jbosstest/src/main/org/jboss/test/xa/test/XAUnitTestCase.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- XAUnitTestCase.java 2001/09/12 04:55:41 1.1 +++ XAUnitTestCase.java 2001/09/17 17:33:54 1.2 @@ -1,3 +1,10 @@ +/* + * JBoss, the OpenSource J2EE webOS + * + * Distributable under LGPL license. + * See terms of license at gnu.org. + */ + package org.jboss.test.xa.test; import java.rmi.*; @@ -20,14 +27,22 @@ import junit.framework.TestCase; import junit.framework.TestSuite; -import org.jboss.test.util.Deploy; +import org.jboss.test.JBossTestCase; import org.jboss.test.xa.interfaces.CantSeeDataException; import org.jboss.test.xa.interfaces.XATest; import org.jboss.test.xa.interfaces.XATestHome; +/* This needs lots more work to be an acceptable test case. +Aside from needing an xa-capable database, we need an xa-test-service.xml +file to deploy the two ConnectionFactoryLoaders. +Then the printing needs to be changed to assertions. + + +*/ + public class XAUnitTestCase - extends TestCase + extends JBossTestCase { public XAUnitTestCase(String name) { @@ -117,23 +132,14 @@ protected void setUp() throws Exception { + super.setUp(); + deployJ2ee("xatest.jar"); } - /** - * Setup the test suite. - */ - public static Test suite() { - TestSuite suite = new TestSuite(); - - // add a test case to deploy our support applications - String filename = "xatest.jar"; - suite.addTest(new Deploy.Deployer(filename)); - - suite.addTest(new TestSuite(XAUnitTestCase.class)); - - // add a test case to undeploy our support applications - suite.addTest(new Deploy.Undeployer("../deploy/xatest.jar")); - - return suite; + protected void tearDown() throws Exception + { + undeployJ2ee("xatest.jar"); + super.tearDown(); } + } _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development