|
||||||||
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.page.TestCmsXmlPageInSystem
public class TestCmsXmlPageInSystem
Tests for the XML page that require a running OpenCms system.
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 | |
---|---|
TestCmsXmlPageInSystem(String arg0)
Default JUnit constructor. |
Method Summary | |
---|---|
static junit.framework.Test |
suite()
Test suite for this test class. |
void |
testAnchorLink()
Tests the usage of an anchor link. |
void |
testCommentInSource()
Tests comments in the page HTML source code. |
void |
testLinkParameterIssue()
Tests link issue with certain parameters. |
void |
testLinkReplacement()
Tests XML link replacement. |
void |
testLinksWithSpecialChars()
Testing pages with international chars in link parameters. |
void |
testMalformedPage()
Test malformed page structures. |
void |
testSchemaCachePublishIssue()
Test the schema cache publish issue. |
void |
testXmlPageCreate()
Tests creating a XMl page with the API. |
void |
testXmlPageRenameElement()
Tests accessing element names in the XML page. |
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 TestCmsXmlPageInSystem(String arg0)
arg0
- JUnit parametersMethod Detail |
---|
public static junit.framework.Test suite()
public void testCommentInSource() throws Exception
Exception
- if something goes wrongpublic void testLinkParameterIssue() throws Exception
Description of the issue:
links with parameters <a href="form.jsp?a=b&language=xy">
are replaced by
<a href="form.jsp?a=b?uage=xy">
.
This issue turned out to be a bug in the HtmlParser component, updating the component from version 1.4 to version 1.5 solved the issue.
Exception
- if something goes wrongpublic void testLinkReplacement() throws Exception
Exception
- if something goes wrongpublic void testLinksWithSpecialChars() throws Exception
Exception
- if something goes wrongpublic void testMalformedPage() throws Exception
Exception
- in case something goes wrongpublic void testSchemaCachePublishIssue() throws Exception
Description of the issue: After the initial publish, the XML page schema does not work anymore.
Exception
- in case something goes wrongpublic void testXmlPageCreate() throws Exception
Exception
- in case something goes wrongpublic void testAnchorLink() throws Exception
Exception
- in case something goes wrongpublic void testXmlPageRenameElement() throws Exception
Exception
- in case something goes wrong
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |