Class WebDavAssertion


  • public class WebDavAssertion
    extends org.alfresco.utility.dsl.DSLAssertion<WebDavWrapper>
    • Constructor Detail

      • WebDavAssertion

        public WebDavAssertion​(WebDavWrapper webDavProtocol)
    • Method Detail

      • hasFolders

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

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

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

        public WebDavWrapper hasStatus​(int status)
        Verify the status for a specific webdav action
        Parameters:
        status -
        Returns:
      • contentIs

        public WebDavWrapper contentIs​(java.lang.String content)
                                throws java.lang.Exception
        Verify the content from a file
        Parameters:
        content - String content to verify
        Returns:
        Throws:
        java.lang.Exception
      • existsInWebdav

        public WebDavWrapper existsInWebdav()
                                     throws java.lang.Exception
        Verify that content exits in webdav
        Returns:
        Throws:
        java.lang.Exception
      • doesNotExistInWebdav

        public WebDavWrapper doesNotExistInWebdav()
                                           throws java.lang.Exception
        Verify that content does not exit in webdav
        Returns:
        Throws:
        java.lang.Exception
      • isDownloaded

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

        public WebDavWrapper isLocked()
                               throws java.lang.Exception
        Verify if a file is locked
        Returns:
        Throws:
        java.lang.Exception
      • isUnlocked

        public WebDavWrapper isUnlocked()
                                 throws java.lang.Exception
        Verify if a file is not locked
        Returns:
        Throws:
        java.lang.Exception
      • hasResponseHeaderValue

        public WebDavWrapper hasResponseHeaderValue​(java.lang.String headerName,
                                                    java.lang.String headerValue)
                                             throws java.lang.Exception
        Verify if response header value is as expected Example: hasResponseHeaderValue(WebDavWrapper.RESPONSE_HEADER_CONTENT_TYPE, "text/plain");
        Parameters:
        headerName - Name of the response header
        headerValue - Value of the response header to be checked
        Returns:
        Throws:
        java.lang.Exception