[jboss-cvs] JBossAS SVN: r64444 - branches/Branch_4_4/testsuite/src/main/org/jboss/test/web/test.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Fri Aug 3 00:14:14 EDT 2007
Author: clebert.suconic at jboss.com
Date: 2007-08-03 00:14:14 -0400 (Fri, 03 Aug 2007)
New Revision: 64444
Modified:
branches/Branch_4_4/testsuite/src/main/org/jboss/test/web/test/WebIntegrationUnitTestCase.java
Log:
Fixing test
Modified: branches/Branch_4_4/testsuite/src/main/org/jboss/test/web/test/WebIntegrationUnitTestCase.java
===================================================================
--- branches/Branch_4_4/testsuite/src/main/org/jboss/test/web/test/WebIntegrationUnitTestCase.java 2007-08-03 04:07:37 UTC (rev 64443)
+++ branches/Branch_4_4/testsuite/src/main/org/jboss/test/web/test/WebIntegrationUnitTestCase.java 2007-08-03 04:14:14 UTC (rev 64444)
@@ -513,6 +513,7 @@
*/
public static Test suite() throws Exception
{
+ final boolean useJBM = System.getProperty("jbosstest.useJBM")!=null;
TestSuite suite = new TestSuite();
suite.addTest(new TestSuite(WebIntegrationUnitTestCase.class));
@@ -533,7 +534,8 @@
// Remove all the messages created during this test
getServer().invoke
(
- new ObjectName("jboss.mq.destination:service=Queue,name=testQueue"),
+ new ObjectName(useJBM?"jboss.messaging.destination:service=Queue,name=testQueue"
+ :"jboss.mq.destination:service=Queue,name=testQueue"),
"removeAllMessages",
new Object[0],
new String[0]
More information about the jboss-cvs-commits
mailing list