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
* source handle. Saves the new datasource handle to the design file.
	 * <li>No ActivityStack action should be invovled.
	 * </ul>
	 * 
	 * @throws Exception
	 */
	public void testODADataSetToROMDataSet( ) throws Exception
	{
		DataSetDesign setDesign = createDataSetDesign( );
		createDesign( );
		OdaDataSetHandle setHandle = new ModelOdaAdapter( )
				.createDataSetHandle( setDesign, designHandle );
		assertFalse( designHandle.getCommandStack( ).canUndo( ) );
		assertFalse( designHandle.getCommandStack( ).canRedo( ) );
		designHandle.getDataSets( ).add( setHandle );
		designHandle.getDataSources( ).add(
				new ModelOdaAdapter( ).createDataSourceHandle( setDesign
						.getDataSourceDesign( ), designHandle ) );
		assertNotNull( setHandle.getDataSource( ) );
		assertEquals( "myDataSource1", setHandle.getDataSource( ).getName( ) ); 
		save( );
		assertTrue( compareTextFile( GOLDEN_FILE ) );
	}
	/**
	 * Test case: <br>
	 * 
	 * <ul>
	 * <li>Have a data source design and a data source handle, copied all
	 * values from the ODA element to ROM element.
	 * <li>ActivityStack action should be invovled as a transaction.