|
|||||||||||
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.eclipse.birt.report.tests.model.BaseTestCase
org.eclipse.birt.report.tests.model.api.PropertyHandleTest
TestCases for PropertyHandle class.
Method | Test Case | Expected |
---|---|---|
testItemOperations | Tests on adding, moving, removing, inserting, replacing maps rules in a style. | The operations can be completed successfully and the output file matches the golden file. |
testSetGetValues | Sets and gets the property value in different prototype like float, string. | Values can be set/gotten correctly and the output file matches the golden file. |
testOtherOperations | Gets the property definition. | Retrieves the property definition correctly. |
Gets the structure handle of FONT_WEIGHT and MAP_RULE properties. | The structure handle of FONT_WEIGHT is null and the structure handle of
MAP_RULE is null . |
Field Summary |
Fields inherited from class org.eclipse.birt.report.tests.model.BaseTestCase |
design, designHandle, GOLDEN_FOLDER, INPUT_FOLDER, OUTPUT_FOLDER, PLUGIN_NAME, PLUGIN_PATH, PLUGINLOC, ROM_DEF_NAME, sessionHandle, TEST_FOLDER, TEST_LOCALE |
Constructor Summary | |
PropertyHandleTest(java.lang.String name)
|
Method Summary | |
protected void |
setUp()
|
static junit.framework.Test |
suite()
|
void |
testEqual()
test whether the two property handle are equal. |
void |
testgetReferenceElementValueList()
test get the reference element value list if the property is a element referencable type. |
void |
testItemOperations()
Tests add, move, remove, insert, replace map rules in a style. |
void |
testOtherOperations()
Tests get property definition, choices of property and structure handle of a property. |
void |
testPropertyVisibilities()
Tests property visibilities defined in ROM. |
void |
testSetGetValues()
Tests to set and get property values. |
Methods inherited from class org.eclipse.birt.report.tests.model.BaseTestCase |
compareErrors, compareTextFile, compareTextFileAsResource, createDesign, createDesign, dumpErrors, getClassFolder, getFullQualifiedClassName, openDesign, openDesign, openDesign, openDesign, openDesignAsResource, openDesignAsResource, printSemanticError, printSemanticErrors, printSyntaxError, saveAs, saveAsInTempDir, tearDown |
Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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 PropertyHandleTest(java.lang.String name)
name
- Method Detail |
public static junit.framework.Test suite()
protected void setUp() throws java.lang.Exception
setUp
in class BaseTestCase
java.lang.Exception
public void testOtherOperations()
public void testItemOperations() throws java.lang.Exception
java.lang.Exception
- if the property is not a list property, the index of the item
is invalid or the output file cannot be saved correctly.public void testSetGetValues() throws java.lang.Exception
java.lang.Exception
- if values are invalid or the output file cannot be saved
correctly.public void testEqual()
public void testgetReferenceElementValueList() throws org.eclipse.birt.report.model.api.DesignFileException
org.eclipse.birt.report.model.api.DesignFileException
public void testPropertyVisibilities()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |