summaryrefslogtreecommitdiff
path: root/cpp/src/tests
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
commit2e0decdf234d5cf10a42453be02532756ac95aa9 (patch)
tree4920e051a43724d37916e8613dba6bb27ef04ec8 /cpp/src/tests
parent37602a9f54aafaaa9945f756b3341db22bb87295 (diff)
downloadqpid-python-2e0decdf234d5cf10a42453be02532756ac95aa9.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')
-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()