org.alfresco.repo.avm
Class AVMServiceTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.alfresco.repo.avm.AVMServiceTestBase
              extended by org.alfresco.repo.avm.AVMServiceTest
All Implemented Interfaces:
junit.framework.Test

public class AVMServiceTest
extends AVMServiceTestBase

Big test of AVM behavior.


Field Summary
 
Fields inherited from class org.alfresco.repo.avm.AVMServiceTestBase
fAuthenticationComponent, fAuthService, fContext, fIndexerAndSearcher, fIndexingInterceptor, fLockingService, fReaper, fRetryingTransactionHelper, fService, fSyncService, fTransactionService
 
Constructor Summary
AVMServiceTest()
           
 
Method Summary
protected  void runQueriesAgainstBasicTreePlusFileCopy(java.lang.String store)
           
protected  void runQueriesAgainstBasicTreePlusFileCopyAndDirectoryCopy(java.lang.String store)
           
protected  void runQueriesForCreateAndDeploy(java.lang.String store)
          Test Deployment.
protected  void runQueriesForInitialRenameStructure(java.lang.String store)
           
protected  void runQueriesForInitialRenameStructureAndInitialLayers(java.lang.String store)
           
protected  void runQueriesForRemoveAndDelpoy(java.lang.String store)
           
protected  void runQueriesForRemoveFileAndCreateDirectoryAndDeploy(java.lang.String store)
           
 void test_ETWOTWO_570()
           
 void test_WCM_949()
           
 void testACLs()
          Test ACLs.
 void testAnotherRename()
          Yet another rename from layer to layer test.
 void testAspectNames()
          Test Aspect Name storage.
 void testAVMStore()
          Test AVMStore functions.
 void testBranchAcross()
          Test branching from one AVMStore to another.
 void testBranchAndLayer()
          Test branching and layering interaction.
 void testBranchesInBranches()
          Test branching within branches.
 void testBranchIntoLayer()
          Test a branch being created in a layer.
 void testBranchLayerSnapshot()
           
 void testBranchSnapshot()
          Test that branching forces a snapshot on the source repository.
 void testCaseInsensitive()
          Test case insensitivity.
 void testCircularLayering()
          Test cyclic behaviour (when creating layered directories)
 void testCommonAncestor()
          Test common ancestor.
 void testCopy_ALF_835()
           
 void testCopy()
          Test copy.
 void testCOWLongOps()
          Test COW during long operations.
 void testCreateBranch()
          Test creating a branch.
 void testCreateDirectory()
          Test making a simple directory.
 void testCreateFile()
          Test creating a file.
 void testCreateLayer()
          Test creating a layer.
 void testCreateOverDeleted()
          Test creating a file over a ghost.
 void testDeepCOW()
          Test COW in various circumstances.
 void testDeleted()
          Test lookup and listing of deleted files.
 void testDescriptorIndirection()
          Test of Descriptor indirection field.
 void testDiffOrder()
           
 void testFileFolderService()
          Test FileFolderService with AVM.
 void testFileRenameLayer()
          Test rename behavior of an overlayed file withing a layer.
 void testForceCopyDeleted()
           
 void testGetDeleted()
          Test getting deleted names.
 void testGetIndirection()
          Test getIndirection.
 void testGetPaths()
          Test getting all paths for a node.
 void testGetStoreVersionRootPaths()
          Test getStoreVersionRootPaths().
 void testGoofyPaths()
          Test goofy paths.
 void testGuids()
          Test of GUIDs on AVM Nodes.
 void testHeadPathsInLayers()
           
 void testHistoryRelink()
          Test relinking of nodes to history.
 void testIndirectionBehavior()
          Test proper indirection behavior.
 void testLayerAcross()
          Test creating a layer across AVMStores.
 void testLayerAndBranch()
          Test behavior when one branches a layer.
 void testLayeredFile1()
          Test creating a layered file.
 void testLayeredFile2()
           
 void testLayeredFile3()
           
 void testLayeredFile4()
           
 void testLayering()
          Test basic Layering.
 void testLayeringInfo()
          Test layering info.
 void testLayersInLayers()
          Test layers inside of layers.
 void testLayerSnapshots()
           
 void testLink()
          Test link AVMService call.
 void testListingDirect()
          Test directly contained listing.
 void testLookup()
          Test new lookup methods.
 void testMakePrimary()
          Test makePrimary.
 void testMultiLayerUnregistered()
          Test behavior of multiply layers not in register.
 void testNothing()
          Test Nothing.
 void testOneArgRemove()
          Test one argument remove.
 void testOpacity()
          Test opacity and manipulations.
 void testOverwrite()
          Test overwriting without snapshots in between.
 void testPathEncoding()
           
 void testPromoteAction()
          Deprecated.  
 void testProperties()
          Test (node) properties.
 void testRemove()
          Test remove.
 void testRename()
          Test rename.
 void testRenameAcross()
          Test rename across AVMStores.
 void testRenameBranchToBranch()
          Test rename between branches.
 void testRenameInLayer()
          Test rename within a layer.
 void testRenameIntoLayer()
          Test renaming into a layer.
 void testRenameLayer2()
          Another test of renaming in a layer.
 void testRenameLayer3()
          Yet another test around rename in layers.
 void testRenameLayer4()
          Another test of renaming in a layer.
 void testRenameLayerInLayer()
          Test rename of an overlayed directory contained in an overlayed directory.
 void testRenameLayerToLayer()
          Test scenario in which something is renamed from inside one independent layer to another.
 void testRenameStore()
          Test renaming a store.
 void testRetarget()
          Test retargeting a directory.
 void testRevertListAction()
          Deprecated.  
 void testRevertStoreAction()
          Deprecated. see org.alfresco.wcm.actions.WCMSandboxRevertSnapshotAction or org.alfresco.wcm.SandboxService.revertSnapshot
 void testRevertToVersionAction()
          Test the revert to version action.
 void testSetup()
           
 void testSetupAndQueriesAgainstBasicTree()
           
 void testSpacesInStoreNames()
           
 void testStoreProperties()
          Test properties on stores.
 void testStorePropertyQuerying()
          Test Store property querying.
 void testSubmitAction()
          Deprecated. see org.alfresco.wcm.actions.WCMSandboxSubmitAction or org.alfesco.wcm.SandboxService.submit
 void testUncover()
          Test the uncover operation.
 void testUndoListAction()
          Deprecated. see org.alfresco.wcm.actions.WCMSandboxUndoAction or org.alfresco.wcm.SandboxService.revertList
 void testVersionByDate()
          Test version by date lookup.
 void testVersionedRead()
          Test reading of versioned content via a layer.
 void testVersionedRead2()
           
 void testVersionNumbering()
          Test version numbering.
 void testVersionUpdate()
          Test that non head version sources are update correctly.
 
