org.silverpeas.attachment
Class AttachmentServiceTest

java.lang.Object
  extended by org.silverpeas.attachment.AttachmentServiceTest

public class AttachmentServiceTest
extends Object

Author:
ehugonnet

Constructor Summary
AttachmentServiceTest()
           
 
Method Summary
 void cleanRepository()
           
static void loadSpringContext()
           
 void setUpJcr()
           
static void tearAlldown()
           
 void testAddFileContent()
          Test of addContent method, of class AttachmentService.
 void testAddNewStreamContent()
          Test of addContent method, of class AttachmentService.
 void testAddXmlForm()
          Test of addXmlForm method, of class AttachmentService.
 void testCloneDocument()
          Test of cloneDocument method, of class AttachmentService.
 void testCopyAllAttachments()
          Test of copyAllAttachments method, of class AttachmentService.
 void testCreateAttachmentFromFile()
          Test of createAttachment method, of class AttachmentService.
 void testCreateAttachmentFromInputStream()
          Test of createAttachment method, of class AttachmentService.
 void testCreateAttachmentFromInputStreamWithCallback()
          Test of createAttachment method, of class AttachmentService.
 void testCreateAttachmentIndexedCallbackFromFile()
          Test of createAttachment method, of class AttachmentService.
 void testCreateAttachmentNotIndexedFromFile()
          Test of createAttachment method, of class AttachmentService.
 void testCreateIndexedAttachmentFromInputStream()
          Test of createAttachment method, of class AttachmentService.
 void testDeleteAllAttachments()
          Test of deleteAllAttachments method, of class AttachmentService.
 void testDeleteAllDocuments()
          Test of deleteAttachment method, of class AttachmentService.
 void testDeleteAttachment()
          Test of deleteAttachment method, of class AttachmentService.
 void testDeleteIndexedAttachment()
          Test of deleteAttachment method, of class AttachmentService.
 void testGetBinaryContentIntoFile()
          Test of getBinaryContent method, of class AttachmentService.
 void testGetBinaryContentIntoOutputStream()
          Test of getBinaryContent method, of class AttachmentService.
 void testListDocumentLockedByUser()
          Test of listDocumentsToUnlock method, of class AttachmentService.
 void testListDocumentsRequiringWarning()
          Test of listDocumentsRequiringWarning method, of class AttachmentService.
 void testListDocumentsToUnlock()
          Test of listDocumentsToUnlock method, of class AttachmentService.
 void testListExpiringDocuments()
          Test of listExpiringDocuments method, of class AttachmentService.
 void testMoveAllAttachments()
          Test of moveAllAttachments method, of class AttachmentService.
 void testMoveAllAttachmentsIntoAnotherComponentId()
          Test of moveAllAttachments method, of class AttachmentService.
 void testMoveDocument()
          Test of cloneDocument method, of class AttachmentService.
 void testRemoveContent()
          Test of removeContent method, of class AttachmentService.
 void testReorderAttachments()
          Test of reorderAttachments method, of class AttachmentService.
 void testSearchAttachmentById()
          Test of searchDocumentById method, of class AttachmentService.
 void testSearchAttachmentsByExternalObject()
          Test of listDocumentsByForeignKey method, of class AttachmentService.
 void testSwitchAllowingDownloadForReaders()
          Test of switchAllowingDownloadForReaders method, of class AttachmentService.
 void testUpdateAttachment()
          Test of updateAttachment method, of class AttachmentService.
 void testUpdateAttachmentForbidRoles()
          Test of updateAttachment method, of class AttachmentService.
 void testUpdateFileContent()
          Test of addContent method, of class AttachmentService.
 void testUpdateStreamContent()
          Test of addContent method, of class AttachmentService.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttachmentServiceTest

public AttachmentServiceTest()
Method Detail

setUpJcr

public void setUpJcr()
              throws javax.jcr.RepositoryException,
                     org.apache.jackrabbit.commons.cnd.ParseException,
                     IOException,
                     SQLException
Throws:
javax.jcr.RepositoryException
org.apache.jackrabbit.commons.cnd.ParseException
IOException
SQLException

loadSpringContext

public static void loadSpringContext()
                              throws Exception
Throws:
Exception

tearAlldown

public static void tearAlldown()
                        throws Exception
Throws:
Exception

cleanRepository

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

testUpdateStreamContent

public void testUpdateStreamContent()
                             throws UnsupportedEncodingException
Test of addContent method, of class AttachmentService.

Throws:
UnsupportedEncodingException

testAddNewStreamContent

public void testAddNewStreamContent()
                             throws UnsupportedEncodingException
Test of addContent method, of class AttachmentService.

Throws:
UnsupportedEncodingException

testAddFileContent

public void testAddFileContent()
                        throws URISyntaxException,
                               IOException
Test of addContent method, of class AttachmentService.

Throws:
URISyntaxException
IOException

testUpdateFileContent

public void testUpdateFileContent()
                           throws URISyntaxException,
                                  IOException
