|
||||||||
| 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.TestCmsXmlContentWithVfs
public class TestCmsXmlContentWithVfs
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 | |
|---|---|
TestCmsXmlContentWithVfs(String arg0)
Default JUnit constructor. |
|
| Method Summary | |
|---|---|
static junit.framework.Test |
suite()
Test suite for this test class. |
void |
testAccessNestedElements()
Test accessing elements in nested schemas. |
void |
testAddFileReference()
Test adding a file reference value to an existing xmlcontent. |
void |
testAddRemoveElements()
Test adding and removing elements from an XML content. |
void |
testAddRemoveNestedElements()
Test adding and removing elements from an XML content, including nested elements. |
void |
testAutoXsd()
Tests creation of the automatic XML schema XSD. |
void |
testContentHandler()
Test using a different XML content handler then the default handler. |
void |
testCopyMoveRemoveLocale()
Tests locale copy, move and remove operation on an XML content. |
void |
testDefaultNested()
Test default values in the appinfo node using a nested XML content schema. |
void |
testDefaultOnCreation()
Test default values after a new XML content has been created. |
void |
testDefaultOnCreationWithNested()
Test default values in the appinfo node using a nested XML content schema when creating a new content. |
void |
testEmptyLocale()
Tests the Locale settings of XMLContents with only optional elements and no element present. |
void |
testLayoutWidgetMapping()
Test using the GUI widget mapping appinfo nodes. |
void |
testLinkResolver()
Test resolving the links from an XML content. |
void |
testMacros()
Tests the macros in messages and default values. |
void |
testMappings()
Tests the element mappings from the appinfo node. |
void |
testMappingsAsList()
Tests element mappings fom XML content to a property list. |
void |
testMappingsOfNestedContent()
Tests the element mappings from the appinfo node for nested XML content. |
void |
testMappingsWithManyLocales()
Tests the element mappings from the appinfo node if there is more then one locale. |
void |
testNestedSchema()
Test using a nested XML content schema. |
void |
testResourceBundle()
Test if the resource bundle in the schema definition is properly initialized. |
void |
testResourceBundleFromXml()
Test the resource bundles defined in XML content. |
void |
testResourceBundleFromXmlWithDefault()
Test the resource bundles defined in XML content with default values. |
void |
testResourceMultiBundle()
Test if a multiple resource bundle in the schema definition is properly initialized. |
void |
testValidation()
Test the validation of the value elements. |
void |
testValidationExtended()
Extended test for the validation of the value elements. |
void |
testValidationLocale()
Test for the validation with different locales. |
void |
testValueIndex()
Test the index of the value elements. |
void |
testVarLinkResolver()
Test resolving a CmsXmlVarLinkValue in an XML content. |
void |
testXmlContentCreate()
Tests creating a XMl page with the API. |
| 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 TestCmsXmlContentWithVfs(String arg0)
arg0 - JUnit parameters| Method Detail |
|---|
public static junit.framework.Test suite()
public void testAccessNestedElements()
throws Exception
Exception - in case something goes wrong
public void testAddFileReference()
throws Exception
Exception - in case something goes wrong
public void testAddRemoveElements()
throws Exception
Exception - in case something goes wrong
public void testAddRemoveNestedElements()
throws Exception
Exception - in case something goes wrong
public void testAutoXsd()
throws Exception
Exception - in case something goes wrong
public void testContentHandler()
throws Exception
Exception - in case something goes wrong
public void testCopyMoveRemoveLocale()
throws Exception
Exception - if the test fails
public void testDefaultNested()
throws Exception
Exception - in case something goes wrong
public void testDefaultOnCreation()
throws Exception
Exception - in case the test fails
public void testDefaultOnCreationWithNested()
throws Exception
The nested content definition must be non-optional, and must have non-optional element.
Exception - in case something goes wrong
public void testEmptyLocale()
throws Exception
Exception - if the test fails
public void testLayoutWidgetMapping()
throws Exception
Exception - in case something goes wrong
public void testLinkResolver()
throws Exception
Exception - in case something goes wrong
public void testVarLinkResolver()
throws Exception
CmsXmlVarLinkValue in an XML content.
Exception - in case something goes wrong
public void testMacros()
throws Exception
Exception - in case something goes wrong
public void testMappings()
throws Exception
Exception - in case something goes wrong
public void testMappingsAsList()
throws Exception
Exception - if the test fails
public void testMappingsOfNestedContent()
throws Exception
Exception - in case something goes wrong
public void testMappingsWithManyLocales()
throws Exception
Exception - in case something goes wrong
public void testNestedSchema()
throws Exception
Exception - in case something goes wrong
public void testResourceBundle()
throws Exception
Exception - in case something goes wrong
public void testResourceMultiBundle()
throws Exception
Exception - in case something goes wrong
public void testResourceBundleFromXml()
throws Exception
Exception - in case something goes wrong
public void testResourceBundleFromXmlWithDefault()
throws Exception
Exception - in case something goes wrong
public void testValidation()
throws Exception
Exception - in case something goes wrong
public void testValidationExtended()
throws Exception
Exception - in case something goes wrong
public void testValidationLocale()
throws Exception
Exception - in case something goes wrong
public void testValueIndex()
throws Exception
Exception - in case something goes wrong
public void testXmlContentCreate()
throws Exception
Exception - in case something goes wrong
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||