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
rpc = new ReportParameterConverter( "@@@@@!", locDef );
		assertEquals( "94305", rpc.format( "94305" ) );
		rpc = new ReportParameterConverter( "@@@@@", locDef );
		assertEquals( "94305", rpc.format( "94305" ) );
		
		rpc = new ReportParameterConverter( "(@@@)-@@@-@@@@!", locDef );
		assertEquals( "(650)-837-2345,", rpc.format( "6508372345," ) );
		rpc = new ReportParameterConverter( "(@@@)-@@@-@@@@", locDef );
		assertEquals( "(650)-837-2345", rpc.format( "6508372345" ) );
	}
	/*
	 * test for formating a data
	 */
	public void testDateFormat( )
	{
		ULocale locDef = ULocale.getDefault( ), locale;
		ReportParameterConverter rpc;
		Calendar dateCal;
		Date date;
		locale = new ULocale( "en", "us" );
		dateCal = Calendar.getInstance( locDef.toLocale( ) );
		dateCal.set( 1998, 8, 13, 20, 1, 44 );
		date = dateCal.getTime( );
		locale = ULocale.ITALY;
		rpc = new ReportParameterConverter( "MM/dd/yy KK:mm aa", locale );
		assertEquals( "09/13/98 08:01 p.", rpc.format( date ) );
		rpc = new ReportParameterConverter( "Long Date", locale );
		assertEquals( "13 settembre 1998", rpc.format( date ) );
		locale = new ULocale( "en", "us" );