diff options
| author | Gordon Sim <gsim@apache.org> | 2010-06-30 21:55:17 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2010-06-30 21:55:17 +0000 |
| commit | 0787688bfce0afdfba92b3143fffae9bf652bf1d (patch) | |
| tree | ef6647ed86b7e69db21491305a10a52e8bf3fc48 /qpid/cpp/src/tests/MessagingSessionTests.cpp | |
| parent | eeba2d390d1297c26f6dfcaa825b8e3913e96614 (diff) | |
| download | qpid-python-0787688bfce0afdfba92b3143fffae9bf652bf1d.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@959451 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/MessagingSessionTests.cpp')
| -rw-r--r-- | qpid/cpp/src/tests/MessagingSessionTests.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/qpid/cpp/src/tests/MessagingSessionTests.cpp b/qpid/cpp/src/tests/MessagingSessionTests.cpp index 6fee1233d6..c22cb4bf73 100644 --- a/qpid/cpp/src/tests/MessagingSessionTests.cpp +++ b/qpid/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() |
