|
||||||||
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.TestMoveRename
public class TestMoveRename
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 | |
---|---|
TestMoveRename(String arg0)
Default JUnit constructor. |
Method Summary | |
---|---|
static junit.framework.Test |
suite()
Test suite for this test class. |
void |
testMoveDeleted()
Tests to move a folder with deleted subresources. |
void |
testMoveDeletedWithSubfolders()
Tests to move a folder with deleted sub-resources which are non-empty folders. |
void |
testMoveFolderToOwnSubfolder()
Tests to move a folder in its own subfolder. |
void |
testMoveSingleNewResource()
Tests the "move a single new resource" operation. |
void |
testMoveSingleResource()
Tests the "move single resource" operation. |
void |
testMoveSourceWithoutReadPermissions()
Tests to move a folder with no read permission on a source subresource. |
void |
testMoveSourceWithoutWritePermissions()
Tests to move a folder with no write permission on a source subresource. |
void |
testMoveTargetWithoutPermissions()
Tests to move a resource with no write permission on the destination folder. |
void |
testMoveToDeletedFolder()
Tests to move a file into an as deleted marked folder. |
void |
testMultipleMoveResource()
Tests a "multiple move" on a resource. |
void |
testOverwriteMovedResource()
Tests overwriting a moved resource. |
void |
testPermaLink()
Test the perma link. |
void |
testPublishDeletedFolderWithMovedResource()
Tests to publish a deleted folder with a unpublished moved resource. |
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 TestMoveRename(String arg0)
arg0
- JUnit parametersMethod Detail |
---|
public static junit.framework.Test suite()
public void testMoveDeleted() throws Exception
Exception
- if the test failspublic void testMoveDeletedWithSubfolders() throws Exception
Exception
- if the test failspublic void testMoveFolderToOwnSubfolder() throws Exception
Exception
- if the test failspublic void testMoveSingleNewResource() throws Throwable
Throwable
- if something goes wrongpublic void testMoveSingleResource() throws Throwable
Throwable
- if something goes wrongpublic void testMoveSourceWithoutReadPermissions() throws Exception
Exception
- if the test failspublic void testMoveSourceWithoutWritePermissions() throws Exception
Exception
- if the test failspublic void testMoveTargetWithoutPermissions() throws Exception
Exception
- if the test failspublic void testMoveToDeletedFolder() throws Exception
Exception
- if the test failspublic void testMultipleMoveResource() throws Throwable
Throwable
- if something goes wrongpublic void testOverwriteMovedResource() throws Exception
Exception
- if the test failspublic void testPermaLink() throws Throwable
Throwable
- if the test failspublic void testPublishDeletedFolderWithMovedResource() throws Exception
Exception
- if the test fails
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |