org.eclipse.birt.report.tests.model.api
Class GroupPropertyHandleTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.eclipse.birt.report.tests.model.BaseTestCase
              extended byorg.eclipse.birt.report.tests.model.api.GroupPropertyHandleTest
All Implemented Interfaces:
junit.framework.Test

public class GroupPropertyHandleTest
extends BaseTestCase

Test case for GroupPropertyHandle.


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
GroupPropertyHandleTest(java.lang.String name)
           
 
Method Summary
protected  void setUp()
           
static junit.framework.Test suite()
           
 void testEquals()
          Tests the equals() of a group property handle.
 void testgetReferenceElementValueList()
          test get the reference element value list if the property is a element referencable type.
 void testGetStringValue()
          1.
 void testSetValue()
          Set value for a string and an dimension property.
 void testVisibility()
          Tests the visibility of a group property handle.
 
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

GroupPropertyHandleTest

public GroupPropertyHandleTest(java.lang.String name)
Parameters:
name -
Method Detail

suite

public static junit.framework.Test suite()

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class BaseTestCase
Throws:
java.lang.Exception

testGetStringValue

public void testGetStringValue()
                        throws org.eclipse.birt.report.model.api.activity.SemanticException
1. Same value. 2. different value.

Throws:
org.eclipse.birt.report.model.api.activity.SemanticException

testSetValue

public void testSetValue()
                  throws org.eclipse.birt.report.model.api.activity.SemanticException
Set value for a string and an dimension property.

Throws:
org.eclipse.birt.report.model.api.activity.SemanticException

testVisibility

public void testVisibility()
Tests the visibility of a group property handle.


testEquals

public void testEquals()
Tests the equals() of a group property handle.


testgetReferenceElementValueList

public void testgetReferenceElementValueList()
                                      throws org.eclipse.birt.report.model.api.DesignFileException
test get the reference element value list if the property is a element referencable type. case1: get the data set list. case2: get the data source list. case3: get the style list.

Throws:
org.eclipse.birt.report.model.api.DesignFileException