use of org.apache.commons.net.ftp.FTPFileEntryParser in project camel by apache.
the class OsgiParserFactoryTest method createFileEntryParserWin32.
@Test
public void createFileEntryParserWin32() throws Exception {
when(ftpClientConfig.getServerSystemKey()).thenReturn("bla WIN32 bla");
FTPFileEntryParser result = OSGI_PARSER_FACTORY.createFileEntryParser(ftpClientConfig);
assertThat(result, instanceOf(CompositeFileEntryParser.class));
}
use of org.apache.commons.net.ftp.FTPFileEntryParser in project camel by apache.
the class OsgiParserFactoryTest method createFileEntryParserTypeL8.
@Test
public void createFileEntryParserTypeL8() throws Exception {
when(ftpClientConfig.getServerSystemKey()).thenReturn("bla type: l8 bla");
FTPFileEntryParser result = OSGI_PARSER_FACTORY.createFileEntryParser(ftpClientConfig);
assertThat(result, instanceOf(UnixFTPEntryParser.class));
}
use of org.apache.commons.net.ftp.FTPFileEntryParser in project camel by apache.
the class OsgiParserFactoryTest method createFileEntryParserMacOsPeter.
@Test
public void createFileEntryParserMacOsPeter() throws Exception {
when(ftpClientConfig.getServerSystemKey()).thenReturn("bla MaCoS PeTER bla");
FTPFileEntryParser result = OSGI_PARSER_FACTORY.createFileEntryParser(ftpClientConfig);
assertThat(result, instanceOf(MacOsPeterFTPEntryParser.class));
}
Aggregations