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
name = "templateDataSet"; 
		TemplateDataSetHandle templateDataSet = null;
		DataSetHandle dataSetHandle = designHandle.getElementFactory( )
				.newScriptDataSet( "dataSet" ); 
		
		try
		{
			templateDataSet = (TemplateDataSetHandle) dataSetHandle
					.createTemplateElement( name );
			fail( );
		}
		catch ( SemanticException e )
		{
			assertEquals(
					TemplateException.DESIGN_EXCEPTION_CREATE_TEMPLATE_ELEMENT_FORBIDDEN,
					e.getErrorCode( ) );
		}
		
		
		
		designHandle.getDataSets( ).add( dataSetHandle );
		assertNotNull( designHandle.findTemplateDataSet( name ) );
		templateDataSet = (TemplateDataSetHandle) dataSetHandle
				.createTemplateElement( name );
		assertNotNull( templateDataSet );
		assertEquals( templateDataSet.getElement( ), designHandle
				.findTemplateDataSet( "templateDataSet1" ) ); 
		
		StyleHandle style = designHandle.getElementFactory( )
				.newStyle( "style" );