Bug 191410 [Regression] Can not new a report from predefined dual column chart & listing template [00]
Description: Can not new a report from predefined dual column chart & listing template. Build number: 2.2.0.v20070607-0630 Steps to reproduce: 1. New a report from predefined dual column chart & listing template. Expected result: The report can be created. Actual result: XML Source page shows up after click finish. Error log: N/A
model/org.eclipse.birt.report.model.tests/test/org/eclipse/birt/report/model/parser/TemplateElementParserTest.java
assertEquals( templateDataSet.getElement( ), ( (BackRef) templateParam
				.getClientList( ).get( 0 ) ).getElement( ) );
		templateParam = (TemplateParameterDefinition) templateLabelParam
				.getElement( );
		assertEquals( 1, templateParam.getClientList( ).size( ) );
		assertEquals( templateLabel.getElement( ), ( (BackRef) templateParam
				.getClientList( ).get( 0 ) ).getElement( ) );
	}
	/**
	 * Tests the writer.
	 * 
	 * @throws Exception
	 */
	public void testWriter( ) throws Exception
	{
		openDesign( parserFileName );
		assertNotNull( designHandle );
		
		TemplateParameterDefinitionHandle templateLabelParam = design
				.findTemplateParameterDefinition( "templateLabelParam" ) 
				.handle( design );
		assertNotNull( templateLabelParam );
		
		templateLabelParam.setName( "new templateLabelParam" ); 
		templateLabelParam.setDescription( "click here to create new label" ); 
		templateLabelParam.setDescriptionKey( "new description key" ); 
		
		TemplateReportItemHandle templateLabel = (TemplateReportItemHandle) designHandle
				.findElement( "templateLabel" ); 
		assertNotNull( templateLabel );