diff options
author | Gordon Sim <gsim@apache.org> | 2008-10-20 15:29:46 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2008-10-20 15:29:46 +0000 |
commit | db47e4f5012d64126e6f3096bba1daa87b73c9e6 (patch) | |
tree | e27352a9abd88222a2a0c20fda8e4be2a05d0968 /qpid/cpp/src/tests/exception_test.cpp | |
parent | 875ff415fe9760f1c8c5454ae6657da81af059fe (diff) | |
download | qpid-python-db47e4f5012d64126e6f3096bba1daa87b73c9e6.tar.gz |
Add option to require that only encrypted connections be accepted.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@706321 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 | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/qpid/cpp/src/tests/exception_test.cpp b/qpid/cpp/src/tests/exception_test.cpp index 41061173a7..a73ea9e36b 100644 --- a/qpid/cpp/src/tests/exception_test.cpp +++ b/qpid/cpp/src/tests/exception_test.cpp @@ -39,6 +39,7 @@ using namespace sys; using namespace client; using namespace framing; +using qpid::broker::Broker; using boost::bind; using boost::function; @@ -88,7 +89,7 @@ QPID_AUTO_TEST_CASE(TestSessionBusy) { QPID_AUTO_TEST_CASE(DisconnectedPop) { ProxySessionFixture fix; - ProxyConnection c(fix.broker->getPort()); + ProxyConnection c(fix.broker->getPort(Broker::TCP_TRANSPORT)); fix.session.queueDeclare(arg::queue="q"); fix.subs.subscribe(fix.lq, "q"); Catcher<ConnectionException> pop(bind(&LocalQueue::pop, boost::ref(fix.lq))); @@ -101,7 +102,7 @@ QPID_AUTO_TEST_CASE(DisconnectedListen) { struct NullListener : public MessageListener { void received(Message&) { BOOST_FAIL("Unexpected message"); } } l; - ProxyConnection c(fix.broker->getPort()); + ProxyConnection c(fix.broker->getPort(Broker::TCP_TRANSPORT)); fix.session.queueDeclare(arg::queue="q"); fix.subs.subscribe(l, "q"); |