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
dateCal = Calendar.getInstance( locDef.toLocale( ) );
		dateCal.set( 1998, 8, 13, 20, 1, 44 );
		date = dateCal.getTime( );
		rpc = new ReportParameterConverter( "MM/dd/yyyy hh:mm:ss a", locale );
		assertEquals( "09/13/1998 08:01:44 PM", rpc.format( date ) );
		
		dateCal = Calendar.getInstance( locDef.toLocale( ) );
		dateCal.set( 1998, 8, 13, 20, 1, 44 );
		date = dateCal.getTime( );
		locale = new ULocale( "en", "us" );
		rpc = new ReportParameterConverter( "Long Date", locale );
		assertEquals( "September 13, 1998", rpc.format( date ) );
		rpc = new ReportParameterConverter( "D", locale );
		assertEquals( "September 13, 1998", rpc.format( date ) );
		rpc = new ReportParameterConverter( "Medium Date", locale );
		assertEquals( "Sep 13, 1998", rpc.format( date ) );
		rpc = new ReportParameterConverter( "Short Date", locale );
		assertEquals( "9/13/98", rpc.format( date ) );
		rpc = new ReportParameterConverter( "d", locale );
		assertEquals( "9/13/98", rpc.format( date ) );
		rpc = new ReportParameterConverter( "Long Time", locale );
		assertEquals( true, rpc.format( date ).startsWith( "8:01:44 PM GMT" ) );
		rpc = new ReportParameterConverter( "T", locale );
		assertEquals( true, rpc.format( date ).startsWith( "8:01:44 PM GMT" ) );
		SimpleDateFormat javaSample = (SimpleDateFormat) java.text.DateFormat
				.getDateTimeInstance( java.text.DateFormat.LONG,
						java.text.DateFormat.SHORT, locale.toLocale( ) );
		rpc = new ReportParameterConverter( "f", locale );
		assertEquals( javaSample.format( date ), rpc.format( date ) );
		rpc = new ReportParameterConverter( "General Date", locale );