summaryrefslogtreecommitdiff
path: root/cpp/test/unit/qpid/framing/BodyHandlerTest.cpp
diff options
context:
space:
mode:
authorKim van der Riet <kpvdr@apache.org>2006-11-22 16:57:35 +0000
committerKim van der Riet <kpvdr@apache.org>2006-11-22 16:57:35 +0000
commitd46ac2955c4871c9f22067f47490095e2c5f1806 (patch)
tree7e76ef7e4ca47e4cc57c83f7950bf97c3eceb210 /cpp/test/unit/qpid/framing/BodyHandlerTest.cpp
parent018723f3889e9a1f63585dddba8eecff1d168501 (diff)
downloadqpid-python-d46ac2955c4871c9f22067f47490095e2c5f1806.tar.gz
Merged AMQP version-sensitive generated files with C++ trunk. Phase 1 of merge complete - all locations where version info is required in the framing, broker and client code, the version has been hard-coded to mahor=8, minor=0. Next step: make broker and client version-aware.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@478237 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/test/unit/qpid/framing/BodyHandlerTest.cpp')
-rw-r--r--cpp/test/unit/qpid/framing/BodyHandlerTest.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/cpp/test/unit/qpid/framing/BodyHandlerTest.cpp b/cpp/test/unit/qpid/framing/BodyHandlerTest.cpp
index f73e80b36c..2758492050 100644
--- a/cpp/test/unit/qpid/framing/BodyHandlerTest.cpp
+++ b/cpp/test/unit/qpid/framing/BodyHandlerTest.cpp
@@ -63,12 +63,15 @@ private:
CPPUNIT_ASSERT_EQUAL(heartbeat, body.get());
}
};
+ ProtocolVersion v;
public:
+
+ BodyHandlerTest() : v(8, 0) {}
void testMethod()
{
- AMQMethodBody* method = new QueueDeclareBody();
+ AMQMethodBody* method = new QueueDeclareBody(v);
AMQFrame frame(0, method);
TestBodyHandler handler(method);
handler.handleBody(frame.getBody());