diff options
| author | Rajith Muditha Attapattu <rajith@apache.org> | 2013-01-16 23:33:01 +0000 |
|---|---|---|
| committer | Rajith Muditha Attapattu <rajith@apache.org> | 2013-01-16 23:33:01 +0000 |
| commit | 81dc15b9a1051fe9b2474c500808fd4f470a9ac9 (patch) | |
| tree | 7007b79280c8400327bc7714b849e323829a54d5 /qpid/java/systests/src | |
| parent | 55e9279137d181b14ea46c55d8e7a71b175e670b (diff) | |
| download | qpid-python-81dc15b9a1051fe9b2474c500808fd4f470a9ac9.tar.gz | |
QPID-4540 The deletion of the subscription queue is now handled
separately. Enchnaced an existing test case to ensure this is handled
properly.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1434492 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java/systests/src')
| -rw-r--r-- | qpid/java/systests/src/main/java/org/apache/qpid/test/client/destination/AddressBasedDestinationTest.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/qpid/java/systests/src/main/java/org/apache/qpid/test/client/destination/AddressBasedDestinationTest.java b/qpid/java/systests/src/main/java/org/apache/qpid/test/client/destination/AddressBasedDestinationTest.java index 6041600364..371b40bfc8 100644 --- a/qpid/java/systests/src/main/java/org/apache/qpid/test/client/destination/AddressBasedDestinationTest.java +++ b/qpid/java/systests/src/main/java/org/apache/qpid/test/client/destination/AddressBasedDestinationTest.java @@ -1407,10 +1407,16 @@ public class AddressBasedDestinationTest extends QpidBrokerTestCase "}"; String addr = "ADDR:amq.topic/test; {link: {name:my-queue, durable:true," + xDeclareArgs + "}}"; - MessageConsumer cons = ssn.createConsumer(ssn.createTopic(addr)); + Destination dest = ssn.createTopic(addr); + MessageConsumer cons = ssn.createConsumer(dest); String verifyAddr = "ADDR:my-queue;{ node: {durable:true, " + xDeclareArgs + "}}"; AMQDestination verifyDest = (AMQDestination)ssn.createQueue(verifyAddr); ((AMQSession_0_10)ssn).isQueueExist(verifyDest, true); + + // Verify that the producer does not delete the subscription queue. + MessageProducer prod = ssn.createProducer(dest); + prod.close(); + ((AMQSession_0_10)ssn).isQueueExist(verifyDest, true); } } |