Methods inherited from class org.alfresco.repo.avm.AVMServiceTestBase
checkHistory, recursiveContents, recursiveList, recursiveList, runQueriesAgainstBasicTree, runQueriesAgainstBasicTreeWithAOnly, setUp, setupBasicTree, setupBasicTree0, tearDown
 
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

AVMServiceTest

public AVMServiceTest()
Method Detail

testSetup

public void testSetup()
               throws java.lang.Exception
Overrides:
testSetup in class AVMServiceTestBase
Throws:
java.lang.Exception

testSetupAndQueriesAgainstBasicTree

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

testDiffOrder

public void testDiffOrder()
                   throws java.io.IOException
Throws:
java.io.IOException

test_ETWOTWO_570

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

test_WCM_949

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

testPathEncoding

public void testPathEncoding()
                      throws java.lang.Throwable
Throws:
java.lang.Throwable

testSpacesInStoreNames

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

testHeadPathsInLayers

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

testVersionByDate

public void testVersionByDate()
                       throws java.lang.Exception
Test version by date lookup.

Throws:
java.lang.Exception

testProperties

public void testProperties()
                    throws java.lang.Exception
Test (node) properties.

Throws:
java.lang.Exception

testGetStoreVersionRootPaths

public void testGetStoreVersionRootPaths()
                                  throws java.lang.Exception
Test getStoreVersionRootPaths().

