You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ay...@apache.org on 2013/07/23 11:19:18 UTC
git commit: fix CAMEL-6499's test for windows
Updated Branches:
refs/heads/master b2a4b54bc -> 5973e3fd3
fix CAMEL-6499's test for windows
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/5973e3fd
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/5973e3fd
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/5973e3fd
Branch: refs/heads/master
Commit: 5973e3fd3d2e5f9d56f98fcccdcdecf0b9e44b54
Parents: b2a4b54
Author: Akitoshi Yoshida <ay...@apache.org>
Authored: Tue Jul 23 11:16:42 2013 +0200
Committer: Akitoshi Yoshida <ay...@apache.org>
Committed: Tue Jul 23 11:18:54 2013 +0200
----------------------------------------------------------------------
.../org/apache/camel/component/file/GenericFileMessageTest.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/5973e3fd/camel-core/src/test/java/org/apache/camel/component/file/GenericFileMessageTest.java
----------------------------------------------------------------------
diff --git a/camel-core/src/test/java/org/apache/camel/component/file/GenericFileMessageTest.java b/camel-core/src/test/java/org/apache/camel/component/file/GenericFileMessageTest.java
index 86157bc..3b79bf7 100644
--- a/camel-core/src/test/java/org/apache/camel/component/file/GenericFileMessageTest.java
+++ b/camel-core/src/test/java/org/apache/camel/component/file/GenericFileMessageTest.java
@@ -19,6 +19,7 @@ package org.apache.camel.component.file;
import java.io.File;
import org.apache.camel.ContextTestSupport;
+import org.apache.camel.util.FileUtil;
public class GenericFileMessageTest extends ContextTestSupport {
@@ -30,6 +31,6 @@ public class GenericFileMessageTest extends ContextTestSupport {
file.setFileName("target/test.txt");
file.setFile(new File("target/test.txt"));
message = new GenericFileMessage<File>(file);
- assertEquals("target/test.txt", message.toString());
+ assertEquals(FileUtil.isWindows() ? "target\\test.txt" : "target/test.txt", message.toString());
}
}