diff options
author | Andrew Stitcher <astitcher@apache.org> | 2007-10-16 10:21:20 +0000 |
---|---|---|
committer | Andrew Stitcher <astitcher@apache.org> | 2007-10-16 10:21:20 +0000 |
commit | 5113fdd829e956b6836c102c13b83fb8105a7453 (patch) | |
tree | 600ada669c06d834c4509ea6c277deeaefc9effa /cpp/src/tests/MessageTest.cpp | |
parent | 0ae648d78f3970eb7fc96f000a5ba4f6444e4b6e (diff) | |
download | qpid-python-5113fdd829e956b6836c102c13b83fb8105a7453.tar.gz |
Implementation of 0-10 field tables
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@585097 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests/MessageTest.cpp')
-rw-r--r-- | cpp/src/tests/MessageTest.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/cpp/src/tests/MessageTest.cpp b/cpp/src/tests/MessageTest.cpp index 775d251349..f56d5e829e 100644 --- a/cpp/src/tests/MessageTest.cpp +++ b/cpp/src/tests/MessageTest.cpp @@ -19,12 +19,15 @@ * */ #include "qpid/broker/Message.h" -#include "qpid_test_plugin.h" -#include <iostream> #include "qpid/framing/AMQP_HighestVersion.h" #include "qpid/framing/AMQFrame.h" +#include "qpid/framing/FieldValue.h" #include "MockChannel.h" +#include "qpid_test_plugin.h" + +#include <iostream> + using namespace boost; using namespace qpid::broker; using namespace qpid::framing; @@ -81,7 +84,7 @@ class MessageTest : public CppUnit::TestCase CPPUNIT_ASSERT_EQUAL((uint64_t) data1.size() + data2.size(), msg->contentSize()); CPPUNIT_ASSERT_EQUAL((uint64_t) data1.size() + data2.size(), msg->getProperties<MessageProperties>()->getContentLength()); CPPUNIT_ASSERT_EQUAL(messageId, msg->getProperties<MessageProperties>()->getMessageId()); - CPPUNIT_ASSERT_EQUAL(string("xyz"), msg->getProperties<MessageProperties>()->getApplicationHeaders().getString("abc")); + CPPUNIT_ASSERT(StringValue("xyz") == *msg->getProperties<MessageProperties>()->getApplicationHeaders().get("abc")); CPPUNIT_ASSERT_EQUAL((uint8_t) PERSISTENT, msg->getProperties<DeliveryProperties>()->getDeliveryMode()); CPPUNIT_ASSERT(msg->isPersistent()); } |