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
.findDataSet( "myDataSet1" ); 
		DataSetDesign setDesign = new ModelOdaAdapter( )
				.createDataSetDesign( setHandle );
		assertEquals( "myDataSet1", setDesign.getName( ) ); 
		assertEquals( DATA_SET_EXTENSIONID, setDesign
				.getOdaExtensionDataSetId( ) );
		assertEquals( "My Data Set One", setDesign.getDisplayName( ) ); 
		Properties props = setDesign.getPublicProperties( );
		assertEquals( 1, props.getProperties( ).size( ) );
		assertEquals( "30000", props.findProperty( "queryTimeOut" ).getValue( ) ); 
		props = setDesign.getPrivateProperties( );
		assertEquals( 1, props.getProperties( ).size( ) );
		assertEquals( "10000", props.findProperty( "queryTimeOut" ).getValue( ) ); 
		DataSetParameters params = setDesign.getParameters( );
		ParameterDefinition paramDefn = (ParameterDefinition) params
				.getParameterDefinitions( ).get( 0 );
		DataElementAttributes dataAttrs = paramDefn.getAttributes( );
		
		assertEquals( ElementNullability.NULLABLE, dataAttrs.getNullability( )
				.getValue( ) );
		assertEquals( 1, dataAttrs.getPosition( ) );
		
		assertEquals( 0, dataAttrs.getNativeDataTypeCode( ) );
		assertEquals( ParameterMode.IN, paramDefn.getInOutMode( ).getValue( ) );
		InputParameterAttributes inParamAttrs = paramDefn.getInputAttributes( );
		InputElementAttributes inElementAttrs = inParamAttrs
				.getElementAttributes( );
		assertTrue( inElementAttrs.isOptional( ) );
		assertEquals( "default value 1", inElementAttrs.getDefaultScalarValue( ) ); 
		assertNull(  setDesign.getResultSets( ) );