org.alfresco.repo.model.filefolder
Class FileFolderServiceImplTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.alfresco.repo.model.filefolder.FileFolderServiceImplTest
All Implemented Interfaces:
junit.framework.Test

public class FileFolderServiceImplTest
extends junit.framework.TestCase

See Also:
FileFolderServiceImpl

Constructor Summary
FileFolderServiceImplTest()
           
 
Method Summary
 void setUp()
           
 void tearDown()
           
 void testAlf6560MimetypeSetting()
           
 void testAlf7421TimestampPropagation()
          Ensures that timestamp propagation can be successfully enabled.
ALF-7421
 void testCopy()
           
 void testCreateFile()
           
 void testCreateFolder()
           
 void testCreateInRoot()
           
 void testDeepFilesAndFoldersSearch()
           
 void testDeepFilesOnlySearch()
           
 void testETHREEOH_3088_MoveIntoSelf()
           
 void testGetByName()
          Ensure that an internal method is working - it gets used extensively by following tests
 void testGetLocalizedSibling()
           
 void testGetNamePath()
           
 void testGetNamePathDoesNotCrossIntoNonFileFolderHierarchy()
           
 void testGetNamePathDoesNotReturnPathContainingNonLeafFileNode()
           
 void testGetReaderWriter()
           
 void testGetType()
          Validates ACT-7225
 void testListPage()
           
 void testLongFileNames()
           
 void testMakeFolders()
           
 void testMakeFoldersShortNames()
          Lucene only indexes terms that are 3 characters or more
 void testMove()
           
 void testMovePermissions()
          ALF-7692
 void testPatterns()
           
 void testRenameDiscussionALF5569()
           
 void testRenameDuplicate()
           
 void testRenameNormal()
           
 void testRenameWithoutAssocQNameChange()
           
 void testResolveNamePath()
           
 void testSearchSimple()
           
 void testShallowFilesAndFoldersList()
           
 void testShallowFilesAndFoldersListWithLocale()
           
 void testShallowFileSearch()
           
 void testShallowFilesOnlyList()
           
 void testShallowFoldersOnlyList()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FileFolderServiceImplTest

public FileFolderServiceImplTest()
Method Detail

setUp

public void setUp()
           throws java.lang.Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

tearDown

public void tearDown()
              throws java.lang.Exception
Overrides:
tearDown in class junit.framework.TestCase
Throws:
java.lang.Exception

testShallowFilesAndFoldersList

public void testShallowFilesAndFoldersList()
                                    throws java.lang.Exception
Throws:
java.lang.Exception

testShallowFilesAndFoldersListWithLocale

public void testShallowFilesAndFoldersListWithLocale()
                                              throws java.lang.Exception
Throws:
java.lang.Exception

testListPage

public void testListPage()
                  throws java.lang.Exception
Throws:
java.lang.Exception

testShallowFilesOnlyList

public void testShallowFilesOnlyList()
                              throws java.lang.Exception
Throws:
java.lang.Exception

testShallowFoldersOnlyList

public void testShallowFoldersOnlyList()
                                throws java.lang.Exception
Throws:
java.lang.Exception

testShallowFileSearch

public void testShallowFileSearch()
                           throws java.lang.Exception
Throws:
java.lang.Exception

testDeepFilesAndFoldersSearch

public void testDeepFilesAndFoldersSearch()
                                   throws java.lang.Exception
Throws:
java.lang.Exception

testDeepFilesOnlySearch

public void testDeepFilesOnlySearch()
                             throws java.lang.Exception
Throws:
java.lang.Exception

testGetByName

public void testGetByName()
                   throws java.lang.Exception
Ensure that an internal method is working - it gets used extensively by following tests

Throws:
java.lang.Exception
See Also:
FileFolderServiceImplTest.getByName(String, boolean)

testRenameNormal

public void testRenameNormal()
                      throws java.lang.Exception
Throws:
java.lang.Exception

testRenameWithoutAssocQNameChange

public void testRenameWithoutAssocQNameChange()
                                       throws java.lang.Exception
Throws:
java.lang.Exception

testRenameDuplicate

public void testRenameDuplicate()
                         throws java.lang.Exception
Throws:
java.lang.Exception

testRenameDiscussionALF5569

public void testRenameDiscussionALF5569()
                                 throws java.lang.Exception
Throws:
java.lang.Exception

testMove

public void testMove()
              throws java.lang.Exception
Throws:
java.lang.Exception

testMovePermissions

public void testMovePermissions()
                         throws java.lang.Exception
ALF-7692

Throws:
java.lang.Exception

testCopy

public void testCopy()
              throws java.lang.Exception
Throws:
java.lang.Exception

testCreateFolder

public void testCreateFolder()
                      throws java.lang.Exception
Throws:
java.lang.Exception

testCreateFile

public void testCreateFile()
                    throws java.lang.Exception
Throws:
java.lang.Exception

testCreateInRoot

public void testCreateInRoot()
                      throws java.lang.Exception
Throws:
java.lang.Exception

testMakeFolders

public void testMakeFolders()
                     throws java.lang.Exception
Throws:
java.lang.Exception

testMakeFoldersShortNames

public void testMakeFoldersShortNames()
                               throws java.lang.Exception
Lucene only indexes terms that are 3 characters or more

Throws:
java.lang.Exception

testGetNamePath

public void testGetNamePath()
                     throws java.lang.Exception
Throws:
java.lang.Exception

testGetNamePathDoesNotReturnPathContainingNonLeafFileNode

public void testGetNamePathDoesNotReturnPathContainingNonLeafFileNode()
                                                               throws java.lang.Exception
Throws:
java.lang.Exception

testGetNamePathDoesNotCrossIntoNonFileFolderHierarchy

public void testGetNamePathDoesNotCrossIntoNonFileFolderHierarchy()
                                                           throws java.lang.Exception
Throws:
java.lang.Exception

testSearchSimple

public void testSearchSimple()
                      throws java.lang.Exception
Throws:
java.lang.Exception

testResolveNamePath

public void testResolveNamePath()
                         throws java.lang.Exception
Throws:
java.lang.Exception

testGetReaderWriter

public void testGetReaderWriter()
                         throws java.lang.Exception
Throws:
java.lang.Exception

testLongFileNames

public void testLongFileNames()
                       throws java.lang.Exception
Throws:
java.lang.Exception

testGetType

public void testGetType()
                 throws java.lang.Exception
Validates ACT-7225

Throws:
java.lang.Exception

testETHREEOH_3088_MoveIntoSelf

public void testETHREEOH_3088_MoveIntoSelf()
                                    throws java.lang.Exception
Throws:
java.lang.Exception

testAlf6560MimetypeSetting

public void testAlf6560MimetypeSetting()
                                throws java.lang.Exception
Throws:
java.lang.Exception

testGetLocalizedSibling

public void testGetLocalizedSibling()
                             throws java.lang.Exception
Throws:
java.lang.Exception

testAlf7421TimestampPropagation

public void testAlf7421TimestampPropagation()
                                     throws java.lang.Exception
Ensures that timestamp propagation can be successfully enabled.
ALF-7421

Throws:
java.lang.Exception

testPatterns

public void testPatterns()


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.