diff options
author | Ted Ross <tross@apache.org> | 2008-10-10 22:18:42 +0000 |
---|---|---|
committer | Ted Ross <tross@apache.org> | 2008-10-10 22:18:42 +0000 |
commit | b590b12a2f48f93d92a71d4fac2f2711189ce4ef (patch) | |
tree | eadbd3b1d2bfb6652d2f658490cedb6d0d92b486 /cpp/src/tests/ManagementTest.cpp | |
parent | 91f45702afcf3b675fe80dbcf3a452daa61469e4 (diff) | |
download | qpid-python-b590b12a2f48f93d92a71d4fac2f2711189ce4ef.tar.gz |
QPID-1350 - Object reference following in the QMF console API
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@703588 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests/ManagementTest.cpp')
-rw-r--r-- | cpp/src/tests/ManagementTest.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/cpp/src/tests/ManagementTest.cpp b/cpp/src/tests/ManagementTest.cpp index 5ec3453b7c..a3d29ec22c 100644 --- a/cpp/src/tests/ManagementTest.cpp +++ b/cpp/src/tests/ManagementTest.cpp @@ -28,7 +28,7 @@ QPID_AUTO_TEST_SUITE(ManagementTestSuite) using namespace qpid::framing; using namespace qpid::management; -QPID_AUTO_TEST_CASE(testObjectIdSerialize) { +QPID_AUTO_TEST_CASE(testObjectIdSerializeStream) { std::string text("0-10-4-2500-80000000000"); std::stringstream input(text); @@ -40,6 +40,17 @@ QPID_AUTO_TEST_CASE(testObjectIdSerialize) { BOOST_CHECK_EQUAL(text, output.str()); } +QPID_AUTO_TEST_CASE(testObjectIdSerializeString) { + std::string text("0-10-4-2500-80000000000"); + + ObjectId oid(text); + + std::stringstream output; + output << oid; + + BOOST_CHECK_EQUAL(text, output.str()); +} + QPID_AUTO_TEST_CASE(testObjectIdEncode) { char buffer[100]; Buffer msgBuf(buffer, 100); |