diff options
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); |