|
|||||||||||
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.ReportItemHandleTest
Test ReportItemHandle.
Method | Test Case | Expected | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
testDataSet() |
check free-form element which contains attribute data-set | dataset name is myDataSet | |||||||||
check list element which doesn't contain attribute data-set | null | ||||||||||
testReadVisibilityRules() | Gets visibility rules in elements and tests whether values match with those defined the design file. | Returned values match with the design file. If "format" values are not defined, the default value "all" is used. | |||||||||
The number of visibility rules in elements. | The number is 2. | ||||||||||
testWriteVisibilityRules | The default format value in the visibility rule. | The default value can be written out to the design file. | |||||||||
Sets "format" and "valueExpr" properties of a visibility rule. | "format" and "valueExpr" can be written out and the output file matches with the golden file. |
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 | |
ReportItemHandleTest(java.lang.String name)
|
Method Summary | |
protected void |
setUp()
|
static junit.framework.Test |
suite()
|
void |
testDataSet()
test getDataSet(). |
void |
testProperties()
Tests common properties on a report item. |
void |
testReadVisibilityRules()
Test to read hide rules. |
void |
testUndoInvalidDataSet()
Tests the undo operation for invalid DataSet name. |
void |
testUndoInvalidStyle()
Tests the undo operation for invalid style name. |
void |
testWriteVisibilityRules()
Tests to write hide rules to the design file. |
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 ReportItemHandleTest(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 testDataSet() throws org.eclipse.birt.report.model.api.activity.SemanticException
Test Cases:
org.eclipse.birt.report.model.api.activity.SemanticException
public void testReadVisibilityRules() throws java.lang.Exception
java.lang.Exception
- if open the design file with errors.public void testWriteVisibilityRules() throws java.lang.Exception
java.lang.Exception
- if open/write the design file with IO errors.public void testProperties() throws org.eclipse.birt.report.model.api.activity.SemanticException
org.eclipse.birt.report.model.api.activity.SemanticException
public void testUndoInvalidStyle() throws java.lang.Exception
java.lang.Exception
- if any exceptionpublic void testUndoInvalidDataSet() throws java.lang.Exception
java.lang.Exception
- if any exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |