for (int y = minYear; y <= maxYear; y++) {
boolean isLeapYear = eraCalc.isLeapYear(y);
for (int m = 0; m < 12; m++) {
for (int d = 1; d <= eraCalc.getDaysInMonth(m, isLeapYear); d++) {
DayOfWeek dow = eraCalc.calcDayOfWeek(y, m, d);
//Date javaDate = javaDate(y, m, d);
javaDate.setYear(y - 1900);
javaDate.setMonth(m);
javaDate.setDate(d);
DayOfWeek expectedDOW = DayOfWeek.values()[javaDate.getDay()];
//System.out.println("TESTING: javaDate=" + javaDate + "; dow=" + dow);
assertEquals("y=" + y + ";m=" + m + ";d=" + d + ": ", expectedDOW, dow);
}
}
}