org.silverpeas.attachment.repository
Class DocumentRepositoryTest

java.lang.Object
  extended by org.silverpeas.attachment.repository.DocumentRepositoryTest

public class DocumentRepositoryTest
extends Object


Constructor Summary
DocumentRepositoryTest()
           
 
Method Summary
 void cleanRepository()
           
 void loadSpringContext()
           
 void setupJcr()
           
 void tearAlldown()
           
 void testAddContent()
          Test of addContent method, of class DocumentRepository.
 void testChangeVersionStateOfSimpleDocument()
          Test of updateDocument method, of class DocumentRepository.
 void testCopyDocument()
          Test of copyDocument method, of class DocumentRepository.
 void testCopyDocumentWithDocumentTypeChange()
          Test of copyDocument method, of class DocumentRepository.
 void testCopyMultilangContent()
           
 void testCopyReservedDocument()
          Test of copyDocument method, of class DocumentRepository.
 void testCreateDocument()
          Test of createDocument method, of class DocumentRepository.
 void testDeleteDocument()
          Test of deleteDocument method, of class DocumentRepository.
 void testFindDocumentById()
          Test of findDocumentById method, of class DocumentRepository.
 void testFindDocumentByOldSilverpeasId()
          Test of findDocumentByOldSilverpeasId method, of class DocumentRepository.
 void testFindDocumentWithForbiddentDownloadForRolesById()
          Test of findDocumentById method, of class DocumentRepository.
 void testFindLast()
          Test of findLast method, of class DocumentRepository.
 void testListAllDocumentsByComponentId()
          Test of listDocumentsByForeignId method, of class DocumentRepository.
 void testListComponentDocumentsByOwner()
          Test of listDocumentsByOwner method, of class DocumentRepository.
 void testListDocumentsByComponentIdAndType()
          Test of listDocumentsByForeignId method, of class DocumentRepository.
 void testListDocumentsByForeignId()
          Test of listDocumentsByForeignId method, of class DocumentRepository.
 void testListDocumentsByForeignIdAndType()
          Test of listDocumentsByForeignId method, of class DocumentRepository.
 void testListDocumentsLockedByUser()
          Test of listDocumentsByOwner method, of class DocumentRepository.
 void testListDocumentsRequiringWarning()
          Test of listDocumentsRequiringWarning method, of class DocumentRepository.
 void testListDocumentsToUnlock()
          Test of listDocumentsToUnlock method, of class DocumentRepository.
 void testListExpiringDocuments()
          Test of listExpiringDocumentsByOwner method, of class DocumentRepository.
 void testMoveDocument()
          Test of moveDocument method, of class DocumentRepository.
 void testMoveDocumentWithDocumentTypeChange()
          Test of moveDocument method, of class DocumentRepository.
 void testRemoveContent()
          Test of removeContent method, of class DocumentRepository.
 void testSaveForbiddenDownloadForRoles()
          Test of saveForbiddenDownloadForRoles method, of class DocumentRepository.
 void testSelectDocumentsByForeignId()
          Test of selectDocumentsByForeignId method, of class DocumentRepository.
 void testSelectDocumentsByOwnerId()
          Test of selectDocumentsByOwnerId method, of class DocumentRepository.
 void testSelectDocumentsRequiringUnlocking()
          Test of selectDocumentsRequiringUnlocking method, of class DocumentRepository.
 void testSelectExpiringDocuments()
          Test of selectExpiringDocuments method, of class DocumentRepository.
 void testSelectWarningDocuments()
          Test of selectWarningDocuments method, of class DocumentRepository.
 void testStoreContent()
           
 void testUpdateDocument()
          Test of updateDocument method, of class DocumentRepository.
 void testUpdateDocumentForbidDownloadToReaderRole()
          Test of updateDocument method, of class DocumentRepository.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentRepositoryTest

public DocumentRepositoryTest()
Method Detail

cleanRepository

public void cleanRepository()
                     throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

loadSpringContext

public void loadSpringContext()
                       throws Exception
Throws:
Exception

tearAlldown

public void tearAlldown()
                 throws Exception
Throws:
Exception

setupJcr

public void setupJcr()
              throws Exception
Throws:
Exception

testCreateDocument

public void testCreateDocument()
                        throws Exception
Test of createDocument method, of class DocumentRepository.

Throws:
Exception

testDeleteDocument

public void testDeleteDocument()
                        throws Exception
Test of deleteDocument method, of class DocumentRepository.

Throws:
Exception

testFindDocumentById

public void testFindDocumentById()
                          throws Exception
Test of findDocumentById method, of class DocumentRepository.

Throws:
Exception

testFindDocumentWithForbiddentDownloadForRolesById

public void testFindDocumentWithForbiddentDownloadForRolesById()
                                                        throws Exception
Test of findDocumentById method, of class DocumentRepository.

Throws:
Exception

testFindLast

public void testFindLast()
                  throws Exception
Test of findLast method, of class DocumentRepository.

Throws:
Exception

testUpdateDocument

public void testUpdateDocument()
                        throws Exception
Test of updateDocument method, of class DocumentRepository.

Throws:
Exception

