/*
*******************************************************************************
- * Copyright (C) 2004-2010, International Business Machines Corporation and *
+ * Copyright (C) 2004-2013, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
gp1.setCalendar(ical);
cal = gp1.getCalendar();
calType = cal.getType();
- if (!calType.equals("islamic")) {
- errln("FAIL: Calendar type afte clone is " + calType + " Expected: islamic");
+ if (!calType.equals("islamic-civil")) { // default constructed IslamicCalendar is islamic-civil
+ errln("FAIL: Calendar type afte clone is " + calType + " Expected: islamic-civil");
}
}
df = gp.getDateFormat(GlobalizationPreferences.DF_SHORT, GlobalizationPreferences.DF_NONE);
pattern = ((SimpleDateFormat)df).toPattern();
// root pattern must be used
- if (!pattern.equals("yyyy-MM-dd")) {
- errln("FAIL: SHORT date pattern is " + pattern + " Expected: yyyy-MM-dd");
+ if (!pattern.equals("y-MM-dd")) {
+ errln("FAIL: SHORT date pattern is " + pattern + " Expected: y-MM-dd");
}
// Set locale - fr, fr_CA, fr_FR
// Date - short
df = gp.getDateFormat(GlobalizationPreferences.DF_SHORT, GlobalizationPreferences.DF_NONE);
pattern = ((SimpleDateFormat)df).toPattern();
- if (!pattern.equals("dd/MM/yyyy")) {
- errln("FAIL: SHORT date pattern is " + pattern + " Expected: dd/MM/yyyy");
+ if (!pattern.equals("dd/MM/y")) {
+ errln("FAIL: SHORT date pattern is " + pattern + " Expected: dd/MM/y");
}
// Time - full