summaryrefslogtreecommitdiff
path: root/cpp/tests/ExchangeTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/tests/ExchangeTest.cpp')
-rw-r--r--cpp/tests/ExchangeTest.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/cpp/tests/ExchangeTest.cpp b/cpp/tests/ExchangeTest.cpp
index a31c369fe1..cccec92024 100644
--- a/cpp/tests/ExchangeTest.cpp
+++ b/cpp/tests/ExchangeTest.cpp
@@ -26,8 +26,10 @@
#include <TopicExchange.h>
#include <qpid_test_plugin.h>
#include <iostream>
+#include "BasicGetBody.h"
using namespace qpid::broker;
+using namespace qpid::framing;
using namespace qpid::sys;
class ExchangeTest : public CppUnit::TestCase
@@ -54,7 +56,11 @@ class ExchangeTest : public CppUnit::TestCase
queue.reset();
queue2.reset();
- Message::shared_ptr msgPtr(new BasicMessage(0, "e", "A", true, true));
+ Message::shared_ptr msgPtr(
+ new BasicMessage(
+ 0, "e", "A", true, true,
+ AMQMethodBody::shared_ptr(
+ new BasicGetBody(ProtocolVersion()))));
DeliverableMessage msg(msgPtr);
topic.route(msg, "abc", 0);
direct.route(msg, "abc", 0);