Repository: camel Updated Branches: refs/heads/master 15174ce7b -> eaa06ef28
Skip ftp tests which cannot 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/eaa06ef2 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/eaa06ef2 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/eaa06ef2 Branch: refs/heads/master Commit: eaa06ef28836390abafdd22e63e2b628d3f7d7a5 Parents: a8fd547 Author: Claus Ibsen <[email protected]> Authored: Wed Mar 4 11:09:40 2015 +0100 Committer: Claus Ibsen <[email protected]> Committed: Wed Mar 4 11:09:49 2015 +0100 ---------------------------------------------------------------------- .../file/remote/sftp/SftpSimpleConsumeAbsoluteTest.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/eaa06ef2/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/sftp/SftpSimpleConsumeAbsoluteTest.java ---------------------------------------------------------------------- diff --git a/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/sftp/SftpSimpleConsumeAbsoluteTest.java b/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/sftp/SftpSimpleConsumeAbsoluteTest.java index c83829a..44bb898 100644 --- a/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/sftp/SftpSimpleConsumeAbsoluteTest.java +++ b/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/sftp/SftpSimpleConsumeAbsoluteTest.java @@ -26,13 +26,14 @@ import org.junit.Test; */ public class SftpSimpleConsumeAbsoluteTest extends SftpServerTestSupport { + @Override + protected boolean canTest() { + // cannot test on windows + return super.canTest() && !isPlatform("windows"); + } + protected static String createAbsolutePath() { String answer = System.getProperty("user.dir") + "/" + FTP_ROOT_DIR + "/tmp/mytemp"; - - if (isPlatform("windows")) { - answer = answer.replace('\\', '/'); - } - return answer; }
