|
||||||||
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.TestProperty
public class TestProperty
Unit test for the "writeProperty" method of the CmsObject.
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 | |
---|---|
TestProperty(String arg0)
Default JUnit constructor. |
Method Summary | |
---|---|
static void |
createProperties(OpenCmsTestCase tc,
CmsObject cms,
String resource1,
List propertyList1)
Test the writeProperty method to create a list of properties. |
static void |
createProperty(OpenCmsTestCase tc,
CmsObject cms,
String resource1,
CmsProperty property1)
Test the writeProperty method to create one property. |
static void |
removeProperties(OpenCmsTestCase tc,
CmsObject cms,
String resource1,
List propertyList1)
Test the writeProperty method to remove a list of properties. |
static void |
removeProperty(OpenCmsTestCase tc,
CmsObject cms,
String resource1,
CmsProperty property1)
Test the writeProperty method to remove one property. |
static junit.framework.Test |
suite()
Test suite for this test class. |
void |
testCaseSensitiveProperties()
Tests the proper behaviour for case sensitiveness in property definition names. |
void |
testCreateProperties()
Tests the writePropertyObjects method for removing of properties. |
void |
testCreateProperty()
Tests the writePropertyObject method for removing of properties. |
void |
testDefaultPropertyCreation()
Test default property creation (from resource type configuration). |
void |
testFrozenProperty()
Tests changing the values of a frozen property. |
void |
testNullProperty()
Tests the NULL_PROPERTY. |
void |
testPropertyLists()
Tests reading and writing property lists. |
void |
testPropertyMaps()
Tests reading and writing property maps. |
void |
testReadResourcesWithProperty()
Tests the writePropertyObject method for writing of a property on a folder. |
void |
testRemoveProperties()
Tests the writePropertyObjects method for removing of multiple properties. |
void |
testRemoveProperty()
Tests the writePropertyObject method for removing of a single property. |
void |
testSharedPropertyIssue1()
Tests an issue with shared properties after deletion of the original sibling. |
void |
testWriteProperties()
Tests the writeProperties method. |
void |
testWriteProperty()
Tests the writePropertyObject method. |
void |
testWritePropertyOnFolder()
Tests the writePropertyObject method for writing of a property on a folder. |
static void |
writeProperties(OpenCmsTestCase tc,
CmsObject cms,
String resource1,
List propertyList1)
Test the writeProperty method with a list of properties. |
static void |
writeProperty(OpenCmsTestCase tc,
CmsObject cms,
String resource1,
CmsProperty property1)
Test the writeProperty method with one property. |
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 TestProperty(String arg0)
arg0
- JUnit parametersMethod Detail |
---|
public static junit.framework.Test suite()
public void testPropertyLists() throws Exception
Exception
- if the test failspublic void testPropertyMaps() throws Exception
Exception
- if the test failspublic static void createProperties(OpenCmsTestCase tc, CmsObject cms, String resource1, List propertyList1) throws Throwable
tc
- the OpenCmsTestCasecms
- the CmsObjectresource1
- the resource to create the properiespropertyList1
- the properties to create
Throwable
- if something goes wrongpublic static void createProperty(OpenCmsTestCase tc, CmsObject cms, String resource1, CmsProperty property1) throws Throwable
tc
- the OpenCmsTestCasecms
- the CmsObjectresource1
- the resource to add a properyproperty1
- the property to create
Throwable
- if something goes wrongpublic static void removeProperties(OpenCmsTestCase tc, CmsObject cms, String resource1, List propertyList1) throws Throwable
tc
- the OpenCmsTestCasecms
- the CmsObjectresource1
- the resource to remove the properiespropertyList1
- the properties to remove
Throwable
- if something goes wrongpublic static void removeProperty(OpenCmsTestCase tc, CmsObject cms, String resource1, CmsProperty property1) throws Throwable
tc
- the OpenCmsTestCasecms
- the CmsObjectresource1
- the resource to remove a properyproperty1
- the property to remove
Throwable
- if something goes wrongpublic static void writeProperties(OpenCmsTestCase tc, CmsObject cms, String resource1, List propertyList1) throws Throwable
tc
- the OpenCmsTestCasecms
- the CmsObjectresource1
- the resource to write the properiespropertyList1
- the properties to write
Throwable
- if something goes wrongpublic static void writeProperty(OpenCmsTestCase tc, CmsObject cms, String resource1, CmsProperty property1) throws Throwable
tc
- the OpenCmsTestCasecms
- the CmsObjectresource1
- the resource to write a properyproperty1
- the property to write
Throwable
- if something goes wrongpublic void testCreateProperties() throws Throwable
Throwable
- if something goes wrongpublic void testCaseSensitiveProperties() throws Throwable
Throwable
- if something goes wrongpublic void testCreateProperty() throws Throwable
Throwable
- if something goes wrongpublic void testRemoveProperties() throws Throwable
Throwable
- if something goes wrongpublic void testRemoveProperty() throws Throwable
Throwable
- if something goes wrongpublic void testWriteProperties() throws Throwable
Throwable
- if something goes wrongpublic void testWriteProperty() throws Throwable
Throwable
- if something goes wrongpublic void testWritePropertyOnFolder() throws Throwable
Throwable
- if something goes wrongpublic void testReadResourcesWithProperty() throws Throwable
Throwable
- if something goes wrongpublic void testDefaultPropertyCreation() throws Throwable
Throwable
- if something goes wrongpublic void testSharedPropertyIssue1() throws Throwable
Scenario: A file A has property P set with value V as shared property. Now A is renamed to B. Then B is published directly with all siblings (A is now deleted and removed). Issue: Property P is now empty in B, but should still have the V value.
Throwable
- if something goes wrongpublic void testNullProperty() throws Exception
Exception
- if the test failspublic void testFrozenProperty() throws Throwable
Throwable
- if something goes wrong
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |