diff options
author | Alan Conway <aconway@apache.org> | 2008-09-22 19:08:47 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2008-09-22 19:08:47 +0000 |
commit | d8052aa68614ae482a0ac618e7001d3c16a84920 (patch) | |
tree | ff1602f98750ecc66ad8fadbb6a543a4f599559c /qpid/cpp/src/tests/exception_test.cpp | |
parent | 9f81495d5b60c58b5278d0962511ebadf1110e4b (diff) | |
download | qpid-python-d8052aa68614ae482a0ac618e7001d3c16a84920.tar.gz |
Fixed error handling session-busy condition on broker.
Added accessors to iterate over broker::SemanticState consumers.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@697951 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/exception_test.cpp')
-rw-r--r-- | qpid/cpp/src/tests/exception_test.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/qpid/cpp/src/tests/exception_test.cpp b/qpid/cpp/src/tests/exception_test.cpp index 1cbe35fff4..339881fa9d 100644 --- a/qpid/cpp/src/tests/exception_test.cpp +++ b/qpid/cpp/src/tests/exception_test.cpp @@ -73,6 +73,14 @@ struct Catcher : public Runnable { } }; +QPID_AUTO_TEST_CASE(TestSessionBusy) { + SessionFixture f; + try { + f.connection.newSession(f.session.getId().getName()); + BOOST_FAIL("Expected SessionBusyException for " << f.session.getId().getName()); + } catch (const Exception&) {} // FIXME aconway 2008-09-22: client is not throwing correct exception. +} + QPID_AUTO_TEST_CASE(DisconnectedPop) { ProxySessionFixture fix; ProxyConnection c(fix.broker->getPort()); |