From 5028ba1a330f86f4f53fdeaa89d3564435086b29 Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Mon, 22 Sep 2008 19:08:47 +0000 Subject: 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 --- cpp/src/tests/exception_test.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'cpp/src/tests/exception_test.cpp') 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()); -- cgit v1.2.1