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( true, rpc.format( date ).startsWith(
				"September 13, 1998 8:01:44 PM GMT" ) );
		rpc = new ReportParameterConverter( "Short Time", locale );
		assertEquals( "20:01", rpc.format( date ) );
		rpc = new ReportParameterConverter( "Medium Time", locale );
		assertEquals( "8:01:44 PM", rpc.format( date ) );
	}
	/*
	 * test for formating a number or other obj
	 */
	public void testOtherFormat( )
	{
		ULocale locDef = ULocale.getDefault( );
		ReportParameterConverter rpc;
		NumberFormat number = NumberFormat.getInstance( Locale.getDefault( ) );
		number.setGroupingUsed( false );
		rpc = new ReportParameterConverter( null, locDef.toLocale( ) );
		assertEquals( number.format( 1002.234 ),
				rpc.format( new Double( 1002.234 ) ) );
		
		rpc = new ReportParameterConverter( "#", locDef.toLocale( ) );
		assertEquals( "1002", rpc.format( new Double( 1002.2 ) ) );
		rpc = new ReportParameterConverter( "0", locDef.toLocale( ) );
		assertEquals( "1002", rpc.format( new Double( 1002.2 ) ) );
		rpc = new ReportParameterConverter( "###,##0", locDef.toLocale( ) );
		assertEquals( "1,002", rpc.format( new Double( 1002.2 ) ) );
		rpc = new ReportParameterConverter( "#.0#", locDef.toLocale( ) );
		assertEquals( "1002.2", rpc.format( new Double( 1002.2 ) ) );
		rpc = new ReportParameterConverter( "###,##0.00 'm/s'",
				locDef.toLocale( ) );