activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject activemq git commit: https://issues.apache.org/jira/browse/AMQ-5621
Date Mon, 16 May 2016 18:09:43 GMT
Repository: activemq
Updated Branches:
  refs/heads/master d9c404829 -> 2a10e9900


https://issues.apache.org/jira/browse/AMQ-5621

Add some additional test cleanup

Project: http://git-wip-us.apache.org/repos/asf/activemq/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq/commit/2a10e990
Tree: http://git-wip-us.apache.org/repos/asf/activemq/tree/2a10e990
Diff: http://git-wip-us.apache.org/repos/asf/activemq/diff/2a10e990

Branch: refs/heads/master
Commit: 2a10e9900a5f8a48eafc15f6820476f76499a70b
Parents: d9c4048
Author: Timothy Bish <tabish121@gmail.com>
Authored: Mon May 16 13:58:14 2016 -0400
Committer: Timothy Bish <tabish121@gmail.com>
Committed: Mon May 16 13:58:14 2016 -0400

----------------------------------------------------------------------
 .../apache/activemq/transport/stomp/Stomp11Test.java    | 12 ++++++++++++
 1 file changed, 12 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq/blob/2a10e990/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/Stomp11Test.java
----------------------------------------------------------------------
diff --git a/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/Stomp11Test.java
b/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/Stomp11Test.java
index eff719e..a707cf2 100644
--- a/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/Stomp11Test.java
+++ b/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/Stomp11Test.java
@@ -63,6 +63,18 @@ public class Stomp11Test extends StompTestSupport {
         connection.start();
     }
 
+    @Override
+    public void tearDown() throws Exception {
+        try {
+            if (connection != null) {
+                connection.close();
+                connection = null;
+            }
+        } catch (Exception ex) {}
+
+        super.tearDown();
+    }
+
     @Test(timeout = 60000)
     public void testConnect() throws Exception {
 


Mime
View raw message