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/ebb8c879 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/ebb8c879 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/ebb8c879 Branch: refs/heads/camel-2.12.x Commit: ebb8c879ec326184c6b1446c85f1bc1bbec50c0f Parents: 28b51d1 Author: Claus Ibsen <davscl...@apache.org> Authored: Mon Feb 24 15:39:46 2014 +0100 Committer: Claus Ibsen <davscl...@apache.org> Committed: Mon Feb 24 17:05:41 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/ebb8c879/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/ebb8c879/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"); } }; }