saveDesignValuesToFile( values, "DataSetParamConvertTest_out_1.xml" ); assertTrue( compareTextFile( "DataSetParamConvertTest_golden_1.xml", "DataSetParamConvertTest_out_1.xml" ) );
saveDesignValuesToFile( values ); assertTrue( compareTextFile( "DataSetParamConvertTest_golden_1.xml") );
	public void testDataTypeConversion( ) throws Exception	{		// create oda set handle.		openDesign( "DataSetParamConvertTest_1.xml" ); //$NON-NLS-1$		OdaDataSetHandle setHandle = (OdaDataSetHandle) designHandle				.findDataSet( "myDataSet1" ); //$NON-NLS-1$		DataSetDesign setDesign = new ModelOdaAdapter( )				.createDataSetDesign( setHandle );		DesignValues values = ModelFactory.eINSTANCE.createDesignValues( );		values.setDataSetParameters( (DataSetParameters) EcoreUtil				.copy( setDesign.getParameters( ) ) );		saveDesignValuesToFile( values, "DataSetParamConvertTest_out_1.xml" ); //$NON-NLS-1$		assertTrue( compareTextFile( "DataSetParamConvertTest_golden_1.xml", //$NON-NLS-1$				"DataSetParamConvertTest_out_1.xml" ) ); //$NON-NLS-1$		new ModelOdaAdapter( )				.updateDataSetHandle( setDesign, setHandle, false );		saveAs( "DataSetParamConvertTest_out_2.xml" ); //$NON-NLS-1$		assertTrue( compareTextFile( "DataSetParamConvertTest_golden_2.xml", //$NON-NLS-1$				"DataSetParamConvertTest_out_2.xml" ) ); //$NON-NLS-1$	}