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 349B817407 for ; Sun, 22 Feb 2015 15:28:12 +0000 (UTC) Received: (qmail 89761 invoked by uid 500); 22 Feb 2015 15:28:12 -0000 Delivered-To: apmail-camel-commits-archive@camel.apache.org Received: (qmail 89704 invoked by uid 500); 22 Feb 2015 15:28:12 -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 89622 invoked by uid 99); 22 Feb 2015 15:28:11 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 22 Feb 2015 15:28:11 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 7B2F6DF9C4; Sun, 22 Feb 2015 15:28:11 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: davsclaus@apache.org To: commits@camel.apache.org Date: Sun, 22 Feb 2015 15:28:13 -0000 Message-Id: <79540db4ce554a65bd4ebbe48cefcb13@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [3/3] camel git commit: Fixed CS Fixed CS Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/4125e9d8 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/4125e9d8 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/4125e9d8 Branch: refs/heads/camel-2.14.x Commit: 4125e9d86984de733b757b7f1c7915df0caa5999 Parents: abee35c Author: Claus Ibsen Authored: Sun Feb 22 16:19:59 2015 +0100 Committer: Claus Ibsen Committed: Sun Feb 22 16:28:59 2015 +0100 ---------------------------------------------------------------------- .../rabbitmq/RabbitMQRequeueIntTest.java | 21 +++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/4125e9d8/components/camel-rabbitmq/src/test/java/org/apache/camel/component/rabbitmq/RabbitMQRequeueIntTest.java ---------------------------------------------------------------------- diff --git a/components/camel-rabbitmq/src/test/java/org/apache/camel/component/rabbitmq/RabbitMQRequeueIntTest.java b/components/camel-rabbitmq/src/test/java/org/apache/camel/component/rabbitmq/RabbitMQRequeueIntTest.java index d860a41..97798fc 100644 --- a/components/camel-rabbitmq/src/test/java/org/apache/camel/component/rabbitmq/RabbitMQRequeueIntTest.java +++ b/components/camel-rabbitmq/src/test/java/org/apache/camel/component/rabbitmq/RabbitMQRequeueIntTest.java @@ -1,3 +1,19 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.apache.camel.component.rabbitmq; import org.apache.camel.Endpoint; @@ -11,8 +27,6 @@ import org.junit.Test; /** * Integration test to confirm REQUEUE header causes message to be re-queued instead of sent to DLQ. - * - * Created by Andrew Austin on 2/21/15. */ public class RabbitMQRequeueIntTest extends CamelTestSupport { public static final String ROUTING_KEY = "rk4"; @@ -41,6 +55,7 @@ public class RabbitMQRequeueIntTest extends CamelTestSupport { .log("Sending message") .inOnly(rabbitMQEndpoint) .to(producingMockEndpoint); + from(rabbitMQEndpoint) .id("consumingRoute") .log("Receiving message") @@ -67,7 +82,7 @@ public class RabbitMQRequeueIntTest extends CamelTestSupport { producingMockEndpoint.expectedMessageCount(1); consumingMockEndpoint.expectedMessageCount(1); - directProducer.sendBodyAndHeader("Hello, World!", RabbitMQConstants.REQUEUE, 4l); + directProducer.sendBodyAndHeader("Hello, World!", RabbitMQConstants.REQUEUE, 4L); Thread.sleep(100); producingMockEndpoint.assertIsSatisfied();