Throws:
java.lang.Exception

testForceCopyDeleted

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

testLayerSnapshots

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

testBranchLayerSnapshot

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

runQueriesForCreateAndDeploy

protected void runQueriesForCreateAndDeploy(java.lang.String store)
                                     throws java.lang.Exception
Test Deployment.

Throws:
java.lang.Exception

runQueriesForRemoveAndDelpoy

protected void runQueriesForRemoveAndDelpoy(java.lang.String store)

runQueriesForRemoveFileAndCreateDirectoryAndDeploy

protected void runQueriesForRemoveFileAndCreateDirectoryAndDeploy(java.lang.String store)

testGuids

public void testGuids()
               throws java.lang.Exception
Test of GUIDs on AVM Nodes.

Throws:
java.lang.Exception

testRevertToVersionAction

public void testRevertToVersionAction()
                               throws java.lang.Exception
Test the revert to version action.

Throws:
java.lang.Exception

testVersionNumbering

public void testVersionNumbering()
                          throws java.lang.Exception
Test version numbering.

Throws:
java.lang.Exception

testHistoryRelink

public void testHistoryRelink()
                       throws java.lang.Exception
Test relinking of nodes to history.

Throws:
java.lang.Exception

testRenameStore

public void testRenameStore()
                     throws java.lang.Exception
Test renaming a store.

Throws:
java.lang.Exception

testCopy

public void testCopy()
              throws java.lang.Exception
Test copy.

Throws:
java.lang.Exception

testCopy_ALF_835

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

runQueriesAgainstBasicTreePlusFileCopy

protected void runQueriesAgainstBasicTreePlusFileCopy(java.lang.String store)

runQueriesAgainstBasicTreePlusFileCopyAndDirectoryCopy

protected void runQueriesAgainstBasicTreePlusFileCopyAndDirectoryCopy(java.lang.String store)

testCircularLayering

public void testCircularLayering()
                          throws java.lang.Exception
Test cyclic behaviour (when creating layered directories)

Throws:
java.lang.Exception

testGetPaths

public void testGetPaths()
                  throws java.lang.Exception
Test getting all paths for a node.

Throws:
java.lang.Exception

testGetIndirection

public void testGetIndirection()
                        throws java.lang.Exception
Test getIndirection.

Throws:
java.lang.Exception

testRevertListAction

public void testRevertListAction()
                          throws java.lang.Exception
Deprecated. 

Test the revert list action.

Throws:
java.lang.Exception

testRevertStoreAction

public void testRevertStoreAction()
                           throws java.lang.Exception
Deprecated. see org.alfresco.wcm.actions.WCMSandboxRevertSnapshotAction or org.alfresco.wcm.SandboxService.revertSnapshot

Test the revert store action.

Throws:
java.lang.Exception

testUndoListAction

public void testUndoListAction()
                        throws java.lang.Exception
Deprecated. see org.alfresco.wcm.actions.WCMSandboxUndoAction or org.alfresco.wcm.SandboxService.revertList

Test the undo list action.

Throws:
java.lang.Exception

testPromoteAction

public void testPromoteAction()
                       throws java.lang.Exception
Deprecated. 

Test the promote action.

Throws:
java.lang.Exception

testSubmitAction

public void testSubmitAction()
                      throws java.lang.Exception
Deprecated. see org.alfresco.wcm.actions.WCMSandboxSubmitAction or org.alfesco.wcm.SandboxService.submit

Test the SimpleAVMSubmitAction.

Throws:
java.lang.Exception

testOneArgRemove

public void testOneArgRemove()
                      throws java.lang.Exception
Test one argument remove.

Throws:
java.lang.Exception

testVersionUpdate

public void testVersionUpdate()
                       throws java.lang.Exception
Test that non head version sources are update correctly.

Throws:
java.lang.Exception

testBranchSnapshot

public void testBranchSnapshot()
                        throws java.lang.Exception
Test that branching forces a snapshot on the source repository.

Throws:
java.lang.Exception

testDescriptorIndirection

public void testDescriptorIndirection()
                               throws java.lang.Exception
Test of Descriptor indirection field.

Throws:
java.lang.Exception

