|
||||||||
| 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.TestSiblings
public class TestSiblings
Unit test for operations on siblings.
| 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 | |
|---|---|
TestSiblings(String arg0)
Default JUnit constructor. |
|
| Method Summary | |
|---|---|
static void |
copyResourceAsSibling(OpenCmsTestCase tc,
CmsObject cms,
String source,
String target)
Creates a copy of a resource as a new sibling. |
static void |
createSibling(OpenCmsTestCase tc,
CmsObject cms,
String source,
String target)
Creates a new sibling of a resource. |
static junit.framework.Test |
suite()
Test suite for this test class. |
void |
testDeleteAllSiblings()
Tests deletion of a resource together with all siblings. |
void |
testSiblingIssueAfterImport()
Error scenario where an import is deleted that contains siblings inside the same folders. |
void |
testSiblingProjects()
Tests the "project last modified" state with sibling operations across different projects. |
void |
testSiblingsCopy()
Tests the "copy as new sibling" function. |
void |
testSiblingsCreate()
Tests the "copy as new sibling" function. |
void |
testSiblingsCreateIssue()
Tests creating 2 new siblings and publishing just one of them. |
void |
testSiblingsNewDeletePublishIssue()
Tests an issue, where there is an error in OpenCms V7 when publishing two siblings of the same resource. |
void |
testSiblingsRelations()
Tests the link management features with siblings. |
void |
testSiblingStateIssue()
Tests if setting the flags of a sibling will do any modifications to other siblings. |
void |
testSiblingsV7PublishIssue()
Tests an issue present in OpenCms 7 where online content was not replaced after publish. |
| 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 TestSiblings(String arg0)
arg0 - JUnit parameters| Method Detail |
|---|
public static void copyResourceAsSibling(OpenCmsTestCase tc,
CmsObject cms,
String source,
String target)
throws Exception
tc - the OpenCms test casecms - the current user's Cms objectsource - path/resource name of the existing resourcetarget - path/resource name of the new sibling
Exception - if something goes wrong
public static void createSibling(OpenCmsTestCase tc,
CmsObject cms,
String source,
String target)
throws Exception
tc - the OpenCms test casecms - the current user's Cms objectsource - path/resource name of the existing resourcetarget - path/resource name of the new sibling
Exception - if something goes wrongpublic static junit.framework.Test suite()
public void testDeleteAllSiblings()
throws Throwable
Throwable - if something goes wrong
public void testSiblingIssueAfterImport()
throws Exception
Exception - if something goes wrong
public void testSiblingProjects()
throws Throwable
Throwable - if something goes wrong
public void testSiblingsCopy()
throws Throwable
Throwable - if something goes wrong
public void testSiblingsCreate()
throws Throwable
Throwable - if something goes wrong
public void testSiblingsCreateIssue()
throws Throwable
Throwable - if something goes wrong
public void testSiblingsNewDeletePublishIssue()
throws Exception
Exception - if the test fails
public void testSiblingsRelations()
throws Throwable
Throwable - if something goes wrong
public void testSiblingStateIssue()
throws Throwable
Throwable - if something goes wrong
public void testSiblingsV7PublishIssue()
throws Exception
Exception - if the test fails
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||