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
private final static String INPUT_FILE = "OdaDataSourceConvertTest.xml"; 
	private final static String GOLDEN_FILE = "OdaDataSourceConvertTest_golden.xml"; 
	private final static String INPUT_FILE_WITH_EMPTY_PROPS = "OdaDataSourceEmptyProps.xml"; 
	private final static String GOLDEN_FILE_WITH_EMPTY_PROPS = "OdaDataSourceEmptyProps_golden.xml"; 
	private final static String GOLDEN_FILE1_WITH_EMPTY_PROPS = "OdaDataSourceEmptyProps_golden_1.xml"; 
	private final static String DATA_SOURCE_EXTENSIONID = "org.eclipse.birt.report.data.oda.jdbc"; 
	/**
	 * Test case: <br>
	 * To read a design file, uses adapter to create a data source design.
	 * Checks values of the created data source design.
	 * 
	 * @throws Exception
	 */
	public void testROMDataSourceToODADataSource( ) throws Exception
	{
		openDesign( INPUT_FILE );
		OdaDataSourceHandle sourceHandle = (OdaDataSourceHandle) designHandle
				.findDataSource( "myDataSource1" ); 
		DataSourceDesign sourceDesign = new ModelOdaAdapter( )
				.createDataSourceDesign( sourceHandle );
		assertEquals( "myDataSource1", sourceDesign.getName( ) ); 
		assertEquals( DATA_SOURCE_EXTENSIONID, sourceDesign.getOdaExtensionId( ) );
		assertEquals( "My Data Source One", sourceDesign.getDisplayName( ) ); 
		Properties props = sourceDesign.getPublicProperties( );
		assertEquals( 5, props.getProperties( ).size( ) );
		assertEquals( "com.mysql.jdbc.Driver", props 
				.findProperty( "odaDriverClass" ).getValue( ) ); 
		assertEquals( "jdbc:mysql://localhost:3306/birt", props 
				.findProperty( "odaURL" ).getValue( ) ); 
		assertNull( props.findProperty( "odaUser" ).getValue( ) );