summaryrefslogtreecommitdiff
path: root/cpp/src/tests/MessagingSessionTests.cpp
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2010-06-30 21:55:17 +0000
committerGordon Sim <gsim@apache.org>2010-06-30 21:55:17 +0000
commite5b931c37b591ed19fa5a63afd2d05d6f1fca13e (patch)
tree4920e051a43724d37916e8613dba6bb27ef04ec8 /cpp/src/tests/MessagingSessionTests.cpp
parentedff721d2ca6140fe2767d035cbe8b3709fb6e72 (diff)
downloadqpid-python-e5b931c37b591ed19fa5a63afd2d05d6f1fca13e.tar.gz
QPID-664: corrected option name for setting subscribe options on a queue
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@959451 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests/MessagingSessionTests.cpp')
-rw-r--r--cpp/src/tests/MessagingSessionTests.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/cpp/src/tests/MessagingSessionTests.cpp b/cpp/src/tests/MessagingSessionTests.cpp
index 6fee1233d6..c22cb4bf73 100644
--- a/cpp/src/tests/MessagingSessionTests.cpp
+++ b/cpp/src/tests/MessagingSessionTests.cpp
@@ -756,6 +756,19 @@ QPID_AUTO_TEST_CASE(testSendSpecialProperties)
BOOST_CHECK_EQUAL(in.getMessageProperties().getMessageId().str(), out.getMessageId());
}
+QPID_AUTO_TEST_CASE(testExclusiveSubscriber)
+{
+ QueueFixture fix;
+ std::string address = (boost::format("%1%; { link: { x-subscribe : { exclusive:true } } }") % fix.queue).str();
+ Receiver receiver = fix.session.createReceiver(address);
+ ScopedSuppressLogging sl;
+ try {
+ fix.session.createReceiver(address);
+ fix.session.sync();
+ BOOST_FAIL("Expected exception.");
+ } catch (const MessagingException& e) {}
+}
+
QPID_AUTO_TEST_SUITE_END()