Return-Path: X-Original-To: apmail-camel-commits-archive@www.apache.org Delivered-To: apmail-camel-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EF2D9108A1 for ; Thu, 8 Aug 2013 07:32:19 +0000 (UTC) Received: (qmail 64198 invoked by uid 500); 8 Aug 2013 07:32:19 -0000 Delivered-To: apmail-camel-commits-archive@camel.apache.org Received: (qmail 64119 invoked by uid 500); 8 Aug 2013 07:32:15 -0000 Mailing-List: contact commits-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list commits@camel.apache.org Received: (qmail 64112 invoked by uid 99); 8 Aug 2013 07:32:14 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Aug 2013 07:32:14 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 586A683589D; Thu, 8 Aug 2013 07:32:14 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: ningjiang@apache.org To: commits@camel.apache.org Message-Id: <839b7f1e9be44e2ba8c80d9df1fed2ad@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: git commit: CAMEL-6617 fixed the build error of RabbitMQEndpointTest Date: Thu, 8 Aug 2013 07:32:14 +0000 (UTC) Updated Branches: refs/heads/master 7535b96c6 -> d147e5f13 CAMEL-6617 fixed the build error of RabbitMQEndpointTest Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/d147e5f1 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/d147e5f1 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/d147e5f1 Branch: refs/heads/master Commit: d147e5f1301b1944403854ef4f73d39571b89d41 Parents: 7535b96 Author: Willem Jiang Authored: Thu Aug 8 15:31:29 2013 +0800 Committer: Willem Jiang Committed: Thu Aug 8 15:31:29 2013 +0800 ---------------------------------------------------------------------- .../apache/camel/component/rabbitmq/RabbitMQEndpointTest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/d147e5f1/components/camel-rabbitmq/src/test/java/org/apache/camel/component/rabbitmq/RabbitMQEndpointTest.java ---------------------------------------------------------------------- diff --git a/components/camel-rabbitmq/src/test/java/org/apache/camel/component/rabbitmq/RabbitMQEndpointTest.java b/components/camel-rabbitmq/src/test/java/org/apache/camel/component/rabbitmq/RabbitMQEndpointTest.java index f66ab85..df29279 100644 --- a/components/camel-rabbitmq/src/test/java/org/apache/camel/component/rabbitmq/RabbitMQEndpointTest.java +++ b/components/camel-rabbitmq/src/test/java/org/apache/camel/component/rabbitmq/RabbitMQEndpointTest.java @@ -41,10 +41,12 @@ public class RabbitMQEndpointTest extends CamelTestSupport { Mockito.when(envelope.getExchange()).thenReturn(exchangeName); Mockito.when(envelope.getDeliveryTag()).thenReturn(tag); - Exchange exchange = endpoint.createRabbitExchange(envelope); + byte[] body = new byte[20]; + Exchange exchange = endpoint.createRabbitExchange(envelope, body); assertEquals(exchangeName, exchange.getIn().getHeader(RabbitMQConstants.EXCHANGE_NAME)); assertEquals(routingKey, exchange.getIn().getHeader(RabbitMQConstants.ROUTING_KEY)); assertEquals(tag, exchange.getIn().getHeader(RabbitMQConstants.DELIVERY_TAG)); + assertEquals(body, exchange.getIn().getBody()); } @Test