camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ond...@apache.org
Subject camel git commit: CAMEL-11516 - fix test with system.property("line.separator")
Date Thu, 06 Jul 2017 16:47:12 GMT
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 <ondersezgin@gmail.com>
Authored: Thu Jul 6 07:44:22 2017 +0300
Committer: onders86 <ondersezgin@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");
             }


Mime
View raw message