the code is:
/** Testing for public int java.util.Date.getDate()* */
public void testGetDate() {
......
Date accum1 = create(PAST);
int a1 = accum1.getDate();
assertEquals(4, a1); ===========> it fails in GMT 0 ~ 14
countries
......
}
.......
Date create(String s) {
if (s.equals(FUTURE)) {
return new Date("12/30/2010 3:4:5 GMT");
} else if (s.equals(PAST)) {
return new Date("1/5/1880 GMT");
} .......
}
/**
* Testing for public int java.util.Date.getHours()
*/
public void testGetHours() {
// Cannot be done because each time zone will give a different
// answer
}
You might add this as a comment to issue 640, which is a similar
failure of DateTest on days of the month >28. Or, file another
issue. In any case, please enter it into the issue tracker
somehow :-)
Cheers!
Rob
-Yichao