Class WebDavAssertion

java.lang.Object
org.alfresco.utility.dsl.DSLAssertion<WebDavWrapper>
org.alfresco.webdav.dsl.WebDavAssertion

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

    • WebDavAssertion

      public WebDavAssertion(WebDavWrapper webDavProtocol)
  • Method Details

    • webDavWrapper

      public WebDavWrapper webDavWrapper()
    • hasFolders

      public WebDavWrapper 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 WebDavWrapper 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 WebDavWrapper 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
    • hasStatus

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

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

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

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

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

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

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

      public WebDavWrapper hasResponseHeaderValue(String headerName, String headerValue) throws 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:
      Exception