FtpClientSession client = FtpTestConfig.getTestFtpClient();
client.connect();
{
CmdStat cmdStat = new CmdStat();
assertEquals(FtpConst.Replyes.REPLY_530, client.executeCommand(cmdStat));
}
{
CmdUser cmdUser = new CmdUser(FtpTestConfig.USER_ID);
assertEquals(FtpConst.Replyes.REPLY_331, client.executeCommand(cmdUser));
}
{
CmdPass cmdPass = new CmdPass(FtpTestConfig.USER_PASS);
assertEquals(FtpConst.Replyes.REPLY_230, client.executeCommand(cmdPass));
}
{
CmdStat cmdStat = new CmdStat();
assertEquals(FtpConst.Replyes.REPLY_211, client.executeCommand(cmdStat));
}
client.close();
log.info("Complete.\r\n");