harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tony Wu" <wuyue...@gmail.com>
Subject Re: [classlib][luni] GregorianCalendarTest fails now
Date Wed, 25 Jul 2007 02:34:09 GMT
Hi Alexey,
This testcase is added by me when fix HARMONY-4513, I think it should
not depend on vm. So I'm a little confused, would you please help to
try following test

        gGregorianCalendar c = new
GregorianCalendar(TimeZone.getTimeZone("GMT"));
        gc.set(1582, Calendar.OCTOBER, 15, 0, 0, 0);
        assertEquals(1582, gc.get(Calendar.YEAR));
        assertEquals(Calendar.OCTOBER, gc.get(Calendar.MONTH));
        assertEquals(15, gc.get(Calendar.DAY_OF_MONTH));
        assertEquals(0, gc.get(Calendar.HOUR_OF_DAY));
        assertEquals(0, gc.get(Calendar.MINUTE));
        assertEquals(0, gc.get(Calendar.SECOND));
        gc.set(1582, Calendar.OCTOBER, 14, 0, 0, 0);
        assertEquals(24, gc.get(Calendar.DAY_OF_MONTH));


if it passes and the line 732 of current GregorianCalendarTest still
fails, I should say it is due to different time zone and modify the
testcase. Thanks.

On 7/24/07, Alexey Varlamov <alexey.v.varlamov@gmail.com> wrote:
> Seems it fails on DRLVM only.
>
> 2007/7/24, Alexey Varlamov <alexey.v.varlamov@gmail.com>:
> > The recently modified GregorianCalendarTest fails now, are there
> > someone looking at this?
> >
> > junit.framework.AssertionFailedError: expected:<15> but was:<5>
> >        at tests.api.java.util.GregorianCalendarTest.test_getI(GregorianCalendarTest.java:732)
> >        at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java)
> >
>


-- 
Tony Wu
China Software Development Lab, IBM

Mime
View raw message