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 | 0d8f56400ceec589ca53eeb6e956cef19112bc17 (patch) | |
| tree | 8d13dd193b84f1dc14594bb7fd4b0d024d786618 /qpid/cpp/src/tests/MessagingFixture.h | |
| parent | 1d986872fe4f00a0f502fa334f67def44977cb30 (diff) | |
| download | qpid-python-0d8f56400ceec589ca53eeb6e956cef19112bc17.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@964571 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/MessagingFixture.h')
| -rw-r--r-- | qpid/cpp/src/tests/MessagingFixture.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/qpid/cpp/src/tests/MessagingFixture.h b/qpid/cpp/src/tests/MessagingFixture.h index c8ae86dbc3..18cdeb1701 100644 --- a/qpid/cpp/src/tests/MessagingFixture.h +++ b/qpid/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); |
