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/HeaderTest.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/HeaderTest.cpp')
-rw-r--r-- | cpp/src/tests/HeaderTest.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/src/tests/HeaderTest.cpp b/cpp/src/tests/HeaderTest.cpp index a883ccf300..1b21151b65 100644 --- a/cpp/src/tests/HeaderTest.cpp +++ b/cpp/src/tests/HeaderTest.cpp @@ -20,6 +20,7 @@ */ #include <iostream> #include "qpid/framing/amqp_framing.h" +#include "qpid/framing/FieldValue.h" #include "qpid_test_plugin.h" using namespace qpid::framing; @@ -47,8 +48,7 @@ public: body2.decode(rbuffer, body.size()); BasicHeaderProperties* props = body2.get<BasicHeaderProperties>(true); - CPPUNIT_ASSERT_EQUAL(std::string("BCDE"), - props->getHeaders().getString("A")); + CPPUNIT_ASSERT(StringValue("BCDE") == *props->getHeaders().get("A")); } void testAllSpecificProperties(){ @@ -95,7 +95,7 @@ public: properties = in.castBody<AMQHeaderBody>()->get<BasicHeaderProperties>(true); CPPUNIT_ASSERT_EQUAL(contentType, properties->getContentType()); - CPPUNIT_ASSERT_EQUAL(std::string("BCDE"), properties->getHeaders().getString("A")); + CPPUNIT_ASSERT(StringValue("BCDE") == *properties->getHeaders().get("A")); CPPUNIT_ASSERT_EQUAL(deliveryMode, properties->getDeliveryMode()); CPPUNIT_ASSERT_EQUAL(priority, properties->getPriority()); CPPUNIT_ASSERT_EQUAL(correlationId, properties->getCorrelationId()); |