You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by on...@apache.org on 2017/07/06 16:47:12 UTC

camel git commit: CAMEL-11516 - fix test with system.property("line.separator")

Repository: camel
Updated Branches:
  refs/heads/master 144020608 -> 59fbba739


CAMEL-11516 - fix test with system.property("line.separator")


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

Branch: refs/heads/master
Commit: 59fbba7394d8907f9b954adb46adca6cbc5e2d17
Parents: 1440206
Author: onders86 <on...@gmail.com>
Authored: Thu Jul 6 07:44:22 2017 +0300
Committer: onders86 <on...@gmail.com>
Committed: Thu Jul 6 19:46:53 2017 +0300

----------------------------------------------------------------------
 .../camel/component/file/remote/FtpConsumerFileSplitTest.java      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/59fbba73/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/FtpConsumerFileSplitTest.java
----------------------------------------------------------------------
diff --git a/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/FtpConsumerFileSplitTest.java b/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/FtpConsumerFileSplitTest.java
index 350c519..5064671 100644
--- a/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/FtpConsumerFileSplitTest.java
+++ b/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/FtpConsumerFileSplitTest.java
@@ -47,7 +47,7 @@ public class FtpConsumerFileSplitTest extends FtpServerTestSupport {
             public void configure() throws Exception {
                 from(getFtpUrl())
                     .to("log:file")
-                    .split(body().tokenize("\n"))
+                    .split(body().tokenize(System.getProperty("line.separator")))
                         .to("log:line")
                         .to("mock:result");
             }