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");
             }
         };


Reply via email to