diff options
author | Alan Conway <aconway@apache.org> | 2007-01-30 20:07:41 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2007-01-30 20:07:41 +0000 |
commit | f9f848394de0662248cf62d4ec5e4818949403b2 (patch) | |
tree | 4f13105e2223b704d7850300116dcc56116acae2 /cpp/tests/MessageTest.cpp | |
parent | 98ccae7574a18f8d0a1f9e28e86ccfde4541c81f (diff) | |
download | qpid-python-f9f848394de0662248cf62d4ec5e4818949403b2.tar.gz |
Andrew Stitcher <astitcher@redhat.com>
r723@fuschia: andrew | 2007-01-12 00:35:16 +0000
Branch for my work on Qpid.0-9
r724@fuschia: andrew | 2007-01-12 00:59:28 +0000
Added in empty implementation of handler class for protocol Message class
r768@fuschia: andrew | 2007-01-17 01:25:16 +0000
* Added Test for new MessageHandlerImpl (but no actual tests yet)
* Filled in lots of the blanks in the MessageHandlerImpl with code
stolen from the BasicHandlerImpl
r800@fuschia: andrew | 2007-01-17 17:34:13 +0000
Updated to latest upstream changes
r840@fuschia: andrew | 2007-01-19 00:31:59 +0000
Fixed merge errors
r841@fuschia: andrew | 2007-01-19 00:47:29 +0000
Another merge problem fixed
r878@fuschia: andrew | 2007-01-24 11:27:48 +0000
Started work on the Message class handler implementation
r976@fuschia: andrew | 2007-01-30 17:05:05 +0000
Working again after broker Message refactor
r980@fuschia: andrew | 2007-01-30 18:39:18 +0000
Fix for extra parameter to transfer
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9@501534 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/tests/MessageTest.cpp')
-rw-r--r-- | cpp/tests/MessageTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/tests/MessageTest.cpp b/cpp/tests/MessageTest.cpp index 8bb570e598..62249e1f5f 100644 --- a/cpp/tests/MessageTest.cpp +++ b/cpp/tests/MessageTest.cpp @@ -52,7 +52,7 @@ class MessageTest : public CppUnit::TestCase string data1("abcdefg"); string data2("hijklmn"); - Message::shared_ptr msg = Message::shared_ptr(new Message(0, exchange, routingKey, false, false)); + Message::shared_ptr msg = Message::shared_ptr(new BasicMessage(0, exchange, routingKey, false, false)); AMQHeaderBody::shared_ptr header(new AMQHeaderBody(BASIC)); header->setContentSize(14); AMQContentBody::shared_ptr part1(new AMQContentBody(data1)); @@ -69,7 +69,7 @@ class MessageTest : public CppUnit::TestCase msg->encode(buffer); buffer.flip(); - msg = Message::shared_ptr(new Message(buffer)); + msg = Message::shared_ptr(new BasicMessage(buffer)); CPPUNIT_ASSERT_EQUAL(exchange, msg->getExchange()); CPPUNIT_ASSERT_EQUAL(routingKey, msg->getRoutingKey()); CPPUNIT_ASSERT_EQUAL(messageId, msg->getHeaderProperties()->getMessageId()); |