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/OdaDataSourceAdapterTest.java
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.
	 * </ul>
	 * 
	 * @throws Exception
	 */
	public void testUpdateROMDataSourceWithODADataSource( ) throws Exception
	{
		openDesign( INPUT_FILE_WITH_EMPTY_PROPS );
		OdaDataSourceHandle sourceHandle = (OdaDataSourceHandle) designHandle
				.findDataSource( "myDataSource1" ); 
		DataSourceDesign sourceDesign = createDataSourceDesign( );
		new ModelOdaAdapter( ).updateDataSourceHandle( sourceDesign,
				sourceHandle );
		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( );