Examples of CmdRmd


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

      assertEquals(FtpConst.Replyes.REPLY_331, client.executeCommand(new CmdUser("admin")));
      assertEquals(FtpConst.Replyes.REPLY_230, client.executeCommand(new CmdPass("admin")));
      assertEquals(FtpConst.Replyes.REPLY_215, client.executeCommand(new CmdSyst()));
      assertEquals(FtpConst.Replyes.REPLY_257, client.executeCommand(new CmdMkd("/production/test_folder")));
      assertEquals(FtpConst.Replyes.REPLY_250, client.executeCommand(new CmdRmd("/production/test_folder")));

      client.close();

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

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

      assertEquals(FtpConst.Replyes.REPLY_215, client.executeCommand(new CmdSyst()));
      assertEquals(FtpConst.Replyes.REPLY_257, client.executeCommand(new CmdMkd("/production/test_kokanoid_torename")));

      assertEquals(FtpConst.Replyes.REPLY_350, client.executeCommand(new CmdRnFr("/production/test_kokanoid_torename")));
      assertEquals(FtpConst.Replyes.REPLY_250, client.executeCommand(new CmdRnTo("/production/test_kokanoid_renamed")));
      assertEquals(FtpConst.Replyes.REPLY_250, client.executeCommand(new CmdRmd("/production/test_kokanoid_renamed")));

      client.close();

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

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

            log.info("Verify folder exists...");

            if (client.executeCommand(new CmdList(rootTestFolder)) == FtpConst.Replyes.REPLY_226)
            {
               log.info("Test folder exist. try delete it...");
               assertEquals(FtpConst.Replyes.REPLY_250, client.executeCommand(new CmdRmd(rootTestFolder)));
               log.info("Deleted.");
            }

            for (int i1 = 1; i1 <= ITEMS_COUNT; i1++)
            {
View Full Code Here

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

                  {
                     String file3 = folder2.substring(0);
                     file3 += "/test_file_" + i3 + ".txt";

                     log.info("Try delete [" + file3 + "]...");
                     assertEquals(FtpConst.Replyes.REPLY_250, client.executeCommand(new CmdRmd(file3)));
                  }

                  log.info("Try delete [" + folder2 + "]...");
                  assertEquals(FtpConst.Replyes.REPLY_250, client.executeCommand(new CmdRmd(folder2)));
               }

               log.info("Try delete [" + folder1 + "]...");
               assertEquals(FtpConst.Replyes.REPLY_250, client.executeCommand(new CmdRmd(folder1)));

            }

            assertEquals(FtpConst.Replyes.REPLY_250, client.executeCommand(new CmdRmd(rootTestFolder)));

            client.close();
         }
         catch (Exception exc)
         {
View Full Code Here

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

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

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

         CmdRmd cmdRmd = new CmdRmd(folderName);
         assertEquals(FtpConst.Replyes.REPLY_250, client.executeCommand(cmdRmd));
      }

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

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

        String folderName = "test_folder_123" + ":[]*'\"|" + "123";

        CmdMkd cmdMkd = new CmdMkd(folderName);
        assertEquals(FtpConst.Replyes.REPLY_257, client.executeCommand(cmdMkd));
       
        CmdRmd cmdRmd = new CmdRmd("test_folder_123" + "_______" + "123");
        assertEquals(FtpConst.Replyes.REPLY_250, client.executeCommand(cmdRmd));
      }

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

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

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

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

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

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

      {
         CmdRmd cmdRmd = new CmdRmd("NotexistFolder");
         assertEquals(FtpConst.Replyes.REPLY_550, client.executeCommand(cmdRmd));
      }

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

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

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

         CmdRmd cmdRmd = new CmdRmd(folderName);
         assertEquals(FtpConst.Replyes.REPLY_250, client.executeCommand(cmdRmd));
      }

      client.close();
      log.info("Complete.\r\n");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.