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( "$2.14", rpc.format( new BigDecimal( 2.139 ) ) );
		assertEquals( "Negative2.13", rpc.format( new BigDecimal( -2.13 ) ) );
		assertEquals( "$0.00", rpc.format( new BigDecimal( 0.0 ) ) );
		assertEquals( "$2,000.00", rpc.format( new BigDecimal( 2000 ) ) );
		assertEquals( "$20.00", rpc.format( new BigDecimal( 20 ) ) );
		assertEquals( "Negative2,000.00", rpc.format( new BigDecimal( -2000 ) ) );
		assertEquals( "$0.00", rpc.format( new BigDecimal( 0 ) ) );
		rpc = new ReportParameterConverter( "d", locDef.toLocale( ) );
		assertEquals( "2.139", rpc.format( new BigDecimal( 2.139 ) ) );
		rpc = new ReportParameterConverter( null, locDef.toLocale( ) );
		assertEquals( "true", rpc.format( new Boolean( true ) ) );
		assertEquals( "false", rpc.format( new Boolean( false ) ) );
	}
	/*
	 * test for parsing a string
	 */
	public void testParseToString( )
	{
		ULocale locDef = ULocale.getDefault( );
		ReportParameterConverter rpc;
		rpc = new ReportParameterConverter( "@@@@", locDef.toLocale( ) );
		assertEquals( "1234fggggg", rpc.parse( "1234fggggg",
				IScalarParameterDefn.TYPE_STRING ) );
		rpc = new ReportParameterConverter( "@@@@!", locDef.toLocale( ) );
		assertEquals( "1234fggggg", rpc.parse( "1234fggggg",
				IScalarParameterDefn.TYPE_STRING ) );
		rpc = new ReportParameterConverter( "@@@@!", locDef.toLocale( ) );
		assertEquals( "123", rpc.parse( "123 ",
				IScalarParameterDefn.TYPE_STRING ) );
		rpc = new ReportParameterConverter( "@@@@!!!", locDef.toLocale( ) );