Package org.exoplatform.frameworks.ftpclient.commands

Examples of org.exoplatform.frameworks.ftpclient.commands.CmdDele


      FtpClientSession client = FtpTestConfig.getTestFtpClient();
      client.connect();

      assertEquals(FtpConst.Replyes.REPLY_331, client.executeCommand(new CmdUser("admin")));
      assertEquals(FtpConst.Replyes.REPLY_230, client.executeCommand(new CmdPass("admin")));
      assertEquals(FtpConst.Replyes.REPLY_250, client.executeCommand(new CmdDele("/production/test_file.txt")));

      client.close();

      log.info("Complete.");
   }
View Full Code Here


         {
            fail();
         }
      }

      assertEquals(FtpConst.Replyes.REPLY_250, client.executeCommand(new CmdDele(fileName)));

      client.close();

      log.info("Complete.");
   }
View Full Code Here

            {
               CmdSyst cmdSyst = new CmdSyst();
               assertEquals(FtpConst.Replyes.REPLY_215, client.executeCommand(cmdSyst));
            }

            assertEquals(FtpConst.Replyes.REPLY_250, client.executeCommand(new CmdDele(FtpTestConfig.TEST_FOLDER)));
         }
      }

      {
         int successed = 0;
View Full Code Here

            }

            Thread.sleep(SLEEP);

            {
               assertEquals(FtpConst.Replyes.REPLY_250, client.executeCommand(new CmdDele(folderName)));
            }

            Thread.sleep(SLEEP);

            client.close();
View Full Code Here

         cmdStor.setFileContent(fileContent);
         assertEquals(FtpConst.Replyes.REPLY_550, client.executeCommand(cmdStor));
      }

      {
         assertEquals(FtpConst.Replyes.REPLY_250, client.executeCommand(new CmdDele(fileName)));
      }

      client.close();
      log.info("Complete.\r\n");
   }
View Full Code Here

        cmdStor.setFileContent(fileContent);
        assertEquals(FtpConst.Replyes.REPLY_226, client.executeCommand(cmdStor));
      }

      {
        assertEquals(FtpConst.Replyes.REPLY_250, client.executeCommand(new CmdDele("test_stor_file_" + "_______" + ".txt")));
      }

      client.close();
      log.info("Complete.\r\n");
    }
View Full Code Here

         CmdRetr cmdRetr = new CmdRetr(fileName);
         assertEquals(FtpConst.Replyes.REPLY_550, client.executeCommand(cmdRetr));
      }

      {
         assertEquals(FtpConst.Replyes.REPLY_250, client.executeCommand(new CmdDele(fileName)));
      }

      client.close();
      log.info("Complete.\r\n");
   }
View Full Code Here

         CmdRnFr cmdRnFr = new CmdRnFr(folderName);
         assertEquals(FtpConst.Replyes.REPLY_350, client.executeCommand(cmdRnFr));
      }

      {
         CmdDele cmdDele = new CmdDele(folderName);
         assertEquals(FtpConst.Replyes.REPLY_250, client.executeCommand(cmdDele));
      }

      client.close();
View Full Code Here

      FtpClientSession client = FtpTestConfig.getTestFtpClient();
      client.connect();

      {
         CmdDele cmdDele = new CmdDele("");
         assertEquals(FtpConst.Replyes.REPLY_530, client.executeCommand(cmdDele));
      }

      {
         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));
      }

      {
         CmdDele cmdDele = new CmdDele("");
         assertEquals(FtpConst.Replyes.REPLY_500, client.executeCommand(cmdDele));
      }

      {
         CmdDele cmdDele = new CmdDele("NotExistFolder");
         assertEquals(FtpConst.Replyes.REPLY_550, client.executeCommand(cmdDele));
      }

      {
         CmdCwd cmdCwd = new CmdCwd("production");
         assertEquals(FtpConst.Replyes.REPLY_250, client.executeCommand(cmdCwd));
      }

      String folderName = "testFolder_" + System.currentTimeMillis();

      {
         CmdMkd cmdMkd = new CmdMkd(folderName);
         assertEquals(FtpConst.Replyes.REPLY_257, client.executeCommand(cmdMkd));
      }

      {
         CmdDele cmdDele = new CmdDele(folderName);
         assertEquals(FtpConst.Replyes.REPLY_250, client.executeCommand(cmdDele));
      }

      client.close();
      log.info("Complete.\r\n");
View Full Code Here

         CmdRnTo cmdRnTo = new CmdRnTo(folder_to);
         assertEquals(FtpConst.Replyes.REPLY_250, client.executeCommand(cmdRnTo));
      }

      {
         CmdDele cmdDele = new CmdDele(folder_to);
         assertEquals(FtpConst.Replyes.REPLY_250, client.executeCommand(cmdDele));
      }

      {
         CmdDele cmdDele = new CmdDele(folder_existed);
         assertEquals(FtpConst.Replyes.REPLY_250, client.executeCommand(cmdDele));
      }

      client.close();
View Full Code Here

TOP

Related Classes of org.exoplatform.frameworks.ftpclient.commands.CmdDele

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.