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 | 6fcb7dcbd22956828de8aa52a58e66b9df5e7529 (patch) | |
| tree | 9bdd91484def60b6872fa27c3122cc8477427e04 /cpp/src/tests/exception_test.cpp | |
| parent | 7aae076e7c8289ea60a69fd54ea93deb4b7fcdfa (diff) | |
| download | qpid-python-6fcb7dcbd22956828de8aa52a58e66b9df5e7529.tar.gz | |
Add option to require that only encrypted connections be accepted.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@706321 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests/exception_test.cpp')
| -rw-r--r-- | cpp/src/tests/exception_test.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cpp/src/tests/exception_test.cpp b/cpp/src/tests/exception_test.cpp index 41061173a7..a73ea9e36b 100644 --- a/cpp/src/tests/exception_test.cpp +++ b/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"); |
