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( "1,002.20 m/s", rpc.format( new Double( 1002.2 ) ) );
		rpc = new ReportParameterConverter( "#.##", locDef.toLocale( ) );
		assertEquals( "1002", rpc.format( new Long( 1002 ) ) );
		
		rpc = new ReportParameterConverter( "###.#';'", locDef.toLocale( ) );
		assertEquals( "1002.2;", rpc.format( new Double( 1002.2 ) ) );
		assertEquals( "-1002.2;", rpc.format( new Double( -1002.2 ) ) );
		rpc = new ReportParameterConverter( "###.#\';';#", locDef.toLocale( ) );
		assertEquals( "1002.2;", rpc.format( new Double( 1002.2 ) ) );
		assertEquals( "1002.2", rpc.format( new Double( -1002.2 ) ) );
		rpc = new ReportParameterConverter( "#.00%", locDef.toLocale( ) );
		assertEquals( "1002200.00%", rpc.format( new Long( 10022 ) ) );
		
		rpc = new ReportParameterConverter( "General Number", locDef.toLocale( ) );
		assertEquals( number.format( 1002.20 ),
				rpc.format( new Double( 1002.20 ) ) );
		assertEquals( number.format( -1002.2 ),
				rpc.format( new Double( -1002.2 ) ) );
		assertEquals( number.format( 0.004 ), rpc.format( new Double( 0.004 ) ) );
		assertEquals( number.format( 0.004123456 ),
				rpc.format( new Double( 0.004123456 ) ) );
		assertEquals( number.format( -0.004 ),
				rpc.format( new Double( -0.004 ) ) );
		assertEquals( number.format( 0 ), rpc.format( new Long( 0 ) ) );
		number = NumberFormat.getCurrencyInstance( Locale.getDefault( ) );
		rpc = new ReportParameterConverter( "C", locDef.toLocale( ) );
		assertEquals( number.format( 1290.8889 ),
				rpc.format( new Double( 1290.8889 ) ) );
		rpc = new ReportParameterConverter( "Fixed", locDef.toLocale( ) );
		assertEquals( "1002.20", rpc.format( new Double( 1002.2 ) ) );