You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by an...@apache.org on 2016/07/01 11:02:47 UTC
camel git commit: CAMEL-10103: Camel FTP - More unittest on OSGI
Parsers
Repository: camel
Updated Branches:
refs/heads/master f0a7e744e -> ca660ed24
CAMEL-10103: Camel FTP - More unittest on OSGI Parsers
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/ca660ed2
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/ca660ed2
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/ca660ed2
Branch: refs/heads/master
Commit: ca660ed249429b097b734a9e968c89fc4ff27906
Parents: f0a7e74
Author: Arno Noordover <an...@users.noreply.github.com>
Authored: Fri Jul 1 13:02:35 2016 +0200
Committer: Arno Noordover <an...@users.noreply.github.com>
Committed: Fri Jul 1 13:02:35 2016 +0200
----------------------------------------------------------------------
.../camel/component/file/remote/OsgiParserFactoryTest.java | 8 ++++++++
1 file changed, 8 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/ca660ed2/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/OsgiParserFactoryTest.java
----------------------------------------------------------------------
diff --git a/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/OsgiParserFactoryTest.java b/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/OsgiParserFactoryTest.java
index e5702be..10f1719 100644
--- a/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/OsgiParserFactoryTest.java
+++ b/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/OsgiParserFactoryTest.java
@@ -93,4 +93,12 @@ public class OsgiParserFactoryTest {
assertThat(result, instanceOf(CompositeFileEntryParser.class));
}
+ @Test
+ public void createFileEntryParserWin32()
+ throws Exception {
+ when(ftpClientConfig.getServerSystemKey()).thenReturn("WIN32");
+ FTPFileEntryParser result = OSGI_PARSER_FACTORY.createFileEntryParser(ftpClientConfig);
+ assertThat(result, instanceOf(CompositeFileEntryParser.class));
+ }
+
}
\ No newline at end of file