[jboss-cvs] JBossAS SVN: r58422 - in trunk/testsuite: . src/main/org/jboss/test/jbossmessaging/test
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Nov 15 17:11:09 EST 2006
Author: rachmatowicz at jboss.com
Date: 2006-11-15 17:11:09 -0500 (Wed, 15 Nov 2006)
New Revision: 58422
Added:
trunk/testsuite/src/main/org/jboss/test/jbossmessaging/test/XAResourceWrapperSmokeUnitTestCase.java
Modified:
trunk/testsuite/build.xml
Log:
Add more refactored JMS test cases
Modified: trunk/testsuite/build.xml
===================================================================
--- trunk/testsuite/build.xml 2006-11-15 22:00:32 UTC (rev 58421)
+++ trunk/testsuite/build.xml 2006-11-15 22:11:09 UTC (rev 58422)
@@ -665,7 +665,7 @@
<!-- jbossmessaging includes -->
<patternset id="jbossmessaging.includes">
<include name="org/jboss/test/jbossmessaging/test/*UnitTestCase.class"/>
- <include name="org/jboss/test/jbossmessaging/perf/*UnitTestCase.class"/>
+ <include name="org/jboss/test/jbossmessaging/perf/*StressTestCase.class"/>
</patternset>
<!-- Tests needing xml binding setup -->
<patternset id="jbossxb.includes">
Added: trunk/testsuite/src/main/org/jboss/test/jbossmessaging/test/XAResourceWrapperSmokeUnitTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/jbossmessaging/test/XAResourceWrapperSmokeUnitTestCase.java 2006-11-15 22:00:32 UTC (rev 58421)
+++ trunk/testsuite/src/main/org/jboss/test/jbossmessaging/test/XAResourceWrapperSmokeUnitTestCase.java 2006-11-15 22:11:09 UTC (rev 58422)
@@ -0,0 +1,59 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2005, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.jbossmessaging.test;
+
+import javax.management.MBeanServerConnection;
+import javax.management.ObjectName;
+
+import junit.framework.Test;
+
+import org.jboss.mx.util.ObjectNameFactory;
+import org.jboss.test.jbossmessaging.JMSTestCase;
+import org.jboss.test.JBossTestSetup;
+
+/**
+ * Test the XAResourceWrapper makes a connection.
+ *
+ * @author <a href="richard.achmatowicz at jboss.com">Richard Achmatowicz</a>
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 45341 $
+ */
+public class XAResourceWrapperSmokeUnitTestCase extends JMSTestCase
+{
+ ObjectName name = ObjectNameFactory.create("jboss.test:service=XAWrapperSmoke");
+
+ public void testSmoke() throws Exception
+ {
+ MBeanServerConnection server = getServer();
+ server.invoke(name, "smokeTest", null, null);
+ }
+
+ public static Test suite() throws Exception
+ {
+ return new JBossTestSetup(getDeploySetup(XAResourceWrapperSmokeUnitTestCase.class, "jms-xawrapper-smoke.sar"));
+ }
+
+ public XAResourceWrapperSmokeUnitTestCase(String name)
+ {
+ super(name);
+ }
+}
More information about the jboss-cvs-commits
mailing list