org.silverpeas.attachment.mock
Class WebdavServiceMockWrapper

java.lang.Object
  extended by org.silverpeas.attachment.mock.WebdavServiceMockWrapper
All Implemented Interfaces:
WebdavService

public class WebdavServiceMockWrapper
extends Object
implements WebdavService

A wrapper of a mock of an WebdavService instance dedicated to the tests. This wrapper decorates the mock and it is used to be managed by an IoC container as an WebdavService instance.


Constructor Summary
WebdavServiceMockWrapper()
           
 
Method Summary
 String getContentEditionLanguage(SimpleDocument document)
           
 long getContentEditionSize(SimpleDocument document)
           
 WebdavService getMock()
           
 void updateDocumentContent(SimpleDocument document)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebdavServiceMockWrapper

public WebdavServiceMockWrapper()
Method Detail

getMock

public WebdavService getMock()

updateDocumentContent

public void updateDocumentContent(SimpleDocument document)
Specified by:
updateDocumentContent in interface WebdavService

getContentEditionLanguage

public String getContentEditionLanguage(SimpleDocument document)
Specified by:
getContentEditionLanguage in interface WebdavService

getContentEditionSize

public long getContentEditionSize(SimpleDocument document)
Specified by:
getContentEditionSize in interface WebdavService


Copyright © 2016 Silverpeas. All Rights Reserved.