Bug 200888 Failures occcur in JUnit test of org.eclipse.birt.report.engine.tests in daily build 20070823
Failures occcur in JUnit test of org.eclipse.birt.report.engine.tests in daily build 20070823. Please see the attachment for details.
engine/org.eclipse.birt.report.engine.tests/test/org/eclipse/birt/report/engine/api/ParameterConverterTest.java
assertEquals( new Double( 1002.2 ), rpc.parse( "1002.2",
				IScalarParameterDefn.TYPE_FLOAT ) );
		rpc = new ReportParameterConverter( "$###,##0.00;'Negative'",
				locDef.toLocale( ) );
		assertEquals( new BigDecimal( "2139.3" ), rpc.parse( "$2,139.30",
				IScalarParameterDefn.TYPE_DECIMAL ) );
		assertEquals( new BigDecimal( -2000 ), rpc.parse( "Negative2,000.00",
				IScalarParameterDefn.TYPE_DECIMAL ) );
		assertEquals( new BigDecimal( 2000 ), rpc.parse( "$2,000.00",
				IScalarParameterDefn.TYPE_DECIMAL ) );
		assertEquals( new BigDecimal( "-2.13" ), rpc.parse( "Negative2.13",
				IScalarParameterDefn.TYPE_DECIMAL ) );
		rpc = new ReportParameterConverter( null, locDef.toLocale( ) );
		assertEquals( new Boolean( true ), rpc.parse( "true",
				IScalarParameterDefn.TYPE_BOOLEAN ) );
		assertEquals( new Boolean( false ), rpc.parse( "false",
				IScalarParameterDefn.TYPE_BOOLEAN ) );
	}
	
	public void testBigDecimal()
	{
		ULocale locale = ULocale.FRENCH;
		ReportParameterConverter rpc;
		rpc = new ReportParameterConverter( null, locale.toLocale( ) );
		assertEquals( new BigDecimal( "123456.789012" ), rpc.parse(
				"123456,789012", IScalarParameterDefn.TYPE_DECIMAL ) );
		
		assertEquals( "123456,789012", rpc.format( new BigDecimal(
				"123456.789012" ) ) );