activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clebertsuco...@apache.org
Subject activemq-artemis git commit: NO-JIRA fixing test
Date Sat, 19 Aug 2017 16:44:53 GMT
Repository: activemq-artemis
Updated Branches:
  refs/heads/master 8966b599c -> 4f8b4d054


NO-JIRA fixing test


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

Branch: refs/heads/master
Commit: 4f8b4d054d5777211b84c338d33bc38d1f799d36
Parents: 8966b59
Author: Clebert Suconic <clebertsuconic@apache.org>
Authored: Sat Aug 19 12:44:50 2017 -0400
Committer: Clebert Suconic <clebertsuconic@apache.org>
Committed: Sat Aug 19 12:44:50 2017 -0400

----------------------------------------------------------------------
 .../jms/client/SessionMetadataAddExceptionTest.java         | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/4f8b4d05/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/client/SessionMetadataAddExceptionTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/client/SessionMetadataAddExceptionTest.java
b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/client/SessionMetadataAddExceptionTest.java
index f1bd289..4bc0522 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/client/SessionMetadataAddExceptionTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/client/SessionMetadataAddExceptionTest.java
@@ -58,7 +58,14 @@ public class SessionMetadataAddExceptionTest extends JMSTestBase {
    @Test(timeout = 5000, expected = JMSException.class)
    public void testInvalidClientIdSetConnection() throws Exception {
       Connection con = cf.createConnection();
-      con.setClientID("invalid");
+      try {
+         con.setClientID("invalid");
+      } finally {
+         try {
+            con.close();
+         } catch (Exception ignored) {
+         }
+      }
    }
 
    @Test(timeout = 5000, expected = JMSException.class)


Mime
View raw message