testLink

public void testLink()
              throws java.lang.Exception
Test link AVMService call.

Throws:
java.lang.Exception

testGoofyPaths

public void testGoofyPaths()
                    throws java.lang.Exception
Test goofy paths.

Throws:
java.lang.Exception

testGetDeleted

public void testGetDeleted()
                    throws java.lang.Exception
Test getting deleted names.

Throws:
java.lang.Exception

testListingDirect

public void testListingDirect()
                       throws java.lang.Exception
Test directly contained listing.

Throws:
java.lang.Exception

testLayeringInfo

public void testLayeringInfo()
                      throws java.lang.Exception
Test layering info.

Throws:
java.lang.Exception

testRenameLayer2

public void testRenameLayer2()
                      throws java.lang.Exception
Another test of renaming in a layer.

Throws:
java.lang.Exception

testRenameLayer3

public void testRenameLayer3()
                      throws java.lang.Exception
Yet another test around rename in layers.

Throws:
java.lang.Exception

testUncover

public void testUncover()
                 throws java.lang.Exception
Test the uncover operation.

Throws:
java.lang.Exception

testRenameLayer4

public void testRenameLayer4()
                      throws java.lang.Exception
Another test of renaming in a layer.

Throws:
java.lang.Exception

testBranchesInBranches

public void testBranchesInBranches()
                            throws java.lang.Exception
Test branching within branches.

Throws:
java.lang.Exception

testLayersInLayers

public void testLayersInLayers()
                        throws java.lang.Exception
Test layers inside of layers.

Throws:
java.lang.Exception

testLayerAndBranch

public void testLayerAndBranch()
                        throws java.lang.Exception
Test behavior when one branches a layer.

Throws:
java.lang.Exception

testRenameLayerToLayer

public void testRenameLayerToLayer()
                            throws java.lang.Exception
Test scenario in which something is renamed from inside one independent layer to another.

Throws:
java.lang.Exception

testNothing

public void testNothing()
                 throws java.lang.Exception
Test Nothing. Just make sure set up works.

Throws:
java.lang.Exception

testCreateDirectory

public void testCreateDirectory()
                         throws java.lang.Exception
Test making a simple directory.

Throws:
java.lang.Exception

testCreateFile

public void testCreateFile()
                    throws java.lang.Exception
Test creating a file.

Throws:
java.lang.Exception

testCreateBranch

public void testCreateBranch()
                      throws java.lang.Exception
Test creating a branch.

Throws:
java.lang.Exception

testCreateLayer

public void testCreateLayer()
                     throws java.lang.Exception
Test creating a layer.

Throws:
java.lang.Exception

testLayeredFile1

public void testLayeredFile1()
                      throws java.lang.Exception
Test creating a layered file.

Throws:
java.lang.Exception

testLayeredFile2

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

testLayeredFile3

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

testLayeredFile4

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

testRename

public void testRename()
                throws java.lang.Exception
Test rename.

Throws:
java.lang.Exception

testRemove

public void testRemove()
                throws java.lang.Exception
Test remove.

Throws:
java.lang.Exception

testBranchAcross

public void testBranchAcross()
                      throws java.lang.Exception
Test branching from one AVMStore to another.

Throws:
java.lang.Exception

testLayerAcross

public void testLayerAcross()
                     throws java.lang.Exception
Test creating a layer across AVMStores.

Throws:
java.lang.Exception

testRenameAcross

public void testRenameAcross()
                      throws java.lang.Exception
Test rename across AVMStores.

Throws:
java.lang.Exception

testDeepCOW

public void testDeepCOW()
                 throws java.lang.Exception
Test COW in various circumstances.

Throws:
java.lang.Exception

testBranchAndLayer

public void testBranchAndLayer()
                        throws java.lang.Exception
Test branching and layering interaction.

Throws:
java.lang.Exception

testLayering

public void testLayering()
                  throws java.lang.Exception
Test basic Layering.

Throws:
java.lang.Exception

testRenameInLayer

public void testRenameInLayer()
                       throws java.lang.Exception
Test rename within a layer.

Throws:
java.lang.Exception

testMultiLayerUnregistered

