From 32e5443fed43625c0f95a36321bf465b2896e19a Mon Sep 17 00:00:00 2001 From: Martin Ritchie Date: Wed, 19 Mar 2008 12:50:53 +0000 Subject: QPID-841 : SimpleACLTest didn't close a client connection git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@638816 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/qpid/server/security/acl/SimpleACLTest.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/java/systests/src/main/java/org/apache/qpid/server/security/acl/SimpleACLTest.java b/java/systests/src/main/java/org/apache/qpid/server/security/acl/SimpleACLTest.java index 2660b79622..9ba0f6024c 100644 --- a/java/systests/src/main/java/org/apache/qpid/server/security/acl/SimpleACLTest.java +++ b/java/systests/src/main/java/org/apache/qpid/server/security/acl/SimpleACLTest.java @@ -160,6 +160,7 @@ public class SimpleACLTest extends TestCase implements ConnectionListener sesh.createConsumer(sesh.createQueue("IllegalQueue")); fail("Test failed as consumer was created."); + //conn will be automatically closed } catch (JMSException e) { @@ -207,6 +208,7 @@ public class SimpleACLTest extends TestCase implements ConnectionListener ((AMQSession) sesh).createQueue(new AMQShortString("IllegalQueue"), false, false, false); fail("Test failed as Queue creation succeded."); + //conn will be automatically closed } catch (AMQAuthenticationException amqe) { @@ -348,6 +350,7 @@ public class SimpleACLTest extends TestCase implements ConnectionListener sesh.createConsumer(sesh.createQueue("Invalid")); fail("Test failed as consumer was created."); + //conn will be automatically closed } catch (JMSException e) { @@ -374,6 +377,7 @@ public class SimpleACLTest extends TestCase implements ConnectionListener sesh.createConsumer(sesh.createTemporaryQueue()); fail("Test failed as consumer was created."); + //conn will be automatically closed } catch (JMSException e) { @@ -420,6 +424,7 @@ public class SimpleACLTest extends TestCase implements ConnectionListener ((AMQSession) sesh).createQueue(new AMQShortString("IllegalQueue"), false, false, false); fail("Test failed as creation succeded."); + //conn will be automatically closed } catch (AMQAuthenticationException amqe) { @@ -441,6 +446,7 @@ public class SimpleACLTest extends TestCase implements ConnectionListener true, false, false); fail("Test failed as creation succeded."); + //conn will be automatically closed } catch (AMQAuthenticationException amqe) { @@ -520,6 +526,7 @@ public class SimpleACLTest extends TestCase implements ConnectionListener assertNotNull("Client did not receive response message,", clientResponseMsg); assertEquals("Incorrect message received", "Response", ((TextMessage) clientResponseMsg).getText()); + clientConnection.close(); } catch (Exception e) { -- cgit v1.2.1