You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2014/02/24 17:04:47 UTC

[05/18] git commit: Fixed test on Windows

Fixed test on Windows


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/493b5dc1
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/493b5dc1
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/493b5dc1

Branch: refs/heads/master
Commit: 493b5dc13911b2448b09f1319df46101dea9231d
Parents: 570539d
Author: Claus Ibsen <da...@apache.org>
Authored: Mon Feb 24 15:39:46 2014 +0100
Committer: Claus Ibsen <da...@apache.org>
Committed: Mon Feb 24 17:05:28 2014 +0100

----------------------------------------------------------------------
 .../file/FilerConsumerShouldSkipDoneFilePrefixTest.java          | 4 +++-
 .../component/file/FilerConsumerShouldSkipDoneFileTest.java      | 4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/493b5dc1/camel-core/src/test/java/org/apache/camel/component/file/FilerConsumerShouldSkipDoneFilePrefixTest.java
----------------------------------------------------------------------
diff --git a/camel-core/src/test/java/org/apache/camel/component/file/FilerConsumerShouldSkipDoneFilePrefixTest.java b/camel-core/src/test/java/org/apache/camel/component/file/FilerConsumerShouldSkipDoneFilePrefixTest.java
index 24907ca..d299e57 100644
--- a/camel-core/src/test/java/org/apache/camel/component/file/FilerConsumerShouldSkipDoneFilePrefixTest.java
+++ b/camel-core/src/test/java/org/apache/camel/component/file/FilerConsumerShouldSkipDoneFilePrefixTest.java
@@ -67,7 +67,9 @@ public class FilerConsumerShouldSkipDoneFilePrefixTest extends ContextTestSuppor
         return new RouteBuilder() {
             @Override
             public void configure() throws Exception {
-                from("file:target/done?doneFileName=done-${file:name}&initialDelay=0&delay=10").to("mock:result");
+                from("file:target/done?doneFileName=done-${file:name}&initialDelay=0&delay=10")
+                    .convertBodyTo(String.class)
+                    .to("mock:result");
             }
         };
     }

http://git-wip-us.apache.org/repos/asf/camel/blob/493b5dc1/camel-core/src/test/java/org/apache/camel/component/file/FilerConsumerShouldSkipDoneFileTest.java
----------------------------------------------------------------------
diff --git a/camel-core/src/test/java/org/apache/camel/component/file/FilerConsumerShouldSkipDoneFileTest.java b/camel-core/src/test/java/org/apache/camel/component/file/FilerConsumerShouldSkipDoneFileTest.java
index 781493b..da3b953 100644
--- a/camel-core/src/test/java/org/apache/camel/component/file/FilerConsumerShouldSkipDoneFileTest.java
+++ b/camel-core/src/test/java/org/apache/camel/component/file/FilerConsumerShouldSkipDoneFileTest.java
@@ -67,7 +67,9 @@ public class FilerConsumerShouldSkipDoneFileTest extends ContextTestSupport {
         return new RouteBuilder() {
             @Override
             public void configure() throws Exception {
-                from("file:target/done?doneFileName=done&initialDelay=0&delay=10").to("mock:result");
+                from("file:target/done?doneFileName=done&initialDelay=0&delay=10")
+                    .convertBodyTo(String.class)
+                    .to("mock:result");
             }
         };
     }