public void testMultiLayerUnregistered()
                                throws java.lang.Exception
Test behavior of multiply layers not in register.

Throws:
java.lang.Exception

testMakePrimary

public void testMakePrimary()
                     throws java.lang.Exception
Test makePrimary.

Throws:
java.lang.Exception

testRetarget

public void testRetarget()
                  throws java.lang.Exception
Test retargeting a directory.

Throws:
java.lang.Exception

testRenameBranchToBranch

public void testRenameBranchToBranch()
                              throws java.lang.Exception
Test rename between branches.

Throws:
java.lang.Exception

testBranchIntoLayer

public void testBranchIntoLayer()
                         throws java.lang.Exception
Test a branch being created in a layer.

Throws:
java.lang.Exception

testRenameIntoLayer

public void testRenameIntoLayer()
                         throws java.lang.Exception
Test renaming into a layer.

Throws:
java.lang.Exception

testIndirectionBehavior

public void testIndirectionBehavior()
                             throws java.lang.Exception
Test proper indirection behavior.

Throws:
java.lang.Exception

testVersionedRead

public void testVersionedRead()
                       throws java.lang.Exception
Test reading of versioned content via a layer.

Throws:
java.lang.Exception

testVersionedRead2

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

testRenameLayerInLayer

public void testRenameLayerInLayer()
                            throws java.lang.Exception
Test rename of an overlayed directory contained in an overlayed directory.

Throws:
java.lang.Exception

testAnotherRename

public void testAnotherRename()
                       throws java.lang.Exception
Yet another rename from layer to layer test.

Throws:
java.lang.Exception

runQueriesForInitialRenameStructure

protected void runQueriesForInitialRenameStructure(java.lang.String store)
                                            throws java.lang.Exception
Throws:
java.lang.Exception

runQueriesForInitialRenameStructureAndInitialLayers

protected void runQueriesForInitialRenameStructureAndInitialLayers(java.lang.String store)

testFileRenameLayer

public void testFileRenameLayer()
                         throws java.lang.Exception
Test rename behavior of an overlayed file withing a layer.

Throws:
java.lang.Exception

testCOWLongOps

public void testCOWLongOps()
                    throws java.lang.Exception
Test COW during long operations.

Throws:
java.lang.Exception

testLookup

public void testLookup()
                throws java.lang.Exception
Test new lookup methods.

Throws:
java.lang.Exception

testAVMStore

public void testAVMStore()
                  throws java.lang.Exception
Test AVMStore functions.

Throws:
java.lang.Exception

testOpacity

public void testOpacity()
                 throws java.lang.Exception
Test opacity and manipulations.

Throws:
java.lang.Exception

testCommonAncestor

public void testCommonAncestor()
                        throws java.lang.Exception
Test common ancestor.

Throws:
java.lang.Exception

testStoreProperties

public void testStoreProperties()
                         throws java.lang.Exception
Test properties on stores.

Throws:
java.lang.Exception

testAspectNames

public void testAspectNames()
                     throws java.lang.Exception
Test Aspect Name storage.

Throws:
java.lang.Exception

testCaseInsensitive

public void testCaseInsensitive()
                         throws java.lang.Exception
Test case insensitivity.

Throws:
java.lang.Exception

testACLs

public void testACLs()
              throws java.lang.Exception
Test ACLs.

Throws:
java.lang.Exception

testFileFolderService

public void testFileFolderService()
                           throws java.lang.Exception
Test FileFolderService with AVM.

Throws:
java.lang.Exception

testOverwrite

public void testOverwrite()
                   throws java.lang.Exception
Test overwriting without snapshots in between.

Throws:
java.lang.Exception

testCreateOverDeleted

public void testCreateOverDeleted()
                           throws java.lang.Exception
Test creating a file over a ghost.

Throws:
java.lang.Exception

testDeleted

public void testDeleted()
                 throws java.lang.Exception
Test lookup and listing of deleted files.

Throws:
java.lang.Exception

testStorePropertyQuerying

public void testStorePropertyQuerying()
                               throws java.lang.Exception
Test Store property querying.

Throws:
java.lang.Exception


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