summaryrefslogtreecommitdiff
path: root/qpid/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
commitf67dc9fc3989a350af068ff5d80a8d325ef78f2a (patch)
tree2b6d5a0b381022d59b1d18673645ec48aa636657 /qpid/cpp/src/tests/ManagementTest.cpp
parent0a7454a57846f148fdc446bc065e584faba025f1 (diff)
downloadqpid-python-f67dc9fc3989a350af068ff5d80a8d325ef78f2a.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@961919 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/ManagementTest.cpp')
-rw-r--r--qpid/cpp/src/tests/ManagementTest.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/qpid/cpp/src/tests/ManagementTest.cpp b/qpid/cpp/src/tests/ManagementTest.cpp
index e9b8ac32b9..8944c084c0 100644
--- a/qpid/cpp/src/tests/ManagementTest.cpp
+++ b/qpid/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;