diff options
| author | Gordon Sim <gsim@apache.org> | 2010-07-15 20:33:16 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2010-07-15 20:33:16 +0000 |
| commit | 2a2d92b5e6932a73c8e1cf78d0641f1d5e8352f7 (patch) | |
| tree | cef5aae348b39f2738d0ced380538f856a75df4d /cpp/src/tests/MessagingFixture.h | |
| parent | 4912c5774415e5d1712dadffe5a859e07ecda8a5 (diff) | |
| download | qpid-python-2a2d92b5e6932a73c8e1cf78d0641f1d5e8352f7.tar.gz | |
QPID-2734: Tighter control over sasl related test; now passes when cyrus-sasl not in use.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@964571 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests/MessagingFixture.h')
| -rw-r--r-- | cpp/src/tests/MessagingFixture.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cpp/src/tests/MessagingFixture.h b/cpp/src/tests/MessagingFixture.h index c8ae86dbc3..18cdeb1701 100644 --- a/cpp/src/tests/MessagingFixture.h +++ b/cpp/src/tests/MessagingFixture.h @@ -113,6 +113,14 @@ struct MessagingFixture : public BrokerFixture return connection; } + /** Open a connection to the broker. */ + qpid::messaging::Connection newConnection() + { + qpid::messaging::Connection connection( + (boost::format("amqp:tcp:localhost:%1%") % (broker->getPort(qpid::broker::Broker::TCP_TRANSPORT))).str()); + return connection; + } + void ping(const qpid::messaging::Address& address) { messaging::Receiver r = session.createReceiver(address); |
