Package org.exoplatform.frameworks.ftpclient.commands

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


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

      {
         CmdStat cmdStat = new CmdStat();
         assertEquals(FtpConst.Replyes.REPLY_530, client.executeCommand(cmdStat));
      }

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

      {
         CmdStat cmdStat = new CmdStat();
         assertEquals(FtpConst.Replyes.REPLY_211, client.executeCommand(cmdStat));
      }

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

TOP

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

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.