Test of addContent method, of class AttachmentService.

Throws:
URISyntaxException
IOException

testGetBinaryContentIntoFile

public void testGetBinaryContentIntoFile()
                                  throws IOException
Test of getBinaryContent method, of class AttachmentService.

Throws:
IOException

testGetBinaryContentIntoOutputStream

public void testGetBinaryContentIntoOutputStream()
Test of getBinaryContent method, of class AttachmentService.


testAddXmlForm

public void testAddXmlForm()
Test of addXmlForm method, of class AttachmentService.


testCloneDocument

public void testCloneDocument()
                       throws IOException
Test of cloneDocument method, of class AttachmentService.

Throws:
IOException

testMoveDocument

public void testMoveDocument()
                      throws IOException
Test of cloneDocument method, of class AttachmentService.

Throws:
IOException

testCreateAttachmentFromInputStream

public void testCreateAttachmentFromInputStream()
Test of createAttachment method, of class AttachmentService.


testCreateIndexedAttachmentFromInputStream

public void testCreateIndexedAttachmentFromInputStream()
Test of createAttachment method, of class AttachmentService.


testCreateAttachmentFromInputStreamWithCallback

public void testCreateAttachmentFromInputStreamWithCallback()
Test of createAttachment method, of class AttachmentService.


testCreateAttachmentIndexedCallbackFromFile

public void testCreateAttachmentIndexedCallbackFromFile()
                                                 throws URISyntaxException
Test of createAttachment method, of class AttachmentService.

Throws:
URISyntaxException

testCreateAttachmentNotIndexedFromFile

public void testCreateAttachmentNotIndexedFromFile()
                                            throws URISyntaxException
Test of createAttachment method, of class AttachmentService.

Throws:
URISyntaxException

testCreateAttachmentFromFile

public void testCreateAttachmentFromFile()
                                  throws Exception
Test of createAttachment method, of class AttachmentService.

Throws:
Exception

testDeleteAllDocuments

public void testDeleteAllDocuments()
Test of deleteAttachment method, of class AttachmentService.


testDeleteAllAttachments

public void testDeleteAllAttachments()
                              throws Exception
Test of deleteAllAttachments method, of class AttachmentService.

Throws:
Exception

testCopyAllAttachments

public void testCopyAllAttachments()
                            throws Exception
Test of copyAllAttachments method, of class AttachmentService.

Throws:
Exception

testMoveAllAttachments

public void testMoveAllAttachments()
                            throws Exception
Test of moveAllAttachments method, of class AttachmentService.

Throws:
Exception

testMoveAllAttachmentsIntoAnotherComponentId

public void testMoveAllAttachmentsIntoAnotherComponentId()
                                                  throws Exception
Test of moveAllAttachments method, of class AttachmentService.

Throws:
Exception

testDeleteAttachment

public void testDeleteAttachment()
Test of deleteAttachment method, of class AttachmentService.


testDeleteIndexedAttachment

public void testDeleteIndexedAttachment()
Test of deleteAttachment method, of class AttachmentService.


testRemoveContent

public void testRemoveContent()
Test of removeContent method, of class AttachmentService.


testReorderAttachments

public void testReorderAttachments()
                            throws javax.jcr.LoginException,
                                   javax.jcr.RepositoryException,
                                   IOException
Test of reorderAttachments method, of class AttachmentService.

Throws:
javax.jcr.LoginException
javax.jcr.RepositoryException
IOException

testSearchAttachmentById

public void testSearchAttachmentById()
Test of searchDocumentById method, of class AttachmentService.


testSearchAttachmentsByExternalObject

public void testSearchAttachmentsByExternalObject()
                                           throws javax.jcr.LoginException,
                                                  javax.jcr.RepositoryException,
                                                  IOException
Test of listDocumentsByForeignKey method, of class AttachmentService.

Throws:
javax.jcr.LoginException
javax.jcr.RepositoryException
IOException

testUpdateAttachment

public void testUpdateAttachment()
Test of updateAttachment method, of class AttachmentService.


testUpdateAttachmentForbidRoles

public void testUpdateAttachmentForbidRoles()
Test of updateAttachment method, of class AttachmentService.


testSwitchAllowingDownloadForReaders

public void testSwitchAllowingDownloadForReaders()
Test of switchAllowingDownloadForReaders method, of class AttachmentService.


testListDocumentsRequiringWarning

public void testListDocumentsRequiringWarning()
Test of listDocumentsRequiringWarning method, of class AttachmentService.


testListExpiringDocuments

public void testListExpiringDocuments()
Test of listExpiringDocuments method, of class AttachmentService.


testListDocumentsToUnlock

public void testListDocumentsToUnlock()
Test of listDocumentsToUnlock method, of class AttachmentService.


testListDocumentLockedByUser

public void testListDocumentLockedByUser()
Test of listDocumentsToUnlock method, of class AttachmentService.



Copyright © 2016 Silverpeas. All Rights Reserved.