|
||||||||
| 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.xml.content.TestCmsXmlContentLinks
public class TestCmsXmlContentLinks
Tests the OpenCms XML contents with real VFS operations.
| 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 | |
|---|---|
TestCmsXmlContentLinks(String arg0)
Default JUnit constructor. |
|
| Method Summary | |
|---|---|
static void |
assertLink(CmsLink expected,
CmsLink result,
boolean assertStructureId)
Compares two link objects. |
static CmsLink |
getHtmlLink(CmsObject cms,
CmsXmlContent xmlcontent,
String nodeName,
String linkName)
Returns the unique link for the given html node in the given xml content. |
static CmsLink |
getVfsFileRefLink(CmsObject cms,
CmsXmlContent xmlcontent,
String nodeName)
Returns the link for the given vfs file reference node in the given xml content. |
protected static void |
initSchemas()
Initializes all schema definitions. |
static junit.framework.Test |
suite()
Test suite for this test class. |
void |
testInvalidateFalse()
Test the option to do not invalidate a broken link node. |
void |
testRelationType()
Test the relation type configuration in xml content. |
void |
testRemoveNode()
Test removing the node of a broken link. |
void |
testRemoveParent()
Test removing the parent node of a broken link. |
void |
testUpdateId()
Test updating the id of a moved resource in a broken link. |
void |
testUpdatePath()
Test updating the path of a moved resource in a broken link. |
| 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 TestCmsXmlContentLinks(String arg0)
arg0 - JUnit parameters| Method Detail |
|---|
public static void assertLink(CmsLink expected,
CmsLink result,
boolean assertStructureId)
expected - the expected link objectresult - the resulting link objectassertStructureId - if the structure id should be asserted or not
public static CmsLink getHtmlLink(CmsObject cms,
CmsXmlContent xmlcontent,
String nodeName,
String linkName)
cms - the cms contextxmlcontent - the xml contentnodeName - the html node namelinkName - the name of the link
public static CmsLink getVfsFileRefLink(CmsObject cms,
CmsXmlContent xmlcontent,
String nodeName)
cms - the cms contextxmlcontent - the xml contentnodeName - the vfs file reference node name
public static junit.framework.Test suite()
protected static void initSchemas()
throws IOException
IOException - if something goes wrong
public void testRemoveNode()
throws Exception
Exception - in case something goes wrong
public void testRemoveParent()
throws Exception
Exception - in case something goes wrong
public void testUpdateId()
throws Exception
Exception - in case something goes wrong
public void testUpdatePath()
throws Exception
Exception - in case something goes wrong
public void testRelationType()
throws Exception
Exception - in case something goes wrong
public void testInvalidateFalse()
throws Exception
Exception - in case something goes wrong
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||