org.opencms.file
Class TestMoveRename2

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.opencms.test.OpenCmsTestCase
              extended by org.opencms.file.TestMoveRename2
All Implemented Interfaces:
junit.framework.Test

public class TestMoveRename2
extends OpenCmsTestCase

Unit tests for move/rename operation.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.opencms.test.OpenCmsTestCase
OpenCmsTestCase.ConnectionData
 
Field Summary
 
Fields inherited from class org.opencms.test.OpenCmsTestCase
ARTICLE_TYPEID, DB_MYSQL, DB_ORACLE, m_additionalConnection, m_configuration, m_currentResourceStrorage, m_defaultConnection, m_defaultTablespace, m_indexTablespace, m_resourceStorages, m_setupConnection, m_tempTablespace
 
Constructor Summary
TestMoveRename2(String arg0)
          Default JUnit constructor.
 
Method Summary
static junit.framework.Test suite()
          Test suite for this test class.
 void testMoveBigFolder()
          Tests to move a big folder.
 void testMoveFolderWithInvisibleResources()
          Tests to move a folder structure with invisible resources inside.
 void testMoveFolderWithNewResource()
          Tests renaming a folder containing a new resource.
 void testMoveFolderWithPermissionCheck()
          Tests to move a deep folder structure with real permission check.
 void testMoveLostAndFound()
          Tests the move to lost and found folder operation.
 void testMoveOverDeleted()
          Tests to move a file over a deleted one.
 void testMoveSibling()
          Tests moving a sibling.
 void testPublishMovedDeletedFolderWithMovedResource()
          Tests to publish a moved deleted folder with a unpublished moved resource.
 void testRenameFileUpperLowerCase()
          Tests renaming a file to the same name with a different case.
 void testRenameFolderUpperLowerCase()
          Tests renaming a folder to the same name with a different case.
 void testRenameNewFolder()
          Tests renaming a new folder with content.
 
Methods inherited from class org.opencms.test.OpenCmsTestCase
addTestDataPath, assertAce, assertAcl, assertAcl, assertContains, assertContainsNot, assertContent, assertDateContent, assertDateContentAfter, assertDateCreated, assertDateCreatedAfter, assertDateExpired, assertDateLastModified, assertDateLastModifiedAfter, assertDateReleased, assertEquals, assertEquals, assertEquals, assertFilter, assertFilter, assertFilter, assertFilter, assertFlags, assertHistory, assertHistoryForRestored, assertIsFolder, assertIsIdentical, assertIsNotIdentical, assertLock, assertLock, assertLock, assertModifiedInCurrentProject, assertPermissionString, assertProject, assertPropertyChanged, assertPropertyChanged, assertPropertydefinitionExist, assertPropertydefinitions, assertPropertyEqual, assertPropertyNew, assertPropertyNew, assertPropertyRemoved, assertPropertyRemoved, assertRelation, assertResourceId, assertResourceType, assertSiblingCount, assertSiblingCountIncremented, assertState, assertStructureId, assertType, assertUserCreated, assertUserLastModified, assertVersion, checkErrors, createStorage, deleteFile, echo, generateContent, generateContent, generateName, generateProperties, generateResources, generateSetupTestWrapper, generateUsers, getCmsObject, getConnectionName, getDatabaseProduct, getDbProduct, getPreCalculatedState, getReplacer, getSetupDataPath, getSetupDb, getTestDataPath, importData, importResources, importTestResource, initTestDataPath, removeDatabase, removeDatabase, removeOpenCms, removeStorage, resetMapping, restart, restartOpenCms, setMapping, setupDatabase, setupDatabase, setupOpenCms, setupOpenCms, setupOpenCms, setupOpenCms, setupOpenCms, storeResources, storeResources, switchStorage
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestMoveRename2

public TestMoveRename2(String arg0)
Default JUnit constructor.

Parameters:
arg0 - JUnit parameters
Method Detail

suite

public static junit.framework.Test suite()
Test suite for this test class.

Returns:
the test suite

testMoveBigFolder

public void testMoveBigFolder()
                       throws Exception
Tests to move a big folder.

Throws:
Exception - if the test fails

testMoveFolderWithInvisibleResources

public void testMoveFolderWithInvisibleResources()
                                          throws Exception
Tests to move a folder structure with invisible resources inside.

Throws:
Exception - if the test fails

testMoveFolderWithNewResource

public void testMoveFolderWithNewResource()
                                   throws Throwable
Tests renaming a folder containing a new resource.

Throws:
Throwable - if something goes wrong

testMoveFolderWithPermissionCheck

public void testMoveFolderWithPermissionCheck()
                                       throws Exception
Tests to move a deep folder structure with real permission check.

Throws:
Exception - if the test fails

testMoveLostAndFound

public void testMoveLostAndFound()
                          throws Exception
Tests the move to lost and found folder operation.

Throws:
Exception - if the test fails

testMoveOverDeleted

public void testMoveOverDeleted()
                         throws Exception
Tests to move a file over a deleted one.

Throws:
Exception - if the test fails

testMoveSibling

public void testMoveSibling()
                     throws Exception
Tests moving a sibling.

Throws:
Exception - if the test fails

testPublishMovedDeletedFolderWithMovedResource

public void testPublishMovedDeletedFolderWithMovedResource()
                                                    throws Exception
Tests to publish a moved deleted folder with a unpublished moved resource.

Throws:
Exception - if the test fails

testRenameFileUpperLowerCase

public void testRenameFileUpperLowerCase()
                                  throws Exception
Tests renaming a file to the same name with a different case.

Throws:
Exception - if the test fails

testRenameFolderUpperLowerCase

public void testRenameFolderUpperLowerCase()
                                    throws Exception
Tests renaming a folder to the same name with a different case.

Throws:
Exception - if the test fails

testRenameNewFolder

public void testRenameNewFolder()
                         throws Throwable
Tests renaming a new folder with content.

Throws:
Throwable - if something goes wrong