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
* </ul>
	 * 
	 * @throws Exception
	 */
	public void testUpdateROMDataSetWithODADataSet( ) throws Exception
	{
		openDesign( INPUT_FILE_WITH_EMPTY_PROPS );
		OdaDataSetHandle setHandle = (OdaDataSetHandle) designHandle
				.findDataSet( "myDataSet1" ); 
		DataSetDesign sourceDesign = createDataSetDesign( );
		new ModelOdaAdapter( ).updateDataSetHandle( sourceDesign, setHandle,
				true );
		assertTrue( designHandle.getCommandStack( ).canUndo( ) );
		assertFalse( designHandle.getCommandStack( ).canRedo( ) );
		designHandle.getCommandStack( ).undo( );
		assertFalse( designHandle.getCommandStack( ).canUndo( ) );
		assertTrue( designHandle.getCommandStack( ).canRedo( ) );
		save(  );
		assertTrue( compareTextFile( GOLDEN_FILE_WITH_EMPTY_PROPS ) );
		designHandle.getCommandStack( ).redo( );
		save( );
		assertTrue( compareTextFile( GOLDEN_FILE1_WITH_EMPTY_PROPS ) );
		openDesign( INPUT_FILE_WITH_LIB );
		
		setHandle = (OdaDataSetHandle) designHandle.findDataSet( "myDataSet1" ); 
		new ModelOdaAdapter( ).updateDataSetHandle( sourceDesign, setHandle,
				false );
		assertEquals( "Library Data Source One", setHandle.getDataSource( ) 
				.getDisplayName( ) );
	}