testUpdateDocumentForbidDownloadToReaderRole

public void testUpdateDocumentForbidDownloadToReaderRole()
                                                  throws Exception
Test of updateDocument method, of class DocumentRepository.

Throws:
Exception

testSaveForbiddenDownloadForRoles

public void testSaveForbiddenDownloadForRoles()
                                       throws Exception
Test of saveForbiddenDownloadForRoles method, of class DocumentRepository.

Throws:
Exception

testChangeVersionStateOfSimpleDocument

public void testChangeVersionStateOfSimpleDocument()
                                            throws Exception
Test of updateDocument method, of class DocumentRepository.

Throws:
Exception

testListDocumentsByForeignId

public void testListDocumentsByForeignId()
                                  throws Exception
Test of listDocumentsByForeignId method, of class DocumentRepository.

Throws:
Exception

testListDocumentsByForeignIdAndType

public void testListDocumentsByForeignIdAndType()
                                         throws Exception
Test of listDocumentsByForeignId method, of class DocumentRepository.

Throws:
Exception

testListDocumentsByComponentIdAndType

public void testListDocumentsByComponentIdAndType()
                                           throws Exception
Test of listDocumentsByForeignId method, of class DocumentRepository.

Throws:
Exception

testListAllDocumentsByComponentId

public void testListAllDocumentsByComponentId()
                                       throws Exception
Test of listDocumentsByForeignId method, of class DocumentRepository.

Throws:
Exception

testSelectDocumentsByForeignId

public void testSelectDocumentsByForeignId()
                                    throws Exception
Test of selectDocumentsByForeignId method, of class DocumentRepository.

Throws:
Exception

testSelectDocumentsByOwnerId

public void testSelectDocumentsByOwnerId()
                                  throws Exception
Test of selectDocumentsByOwnerId method, of class DocumentRepository.

Throws:
Exception

testAddContent

public void testAddContent()
                    throws Exception
Test of addContent method, of class DocumentRepository.

Throws:
Exception

testRemoveContent

public void testRemoveContent()
                       throws Exception
Test of removeContent method, of class DocumentRepository.

Throws:
Exception

testListComponentDocumentsByOwner

public void testListComponentDocumentsByOwner()
                                       throws Exception
Test of listDocumentsByOwner method, of class DocumentRepository.

Throws:
Exception

testListDocumentsLockedByUser

public void testListDocumentsLockedByUser()
                                   throws Exception
Test of listDocumentsByOwner method, of class DocumentRepository.

Throws:
Exception

testListExpiringDocuments

public void testListExpiringDocuments()
                               throws Exception
Test of listExpiringDocumentsByOwner method, of class DocumentRepository.

Throws:
Exception

testSelectExpiringDocuments

public void testSelectExpiringDocuments()
                                 throws Exception
Test of selectExpiringDocuments method, of class DocumentRepository.

Throws:
Exception

testListDocumentsToUnlock

public void testListDocumentsToUnlock()
                               throws Exception
Test of listDocumentsToUnlock method, of class DocumentRepository.

Throws:
Exception

testSelectDocumentsRequiringUnlocking

public void testSelectDocumentsRequiringUnlocking()
                                           throws Exception
Test of selectDocumentsRequiringUnlocking method, of class DocumentRepository.

Throws:
Exception

testSelectWarningDocuments

public void testSelectWarningDocuments()
                                throws Exception
Test of selectWarningDocuments method, of class DocumentRepository.

Throws:
Exception

testMoveDocument

public void testMoveDocument()
                      throws Exception
Test of moveDocument method, of class DocumentRepository.

Throws:
Exception

testMoveDocumentWithDocumentTypeChange

public void testMoveDocumentWithDocumentTypeChange()
                                            throws Exception
Test of moveDocument method, of class DocumentRepository.

Throws:
Exception

testCopyDocument

public void testCopyDocument()
                      throws Exception
Test of copyDocument method, of class DocumentRepository.

Throws:
Exception

testCopyReservedDocument

public void testCopyReservedDocument()
                              throws Exception
Test of copyDocument method, of class DocumentRepository.

Throws:
Exception

testCopyDocumentWithDocumentTypeChange

public void testCopyDocumentWithDocumentTypeChange()
                                            throws Exception
Test of copyDocument method, of class DocumentRepository.

Throws:
Exception

testFindDocumentByOldSilverpeasId

public void testFindDocumentByOldSilverpeasId()
                                       throws Exception
Test of findDocumentByOldSilverpeasId method, of class DocumentRepository.

Throws:
Exception

testListDocumentsRequiringWarning

public void testListDocumentsRequiringWarning()
                                       throws Exception
Test of listDocumentsRequiringWarning method, of class DocumentRepository.

Throws:
Exception

testStoreContent

public void testStoreContent()
                      throws javax.jcr.RepositoryException,
                             IOException
Throws:
javax.jcr.RepositoryException
IOException

testCopyMultilangContent

public void testCopyMultilangContent()
                              throws javax.jcr.RepositoryException,
                                     IOException
Throws:
javax.jcr.RepositoryException
IOException


Copyright © 2016 Silverpeas. All Rights Reserved.