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 | 2e7a0f670684ccd696316666c6a1d61849f67e80 (patch) | |
| tree | 0f950e109fee382ef06a1997d2edca1a3d39cdd0 /qpid/cpp/src/tests/MessageTest.cpp | |
| parent | 91ac5922f2d5aa5ca0ad01b9e23271e90c1c8bcc (diff) | |
| download | qpid-python-2e7a0f670684ccd696316666c6a1d61849f67e80.tar.gz | |
Implementation of 0-10 field tables
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@585097 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/MessageTest.cpp')
| -rw-r--r-- | qpid/cpp/src/tests/MessageTest.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/qpid/cpp/src/tests/MessageTest.cpp b/qpid/cpp/src/tests/MessageTest.cpp index 775d251349..f56d5e829e 100644 --- a/qpid/cpp/src/tests/MessageTest.cpp +++ b/qpid/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()); } |
