|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.opencms.test.OpenCmsTestCase
org.opencms.file.TestUndoChanges
public class TestUndoChanges
Unit test for the "undoChanges" method of the CmsObject.
| 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 | |
|---|---|
TestUndoChanges(String arg0)
Default JUnit constructor. |
|
| Method Summary | |
|---|---|
static junit.framework.Test |
suite()
Test suite for this test class. |
void |
testUndoChangesAfterCopyNewOverDeleted()
Tests undo changes after a resource was deleted and another resource was copied over the deleted file "as new". |
void |
testUndoChangesAfterCopySiblingOverDeleted()
Tests undo changes after a resource was deleted and another resource was copied over the deleted file "as sibling". |
void |
testUndoChangesFolder()
Test undoChanges method to a single folder. |
void |
testUndoChangesFolderRecursive()
Test undoChanges method to a single folder. |
void |
testUndoChangesMove()
Tests undo changes for the move operation only. |
void |
testUndoChangesMoveContent()
Tests undo changes for the content changes only. |
void |
testUndoChangesMovedFileAfterEdit()
Tests undo changes after a file was moved and edited. |
void |
testUndoChangesMovedFolder()
Tests undo changes after a folder was moved. |
void |
testUndoChangesMovedFolderAfterEdit()
Tests undo changes after a folder was moved and a file in the folder edited. |
void |
testUndoChangesMovedFolderNewFile()
Tests undo changes after a folder was moved and a file in the folder edited. |
void |
testUndoChangesOnNewResource()
Tests undo changes on a new resource, this must lead to an exception! |
void |
testUndoChangesResource()
Test undoChanges method to a single file. |
void |
testUndoChangesScenario1()
Tests undo changes of move operations as follows: |
void |
testUndoChangesSeveralMovedFolder()
Tests undo changes after a folder was moved several times. |
void |
testUndoChangesSharedProperty()
Test undoChanges method to a resource with an ace. |
void |
testUndoChangesSubfolderAfterMoving()
Test undoChanges method to a sub folder after moving a whole folder. |
void |
testUndoChangesWithAce()
Test undoChanges method to a resource with an ace. |
static void |
undoChanges(OpenCmsTestCase tc,
CmsObject cms,
String resource1)
Test the touch method to touch a single resource. |
static void |
undoChangesFolder(OpenCmsTestCase tc,
CmsObject cms,
String resource1)
Test undoChanges method to a single folder. |
static void |
undoChangesFolderRecursive(OpenCmsTestCase tc,
CmsObject cms,
String resource1)
Test undoChanges method to a single folder and all resources within the folder. |
| 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 |
|---|
public TestUndoChanges(String arg0)
arg0 - JUnit parameters| Method Detail |
|---|
public static junit.framework.Test suite()
public static void undoChanges(OpenCmsTestCase tc,
CmsObject cms,
String resource1)
throws Throwable
tc - the OpenCmsTestCasecms - the CmsObjectresource1 - the resource to touch
Throwable - if something goes wrong
public static void undoChangesFolder(OpenCmsTestCase tc,
CmsObject cms,
String resource1)
throws Throwable
tc - the OpenCmsTestCasecms - the CmsObjectresource1 - the resource to touch
Throwable - if something goes wrong
public static void undoChangesFolderRecursive(OpenCmsTestCase tc,
CmsObject cms,
String resource1)
throws Throwable
tc - the OpenCmsTestCasecms - the CmsObjectresource1 - the resource to touch
Throwable - if something goes wrong
public void testUndoChangesAfterCopyNewOverDeleted()
throws Throwable
Throwable - if something goes wrong
public void testUndoChangesScenario1()
throws Throwable
having following start structure: - (black) /folder - (black) /folder/subfolder - (black) /folder/subfolder/subsubfolder a. move /folder/subfolder to /subfolder b. move /subfolder/subsubfolder to /subsubfolder c. move /subfolder back to its starting location: /folder/subfolder d. undo changes of move operation for /subsubfolder to get following scenario: - (black) /folder - (red) /folder/subfolder - (black) /folder/subfolder/subsubfolder e. undo changes of move operation for /folder/subfolder
Throwable - if something goes wrong
public void testUndoChangesAfterCopySiblingOverDeleted()
throws Throwable
Throwable - if something goes wrong
public void testUndoChangesFolder()
throws Throwable
Throwable - if something goes wrong
public void testUndoChangesFolderRecursive()
throws Throwable
Throwable - if something goes wrong
public void testUndoChangesMove()
throws Throwable
Throwable - if something goes wrong
public void testUndoChangesMoveContent()
throws Throwable
Throwable - if something goes wrong
public void testUndoChangesMovedFileAfterEdit()
throws Throwable
Throwable - if something goes wrong
public void testUndoChangesMovedFolder()
throws Throwable
Throwable - if something goes wrong
public void testUndoChangesMovedFolderAfterEdit()
throws Throwable
Throwable - if something goes wrong
public void testUndoChangesMovedFolderNewFile()
throws Throwable
Throwable - if something goes wrong
public void testUndoChangesOnNewResource()
throws Throwable
Throwable - if something goes wrong
public void testUndoChangesResource()
throws Throwable
Throwable - if something goes wrong
public void testUndoChangesSeveralMovedFolder()
throws Throwable
Throwable - if something goes wrong
public void testUndoChangesSharedProperty()
throws Throwable
Throwable - if something goes wrong
public void testUndoChangesSubfolderAfterMoving()
throws Throwable
Throwable - if something goes wrong
public void testUndoChangesWithAce()
throws Throwable
Throwable - if something goes wrong
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||