FtpClientSession client = FtpTestConfig.getTestFtpClient();
client.connect();
{
CmdCdUp cmdCdUp = new CmdCdUp();
assertEquals(FtpConst.Replyes.REPLY_530, client.executeCommand(cmdCdUp));
}
{
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));
}
{
CmdCdUp cmdCdUp = new CmdCdUp();
assertEquals(FtpConst.Replyes.REPLY_250, client.executeCommand(cmdCdUp));
}
client.close();
log.info("Complete.\r\n");