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 2D0829245 for ; Mon, 9 Jan 2012 18:53:18 +0000 (UTC) Received: (qmail 98167 invoked by uid 500); 9 Jan 2012 18:53:18 -0000 Delivered-To: apmail-camel-commits-archive@camel.apache.org Received: (qmail 98141 invoked by uid 500); 9 Jan 2012 18:53:17 -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 98133 invoked by uid 99); 9 Jan 2012 18:53:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Jan 2012 18:53:17 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Jan 2012 18:53:16 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 730132388A40 for ; Mon, 9 Jan 2012 18:52:56 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1229293 - /camel/branches/camel-2.7.x/camel-core/src/test/java/org/apache/camel/component/file/FileConsumeRunLoggingLevelTest.java Date: Mon, 09 Jan 2012 18:52:56 -0000 To: commits@camel.apache.org From: cmueller@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120109185256.730132388A40@eris.apache.org> Author: cmueller Date: Mon Jan 9 18:52:56 2012 New Revision: 1229293 URL: http://svn.apache.org/viewvc?rev=1229293&view=rev Log: improved a unit test Modified: camel/branches/camel-2.7.x/camel-core/src/test/java/org/apache/camel/component/file/FileConsumeRunLoggingLevelTest.java Modified: camel/branches/camel-2.7.x/camel-core/src/test/java/org/apache/camel/component/file/FileConsumeRunLoggingLevelTest.java URL: http://svn.apache.org/viewvc/camel/branches/camel-2.7.x/camel-core/src/test/java/org/apache/camel/component/file/FileConsumeRunLoggingLevelTest.java?rev=1229293&r1=1229292&r2=1229293&view=diff ============================================================================== --- camel/branches/camel-2.7.x/camel-core/src/test/java/org/apache/camel/component/file/FileConsumeRunLoggingLevelTest.java (original) +++ camel/branches/camel-2.7.x/camel-core/src/test/java/org/apache/camel/component/file/FileConsumeRunLoggingLevelTest.java Mon Jan 9 18:52:56 2012 @@ -26,7 +26,7 @@ import org.apache.camel.builder.RouteBui public class FileConsumeRunLoggingLevelTest extends ContextTestSupport { public void testRunLoggingLevel() throws Exception { - getMockEndpoint("mock:result").expectedMessageCount(1); + getMockEndpoint("mock:result").expectedBodiesReceived("Hello World"); template.sendBodyAndHeader("file:target/files", "Hello World", Exchange.FILE_NAME, "hello.txt"); @@ -38,7 +38,7 @@ public class FileConsumeRunLoggingLevelT return new RouteBuilder() { @Override public void configure() throws Exception { - from("file:target/files?runLoggingLevel=INFO") + from("file:target/files?fileName=hello.txt&runLoggingLevel=INFO") .to("mock:result"); } };