Bug 176800 Errors/Failures found in Junit test of org.eclipse.birt.report.model.adapter.oda.tests in daily build 20070309
Errors/Failures found in Junit test of org.eclipse.birt.report.model.adapter.oda.tests in daily build 20070309. Please see the attachment for details
model/org.eclipse.birt.report.model.adapter.oda.tests/test/org/eclipse/birt/report/model/adapter/oda/api/OdaDataSetAdapterTest.java
*/
	public void testCreateDataSetReferDataSource( ) throws Exception
	{
		openDesign( "CreateDataSetReferDataSource.xml" ); 
		designHandle.includeLibrary( "Library_2.xml", "lib" ); 
		DataSourceHandle parent = designHandle
				.getLibrary( "lib" ).findDataSource( "Data Source" ); 
		assertNotNull( parent );
		IModelOdaAdapter adapter = new ModelOdaAdapter( );
		OdaDataSourceHandle dataSource = (OdaDataSourceHandle) designHandle
				.getElementFactory( ).newElementFrom( parent, "testSource" );  
		designHandle.getDataSources( ).add( dataSource );
		assertEquals( designHandle, dataSource.getRoot( ) );
		adapter.createDataSourceDesign( dataSource );
		OdaDataSetHandle dataSet = designHandle
				.getElementFactory( )
				.newOdaDataSet(
						"testDataSet", "org.eclipse.birt.report.data.oda.jdbc.JdbcSelectDataSet" ); 
		dataSet.setDataSource( "testSource" ); 
		designHandle.getDataSets( ).add( dataSet );
		assertEquals( designHandle, dataSet.getRoot( ) );
		DataSetDesign dataSetDesign = adapter.createDataSetDesign( dataSet );
		dataSetDesign.setQueryText( "new query text" ); 
		
		adapter.updateDataSetHandle( dataSetDesign, dataSet, false );
		save( ); 
		assertTrue( compareTextFile( "CreateDataSetReferDataSource_golden.xml" ) ); 
	}
}