[jboss-cvs] jbosstest/src/main/org/jboss/test/securitymgr/test ...
Anil Saldhana
anil.saldhana at jboss.com
Tue Jul 11 17:37:29 EDT 2006
User: asaldhana
Date: 06/07/11 17:37:29
Modified: src/main/org/jboss/test/securitymgr/test
MDBUnitTestCase.java
Log:
JBAS-3278: The cts.jar that is being deployed as part of the jar file contains the test-destinations-full-service.xml that defines the messaging destinations. Additionally this test was trying to deploy this service file. Hence the duplicate registration messages.
Revision Changes Path
1.5 +6 -7 jbosstest/src/main/org/jboss/test/securitymgr/test/MDBUnitTestCase.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: MDBUnitTestCase.java
===================================================================
RCS file: /cvsroot/jboss/jbosstest/src/main/org/jboss/test/securitymgr/test/MDBUnitTestCase.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- MDBUnitTestCase.java 29 Oct 2005 23:42:24 -0000 1.4
+++ MDBUnitTestCase.java 11 Jul 2006 21:37:29 -0000 1.5
@@ -23,12 +23,11 @@
import junit.framework.TestSuite;
import org.jboss.test.JBossTestSetup;
-import org.jboss.test.client.test.AppClientUnitTestCase;
/** Basic conformance tests for stateless sessions
*
* @author Scott.Stark at jboss.org
- * @version $Revision: 1.4 $
+ * @version $Revision: 1.5 $
*/
public class MDBUnitTestCase
extends org.jboss.test.cts.test.MDBUnitTestCase
@@ -47,16 +46,16 @@
protected void setUp() throws Exception
{
super.setUp();
- ClassLoader loader = Thread.currentThread().getContextClassLoader();
- deploy (loader.getResource("messaging/test-destinations-full-service.xml").toString());
+ //ClassLoader loader = Thread.currentThread().getContextClassLoader();
+ //deploy (loader.getResource("messaging/test-destinations-full-service.xml").toString());
deploy ("cts.jar");
}
protected void tearDown() throws Exception
{
super.tearDown();
- ClassLoader loader = Thread.currentThread().getContextClassLoader();
+ //ClassLoader loader = Thread.currentThread().getContextClassLoader();
undeploy ("cts.jar");
- undeploy (loader.getResource("messaging/test-destinations-full-service.xml").toString());
+ //undeploy (loader.getResource("messaging/test-destinations-full-service.xml").toString());
}
});
More information about the jboss-cvs-commits
mailing list