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
public void testDesignerState( ) throws Exception
	{
		openDesign( INPUT_FILE );
		OdaDataSourceHandle sourceHandle = (OdaDataSourceHandle) designHandle
				.findDataSource( "myDataSource1" ); 
		DesignerState designerState = new ModelOdaAdapter( )
				.newOdaDesignerState( sourceHandle );
		assertEquals( "1.1", designerState.getVersion( ) ); 
		DesignerStateContent stateContent = designerState.getStateContent( );
		assertEquals( "content as blob", new String( stateContent 
				.getStateContentAsBlob( ), "8859_1" ) ); 
		assertNull( stateContent.getStateContentAsString( ) );
		designerState.setVersion( "2.0" ); 
		designerState.setNewStateContentAsString( "content as string 2.0" ); 
		new ModelOdaAdapter( ).updateROMDesignerState( designerState,
				sourceHandle );
		save( ); 
		compareTextFile( "OdaDataSourceDesignerState_golden.xml" ); 
		
		sourceHandle.setDesignerState( null );
		assertNull( sourceHandle.getDesignerState( ) );
		
		new ModelOdaAdapter( )
				.updateROMDesignerState( designerState, sourceHandle );
		OdaDesignerStateHandle romDesignerState = sourceHandle.getDesignerState( );
		assertNotNull( romDesignerState );
		assertEquals( "2.0", romDesignerState.getVersion( ) ); 
	}
}