}
}
private static ConfigTree createConfigTree()
{
ConfigTree configTree = new ConfigTree( "junitFtpImplTest" );
try
{
configTree.setAttribute( FileEpr.URL_TAG, ftpServer.getURL().toString() ) ;
}
catch ( MalformedURLException e )
{
log.error( e );
fail ( e.getMessage() );
}
configTree.setAttribute( RemoteFileSystem.PARMS_FTP_SERVER, ftpServer .getHost() );
configTree.setAttribute( RemoteFileSystem.PARMS_USER, ftpServer .getUserName() );
configTree.setAttribute( RemoteFileSystem.PARMS_PASSWD, ftpServer .getPassword() );
configTree.setAttribute( RemoteFileSystem.PARMS_REMOTE_DIR, remoteInputDirName );
configTree.setAttribute( RemoteFileSystem.PARMS_PORT, Integer .toString( ftpServer.getPort() ) );
configTree.setAttribute( RemoteFileSystem.PARMS_LOCAL_DIR, ftpServer .getRootDir() );
configTree.setAttribute( RemoteFileSystem.PARMS_ASCII, Boolean .toString( false ) );
configTree.setAttribute( RemoteFileSystem.PARMS_PASSIVE, Boolean .toString( false ) );
configTree.setAttribute( RemoteFileSystem.PARMS_RENAME_RETRY, Integer .toString(10) );
configTree.setAttribute( RemoteFileSystem.PARMS_TIMEOUT_DEFAULT, Integer .toString(0) );
configTree.setAttribute( RemoteFileSystem.PARMS_TIMEOUT_DATA, Integer .toString(0) );
configTree.setAttribute( RemoteFileSystem.PARMS_TIMEOUT_SO, Integer .toString(0) );
configTree.setAttribute( RemoteFileSystem.PARMS_CONTROL_CHANNEL_ENCODING, "UTF-8" );
return configTree;
}