From 4d9278106eb3a1647ce44bfe680768ce639f6871 Mon Sep 17 00:00:00 2001 From: Martin Ritchie Date: Fri, 4 Sep 2009 16:31:11 +0000 Subject: QPID-2081, QPID-155 : Provide a test for Dynamic Queue/Exchange toggling and fixed the issue with ChannelCloseExceptions by closing the channel and not sending the ChannelClose when the Channel has already been closed by the broker. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@811472 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/qpid/client/AMQSession.java | 18 ++++- .../client/DynamicQueueExchangeCreateTest.java | 78 ++++++++++++++++++++++ java/test-profiles/Excludes | 2 + 3 files changed, 96 insertions(+), 2 deletions(-) create mode 100644 java/systests/src/main/java/org/apache/qpid/test/unit/client/DynamicQueueExchangeCreateTest.java (limited to 'java') diff --git a/java/client/src/main/java/org/apache/qpid/client/AMQSession.java b/java/client/src/main/java/org/apache/qpid/client/AMQSession.java index 118be75705..13bc9a0eec 100644 --- a/java/client/src/main/java/org/apache/qpid/client/AMQSession.java +++ b/java/client/src/main/java/org/apache/qpid/client/AMQSession.java @@ -65,6 +65,7 @@ import org.apache.qpid.AMQDisconnectedException; import org.apache.qpid.AMQException; import org.apache.qpid.AMQInvalidArgumentException; import org.apache.qpid.AMQInvalidRoutingKeyException; +import org.apache.qpid.AMQChannelClosedException; import org.apache.qpid.client.failover.FailoverException; import org.apache.qpid.client.failover.FailoverNoopSupport; import org.apache.qpid.client.failover.FailoverProtectedOperation; @@ -628,6 +629,11 @@ public abstract class AMQSession