diff options
author | Gordon Sim <gsim@apache.org> | 2010-04-08 09:49:04 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2010-04-08 09:49:04 +0000 |
commit | a62b3c4f125306ceec23175b9c7aef2786ee786c (patch) | |
tree | f7aeeba9df178aabc896a118464fc2044e53aa6a /cpp/src/tests/MessagingSessionTests.cpp | |
parent | be01dfd2d74634abf3387e8eb363d2c90b31cf0d (diff) | |
download | qpid-python-a62b3c4f125306ceec23175b9c7aef2786ee786c.tar.gz |
QPID-664: changed open() to connect(), moved url parameter to constructor, added detach() and isConnected()
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@931852 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests/MessagingSessionTests.cpp')
-rw-r--r-- | cpp/src/tests/MessagingSessionTests.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/tests/MessagingSessionTests.cpp b/cpp/src/tests/MessagingSessionTests.cpp index 6341ef3f28..bdd5422690 100644 --- a/cpp/src/tests/MessagingSessionTests.cpp +++ b/cpp/src/tests/MessagingSessionTests.cpp @@ -115,8 +115,8 @@ struct MessagingFixture : public BrokerFixture static Connection open(uint16_t port) { - Connection connection; - connection.open((boost::format("amqp:tcp:localhost:%1%") % (port)).str()); + Connection connection((boost::format("amqp:tcp:localhost:%1%") % (port)).str()); + connection.connect(); return connection; } |