org.silverpeas.attachment.webdav
Class WebdavServiceTest.JcrWebdavServiceTest

java.lang.Object
  extended by org.silverpeas.attachment.repository.JcrTest
      extended by org.silverpeas.attachment.webdav.WebdavServiceTest.JcrWebdavServiceTest
Enclosing class:
WebdavServiceTest

public abstract static class WebdavServiceTest.JcrWebdavServiceTest
extends JcrTest


Constructor Summary
WebdavServiceTest.JcrWebdavServiceTest()
           
 
Method Summary
protected  void assertWebdavContent(SimpleDocument document, String documentContent, String relativeWebdavJcrPath)
          Assertion of a JCR webdav content ...
 void run()
           
abstract  void run(WebdavService webdavService)
           
protected  void setDocumentIntoWebdav(SimpleDocument document)
          Creates a document in document repository and in webdav repository.
protected  void setWebdavBinaryContent(SimpleDocument document, String content)
          Set a content into webdav.
 
Methods inherited from class org.silverpeas.attachment.repository.JcrTest
assertContent, assertDocumentDoesNotExist, assertDocumentExists, createAttachmentForTest, defaultDEContent, defaultDocument, defaultDocument, defaultENContent, defaultFRContent, execute, getAppContext, getBinaryContent, getBinaryContentAsString, getDocumentById, getDocumentById, getRelativeNode, getSingleChildNode, getTestStartDate, listPathesFrom, listPathesFrom, randomDate, setAppContext, setBinaryContent, updateAttachmentForTest, updateAttachmentForTest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebdavServiceTest.JcrWebdavServiceTest

public WebdavServiceTest.JcrWebdavServiceTest()
Method Detail

run

public void run()
         throws Exception
Specified by:
run in class JcrTest
Throws:
Exception

run

public abstract void run(WebdavService webdavService)
                  throws Exception
Throws:
Exception

assertWebdavContent

protected void assertWebdavContent(SimpleDocument document,
                                   String documentContent,
                                   String relativeWebdavJcrPath)
                            throws Exception
Assertion of a JCR webdav content ...

Parameters:
document -
documentContent -
relativeWebdavJcrPath -
Throws:
Exception

setDocumentIntoWebdav

protected void setDocumentIntoWebdav(SimpleDocument document)
                              throws Exception
Creates a document in document repository and in webdav repository.

Parameters:
document -
Throws:
Exception

setWebdavBinaryContent

protected void setWebdavBinaryContent(SimpleDocument document,
                                      String content)
                               throws Exception
Set a content into webdav.

Parameters:
document -
content -
Throws:
Exception


Copyright © 2016 Silverpeas. All Rights Reserved.