String folder_from = "FOLDER_FROM_" + System.currentTimeMillis();
String folder_to = "FOLDER_TO_" + System.currentTimeMillis();
String folder_existed = "FOLDER_EXISTED_" + System.currentTimeMillis();
{
CmdMkd cmdMkd = new CmdMkd(folder_from);
assertEquals(FtpConst.Replyes.REPLY_257, client.executeCommand(cmdMkd));
}
{
CmdRnFr cmdRnFr = new CmdRnFr(folder_from);
assertEquals(FtpConst.Replyes.REPLY_350, client.executeCommand(cmdRnFr));
}
{
CmdRnTo cmdRnTo = new CmdRnTo(null);
assertEquals(FtpConst.Replyes.REPLY_500, client.executeCommand(cmdRnTo));
}
{
CmdMkd cmdMkd = new CmdMkd(folder_existed);
assertEquals(FtpConst.Replyes.REPLY_257, client.executeCommand(cmdMkd));
}
{
CmdRnFr cmdRnFr = new CmdRnFr(folder_from);