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 | dc06c61a5845afc6e186887742a45ec5965118a4 (patch) | |
| tree | 328de246cc104c3f5609dbf33ea2520f4cad0dbc /qpid/cpp/src/tests/MessagingSessionTests.cpp | |
| parent | ee295bce4cccf969da56bfe19ffb2fb9bec3fd06 (diff) | |
| download | qpid-python-dc06c61a5845afc6e186887742a45ec5965118a4.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@882323 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/MessagingSessionTests.cpp')
| -rw-r--r-- | qpid/cpp/src/tests/MessagingSessionTests.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/qpid/cpp/src/tests/MessagingSessionTests.cpp b/qpid/cpp/src/tests/MessagingSessionTests.cpp index 09440cc183..1293ce9429 100644 --- a/qpid/cpp/src/tests/MessagingSessionTests.cpp +++ b/qpid/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); } |
