From 9d6db01fc03225403d3e3b00e93b3060ec1c3d1c Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Fri, 1 Dec 2006 13:14:15 +0000 Subject: Fix to test. Throw exception where previously printed warning. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@481235 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/tests/MessageBuilderTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'qpid/cpp/tests/MessageBuilderTest.cpp') diff --git a/qpid/cpp/tests/MessageBuilderTest.cpp b/qpid/cpp/tests/MessageBuilderTest.cpp index d609fb9b75..3f84142461 100644 --- a/qpid/cpp/tests/MessageBuilderTest.cpp +++ b/qpid/cpp/tests/MessageBuilderTest.cpp @@ -62,9 +62,9 @@ class MessageBuilderTest : public CppUnit::TestCase } } - void appendContent(u_int64_t msgId, const string& data) + void appendContent(Message* msg, const string& data) { - if (msgId == 1) { + if (msg) { content->putRawData(data); } else { throw qpid::Exception("Invalid message id!"); -- cgit v1.2.1