FtpClientSession client = FtpTestConfig.getTestFtpClient();
client.connect();
{
CmdUser cmdUser = new CmdUser("");
assertEquals(FtpConst.Replyes.REPLY_500, client.executeCommand(cmdUser));
}
{
CmdPass cmdPass = new CmdPass("");
assertEquals(FtpConst.Replyes.REPLY_503, client.executeCommand(cmdPass));
}
{
CmdUser cmdUser = new CmdUser(FtpTestConfig.USER_ID);
assertEquals(FtpConst.Replyes.REPLY_331, client.executeCommand(cmdUser));
}
{
CmdPass cmdPass = new CmdPass("");
assertEquals(FtpConst.Replyes.REPLY_500, client.executeCommand(cmdPass));
}
{
CmdUser cmdUser = new CmdUser(FtpTestConfig.USER_ID);
assertEquals(FtpConst.Replyes.REPLY_331, client.executeCommand(cmdUser));
}
{
CmdPass cmdPass = new CmdPass(FtpTestConfig.USER_PASS);