summaryrefslogtreecommitdiff
path: root/cpp/src/tests/ManagementTest.cpp
diff options
context:
space:
mode:
authorKenneth Anthony Giusti <kgiusti@apache.org>2010-07-08 20:29:52 +0000
committerKenneth Anthony Giusti <kgiusti@apache.org>2010-07-08 20:29:52 +0000
commit459f48df9d6b62a0f72be50c8ce082c1317c736e (patch)
tree144cf9f423de1fb798868ed22229ce159738d714 /cpp/src/tests/ManagementTest.cpp
parentdf239e9f6987f45162d7ccd6459f1b73a81b39f9 (diff)
downloadqpid-python-459f48df9d6b62a0f72be50c8ce082c1317c736e.tar.gz
QMF: add api to get agent id, and new object id constructor that uses agent id.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@961919 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests/ManagementTest.cpp')
-rw-r--r--cpp/src/tests/ManagementTest.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/cpp/src/tests/ManagementTest.cpp b/cpp/src/tests/ManagementTest.cpp
index e9b8ac32b9..8944c084c0 100644
--- a/cpp/src/tests/ManagementTest.cpp
+++ b/cpp/src/tests/ManagementTest.cpp
@@ -86,6 +86,13 @@ QPID_AUTO_TEST_CASE(testObjectIdAttach) {
BOOST_CHECK_EQUAL(out2.str(), "10-20-30-MrSmith-0(GabbaGabbaHey)");
}
+QPID_AUTO_TEST_CASE(testObjectIdCreate) {
+ ObjectId oid("some-agent-name", "an-object-name");
+
+ BOOST_CHECK_EQUAL(oid.getAgentName(), "some-agent-name");
+ BOOST_CHECK_EQUAL(oid.getV2Key(), "an-object-name");
+}
+
QPID_AUTO_TEST_CASE(testConsoleObjectId) {
qpid::console::ObjectId oid1, oid2;