summaryrefslogtreecommitdiff
path: root/cpp/src/tests/exception_test.cpp
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2008-09-22 19:08:47 +0000
committerAlan Conway <aconway@apache.org>2008-09-22 19:08:47 +0000
commit5028ba1a330f86f4f53fdeaa89d3564435086b29 (patch)
tree6ea93770958c647bc7c5abc200707b80905a7819 /cpp/src/tests/exception_test.cpp
parentf31ce3a04e59da295f397379025809c16ee1258d (diff)
downloadqpid-python-5028ba1a330f86f4f53fdeaa89d3564435086b29.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/qpid@697951 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests/exception_test.cpp')
-rw-r--r--cpp/src/tests/exception_test.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/cpp/src/tests/exception_test.cpp b/cpp/src/tests/exception_test.cpp
index 1cbe35fff4..339881fa9d 100644
--- a/cpp/src/tests/exception_test.cpp
+++ b/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());