activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject svn commit: r366199 - /incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/JmsTopicRedeliverTest.java
Date Thu, 05 Jan 2006 15:23:22 GMT
Author: jstrachan
Date: Thu Jan  5 07:23:18 2006
New Revision: 366199

URL: http://svn.apache.org/viewcvs?rev=366199&view=rev
Log:
fixed test case to close down the connection in between test cases to avoid duplicate clientID
exceptions

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

Modified: incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/JmsTopicRedeliverTest.java
URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/JmsTopicRedeliverTest.java?rev=366199&r1=366198&r2=366199&view=diff
==============================================================================
--- incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/JmsTopicRedeliverTest.java
(original)
+++ incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/JmsTopicRedeliverTest.java
Thu Jan  5 07:23:18 2006
@@ -26,8 +26,6 @@
 import javax.jms.TextMessage;
 import javax.jms.Topic;
 
-import org.apache.activemq.ActiveMQConnection;
-
 /**
  * @version $Revision: 1.4 $
  */
@@ -87,6 +85,15 @@
 
         log.info("Created connection: " + connection);
     }
+
+    
+    protected void tearDown() throws Exception {
+        if (connection != null) {
+            connection.close();
+        }
+        super.tearDown();
+    }
+
 
     /**
      * Returns the consumer subject.



Mime
View raw message