public void TestCoverage() {
{
// new CopticCalendar(TimeZone)
CopticCalendar cal = new CopticCalendar(TimeZone.getDefault());
if(cal == null){
errln("could not create CopticCalendar with TimeZone");
}
}
{
// new CopticCalendar(ULocale)
CopticCalendar cal = new CopticCalendar(ULocale.getDefault());
if(cal == null){
errln("could not create CopticCalendar with ULocale");
}
}
{
// new CopticCalendar(Locale)
CopticCalendar cal = new CopticCalendar(Locale.getDefault());
if(cal == null){
errln("could not create CopticCalendar with Locale");
}
}
{
// new CopticCalendar(TimeZone, Locale)
CopticCalendar cal = new CopticCalendar(TimeZone.getDefault(),Locale.getDefault());
if(cal == null){
errln("could not create CopticCalendar with TimeZone, Locale");
}
}
{
// new CopticCalendar(TimeZone, ULocale)
CopticCalendar cal = new CopticCalendar(TimeZone.getDefault(),ULocale.getDefault());
if(cal == null){
errln("could not create CopticCalendar with TimeZone, ULocale");
}
}
{
// new CopticCalendar(Date)
CopticCalendar cal = new CopticCalendar(new Date());
if(cal == null){
errln("could not create CopticCalendar with Date");
}
}
{
// new CopticCalendar(int year, int month, int date)
CopticCalendar cal = new CopticCalendar(1997, CopticCalendar.TOUT, 1);
if(cal == null){
errln("could not create CopticCalendar with year,month,date");
}
}
{
// new CopticCalendar(int year, int month, int date, int hour, int minute, int second)
CopticCalendar cal = new CopticCalendar(1997, CopticCalendar.TOUT, 1, 1, 1, 1);
if(cal == null){
errln("could not create CopticCalendar with year,month,date,hour,minute,second");
}
}
{
// data
CopticCalendar cal = new CopticCalendar(1997, CopticCalendar.TOUT, 1);
Date time = cal.getTime();
String[] calendarLocales = {
"am_ET", "gez_ET", "ti_ET"
};
String[] formatLocales = {
"en", "am", "am_ET", "gez", "ti"
};
for (int i = 0; i < calendarLocales.length; ++i) {
String calLocName = calendarLocales[i];
Locale calLocale = LocaleUtility.getLocaleFromName(calLocName);
cal = new CopticCalendar(calLocale);
for (int j = 0; j < formatLocales.length; ++j) {
String locName = formatLocales[j];
Locale formatLocale = LocaleUtility.getLocaleFromName(locName);
DateFormat format = DateFormat.getDateTimeInstance(cal, DateFormat.FULL, DateFormat.FULL, formatLocale);