org.alfresco.repo.copy
Class CopyServiceImplTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.alfresco.repo.copy.CopyServiceImplTest
All Implemented Interfaces:
junit.framework.Test

public class CopyServiceImplTest
extends junit.framework.TestCase

Unit tests for copy service


Constructor Summary
CopyServiceImplTest()
           
 
Method Summary
protected  void setUp()
           
protected  void tearDown()
           
 void testCopiedFromAspect_NonObject()
          Test the behaviour of the aspect when copying types not derived from cm:object
 void testCopiedFromAspect()
           
 void testCopyAndRename()
           
 void testCopyMLText()
          https://issues.alfresco.com/jira/browse/ALF-3119 Test copying of MLText values.
 void testCopyNodeWithRules()
           
 void testCopyResidualProperties()
           
 void testCopyToExistingNode()
           
 void testCopyToNewNode()
          Test copy new node within store
 void testCopyToNewNodeWithPermissions()
           
 void testCopyUserPermissions()
          Creates some content as one user, then as another checks: * If you don't have read permissions to the source you can't copy * If you don't have write permissions to the target you can't copy * If you do, you can copy just fine
 void testETWOONE_244()
          https://issues.alfresco.com/jira/browse/ETWOONE-224
 void testRecursiveCopy()
          Test a potentially recursive copy
 void testRelativeLinks()
          Test that realtive links between nodes are restored once the copy is completed
 
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

CopyServiceImplTest

public CopyServiceImplTest()
Method Detail

setUp

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

tearDown

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

testCopyToNewNodeWithPermissions

public void testCopyToNewNodeWithPermissions()

testCopyToNewNode

public void testCopyToNewNode()
Test copy new node within store


testCopiedFromAspect

public void testCopiedFromAspect()

testCopiedFromAspect_NonObject

public void testCopiedFromAspect_NonObject()
Test the behaviour of the aspect when copying types not derived from cm:object


testCopyNodeWithRules

public void testCopyNodeWithRules()

testCopyToExistingNode

public void testCopyToExistingNode()

testRecursiveCopy

public void testRecursiveCopy()
Test a potentially recursive copy


testCopyResidualProperties

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

testRelativeLinks

public void testRelativeLinks()
Test that realtive links between nodes are restored once the copy is completed


testCopyAndRename

public void testCopyAndRename()

testETWOONE_244

public void testETWOONE_244()
https://issues.alfresco.com/jira/browse/ETWOONE-224


testCopyMLText

public void testCopyMLText()
https://issues.alfresco.com/jira/browse/ALF-3119 Test copying of MLText values.


testCopyUserPermissions

public void testCopyUserPermissions()
                             throws java.lang.Exception
Creates some content as one user, then as another checks: * If you don't have read permissions to the source you can't copy * If you don't have write permissions to the target you can't copy * If you do, you can copy just fine

Throws:
java.lang.Exception


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