Class FTPAssertion

java.lang.Object
org.alfresco.utility.dsl.DSLAssertion<FTPWrapper>
org.alfresco.ftp.dsl.FTPAssertion

public class FTPAssertion extends org.alfresco.utility.dsl.DSLAssertion<FTPWrapper>
DSL with all assertion available for FTPWrapper
  • Constructor Details

    • FTPAssertion

      public FTPAssertion(FTPWrapper ftpProtocol)
  • Method Details

    • userIsLoggedIn

      public FTPWrapper userIsLoggedIn()
    • userIsNotLoggedIn

      public FTPWrapper userIsNotLoggedIn()
    • currentFolderIs

      public FTPWrapper currentFolderIs(String folder) throws Exception
      Throws:
      Exception
    • contentIs

      public FTPWrapper contentIs(String expectedContent) throws IOException
      Throws:
      IOException
    • isDownloaded

      public FTPWrapper isDownloaded()
      Verify if file is downloaded in project root.
      Returns:
    • existsInFtp

      public FTPWrapper existsInFtp() throws Exception
      Throws:
      Exception
    • doesNotExistInFtp

      public FTPWrapper doesNotExistInFtp() throws Exception
      Throws:
      Exception
    • hasFolders

      public FTPWrapper hasFolders(org.alfresco.utility.model.FolderModel... folderModel) throws Exception
      Verify if folder children exist in parent folder
      Parameters:
      fileModel - children files
      Returns:
      Throws:
      Exception
    • hasFiles

      public FTPWrapper hasFiles(org.alfresco.utility.model.FileModel... fileModel) throws Exception
      Verify if file children exist in parent folder
      Parameters:
      fileModel - children files
      Returns:
      Throws:
      Exception
    • hasChildren

      public FTPWrapper hasChildren(org.alfresco.utility.model.ContentModel... contentModel) throws Exception
      Verify the children(files and folders) from a parent folder
      Parameters:
      contentModel - children
      Returns:
      Throws:
      Exception
    • hasSize

      public FTPWrapper hasSize(int sizeInMb) throws Exception
      Verify the size of a file
      Parameters:
      sizeInMb - size in MB
      Returns:
      Throws:
      Exception
    • hasReplyCode

      public FTPWrapper hasReplyCode(int replyCode)
      Verify the status for a specific FTP action
      Parameters:
      replyCode - code to verify
      Returns: