diff options
author | Gordon Sim <gsim@apache.org> | 2009-11-19 22:08:30 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2009-11-19 22:08:30 +0000 |
commit | 003364c3f387a158cf7a7e3cdfd5e2ddc38eae57 (patch) | |
tree | 48fe82188d587c5ab90f98ea51f53a87c39f84e5 /cpp/src/tests/MessagingSessionTests.cpp | |
parent | 4e7097e788097ffa50ff0a13ba13ee2d137f70ca (diff) | |
download | qpid-python-003364c3f387a158cf7a7e3cdfd5e2ddc38eae57.tar.gz |
QPID-664: Refine address resolution; if type not specified, default to queue as per python client.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@882323 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests/MessagingSessionTests.cpp')
-rw-r--r-- | cpp/src/tests/MessagingSessionTests.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cpp/src/tests/MessagingSessionTests.cpp b/cpp/src/tests/MessagingSessionTests.cpp index 09440cc183..1293ce9429 100644 --- a/cpp/src/tests/MessagingSessionTests.cpp +++ b/cpp/src/tests/MessagingSessionTests.cpp @@ -248,6 +248,7 @@ QPID_AUTO_TEST_CASE(testSenderError) MessagingFixture fix; ScopedSuppressLogging sl; BOOST_CHECK_THROW(fix.session.createSender("NonExistentAddress"), qpid::messaging::InvalidAddress); + fix.session = fix.connection.newSession(); BOOST_CHECK_THROW(fix.session.createSender("NonExistentAddress; {create:receiver, type:queue}"), qpid::messaging::InvalidAddress); } @@ -257,6 +258,7 @@ QPID_AUTO_TEST_CASE(testReceiverError) MessagingFixture fix; ScopedSuppressLogging sl; BOOST_CHECK_THROW(fix.session.createReceiver("NonExistentAddress"), qpid::messaging::InvalidAddress); + fix.session = fix.connection.newSession(); BOOST_CHECK_THROW(fix.session.createReceiver("NonExistentAddress; {create:sender, type:queue}"), qpid::messaging::InvalidAddress); } |