Package org.alfresco.webdav.dsl
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 Summary
Constructors Constructor Description WebDavAssertion(WebDavWrapper webDavProtocol)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WebDavWrappercontentIs(java.lang.String content)Verify the content from a fileWebDavWrapperdoesNotExistInWebdav()Verify that content does not exit in webdavWebDavWrapperexistsInWebdav()Verify that content exits in webdavWebDavWrapperhasChildren(org.alfresco.utility.model.ContentModel... contentModel)Verify the children(files and folders) from a parent folderWebDavWrapperhasFiles(org.alfresco.utility.model.FileModel... fileModel)Verify if file children exist in parent folderWebDavWrapperhasFolders(org.alfresco.utility.model.FolderModel... folderModel)Verify if folder children exist in parent folderWebDavWrapperhasResponseHeaderValue(java.lang.String headerName, java.lang.String headerValue)Verify if response header value is as expected Example: hasResponseHeaderValue(WebDavWrapper.RESPONSE_HEADER_CONTENT_TYPE, "text/plain");WebDavWrapperhasStatus(int status)Verify the status for a specific webdav actionWebDavWrapperisDownloaded()Verify if file is downloaded in project root.WebDavWrapperisLocked()Verify if a file is lockedWebDavWrapperisUnlocked()Verify if a file is not lockedWebDavWrapperwebDavWrapper()
-
-
-
Constructor Detail
-
WebDavAssertion
public WebDavAssertion(WebDavWrapper webDavProtocol)
-
-
Method Detail
-
webDavWrapper
public WebDavWrapper webDavWrapper()
-
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 headerheaderValue- Value of the response header to be checked- Returns:
- Throws:
java.lang.Exception
-
-