activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject svn commit: r384459 - /incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/ActiveMQXAConnectionFactoryTest.java
Date Thu, 09 Mar 2006 08:25:04 GMT
Author: jstrachan
Date: Thu Mar  9 00:25:03 2006
New Revision: 384459

URL: http://svn.apache.org/viewcvs?rev=384459&view=rev
Log:
added test for copy() method

Modified:
    incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/ActiveMQXAConnectionFactoryTest.java

Modified: incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/ActiveMQXAConnectionFactoryTest.java
URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/ActiveMQXAConnectionFactoryTest.java?rev=384459&r1=384458&r2=384459&view=diff
==============================================================================
--- incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/ActiveMQXAConnectionFactoryTest.java
(original)
+++ incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/ActiveMQXAConnectionFactoryTest.java
Thu Mar  9 00:25:03 2006
@@ -20,7 +20,6 @@
 import java.net.URISyntaxException;
 
 import javax.jms.*;
-import javax.jms.JMSException;
 
 import org.apache.activemq.ActiveMQXAConnectionFactory;
 import org.apache.activemq.broker.BrokerRegistry;
@@ -29,6 +28,13 @@
 
 public class ActiveMQXAConnectionFactoryTest extends CombinationTestSupport {
     
+    public void testCopy() throws URISyntaxException, JMSException {
+        ActiveMQXAConnectionFactory cf = new ActiveMQXAConnectionFactory("vm://localhost?");
+        ActiveMQConnectionFactory copy = cf.copy();
+        assertTrue("Should be an ActiveMQXAConnectionFactory", copy instanceof ActiveMQXAConnectionFactory);
+    }
+    
+        
     public void testUseURIToSetOptionsOnConnectionFactory() throws URISyntaxException, JMSException
{
         ActiveMQXAConnectionFactory cf = new ActiveMQXAConnectionFactory("vm://localhost?jms.useAsyncSend=true");
         assertTrue(cf.isUseAsyncSend());



Mime
View raw message