Re: JChronic step fails running java-helloworld example

252 views
Skip to first unread message

Nick Shaw

unread,
Dec 14, 2012, 9:53:46 AM12/14/12
to cu...@googlegroups.com
Issue confirmed and reported on github:

https://github.com/cucumber/cucumber-jvm/issues/440

On Monday, December 10, 2012 4:20:14 PM UTC, Nick Shaw wrote:
For clarity I changed line 31 in TimestepDefs.java from:

assertEquals(day, laundryDate);

to:

assertEquals(day.getTimeInMillis(), laundryDate. getTimeInMillis());

And it works, just not sure what caused the date munging in the first place.

N

On Wednesday, July 25, 2012 10:27:39 AM UTC+1, Seb Rose wrote:
I get the following error running the tests on the java-helloworld example (using Java 1.6 in the UK)
 
It boils down to the following fields being different: firstDayOfWeek, minimalFirstDaysInFirstWeek and WEEK_OF_MONTH
 
Any clues, anyone?
 

java.lang.AssertionError: expected:<java.util.GregorianCalendar[time=1354579200000,areFieldsSet=true,areAllFieldsSet=true,lenient=true,zone=sun.util.calendar.ZoneInfo[id="Europe/London",offset=0,dstSavings=3600000,useDaylight=true,transitions=242,lastRule=java.util.SimpleTimeZone[id=Europe/London,offset=0,dstSavings=3600000,useDaylight=true,startYear=0,startMode=2,startMonth=2,startDay=-1,startDayOfWeek=1,startTime=3600000,startTimeMode=2,endMode=2,endMonth=9,endDay=-1,endDayOfWeek=1,endTime=3600000,endTimeMode=2]],firstDayOfWeek=1,minimalDaysInFirstWeek=1,ERA=1,YEAR=2012,MONTH=11,WEEK_OF_YEAR=49,WEEK_OF_MONTH=2,DAY_OF_MONTH=4,DAY_OF_YEAR=339,DAY_OF_WEEK=3,DAY_OF_WEEK_IN_MONTH=1,AM_PM=0,HOUR=0,HOUR_OF_DAY=0,MINUTE=0,SECOND=0,MILLISECOND=0,ZONE_OFFSET=0,DST_OFFSET=0]> but was:<java.util.GregorianCalendar[time=1354579200000,areFieldsSet=true,areAllFieldsSet=true,lenient=true,zone=sun.util.calendar.ZoneInfo[id="Europe/London",offset=0,dstSavings=3600000,useDaylight=true,transitions=242,lastRule=java.util.SimpleTimeZone[id=Europe/London,offset=0,dstSavings=3600000,useDaylight=true,startYear=0,startMode=2,startMonth=2,startDay=-1,startDayOfWeek=1,startTime=3600000,startTimeMode=2,endMode=2,endMonth=9,endDay=-1,endDayOfWeek=1,endTime=3600000,endTimeMode=2]],firstDayOfWeek=2,minimalDaysInFirstWeek=4,ERA=1,YEAR=2012,MONTH=11,WEEK_OF_YEAR=49,WEEK_OF_MONTH=1,DAY_OF_MONTH=4,DAY_OF_YEAR=339,DAY_OF_WEEK=3,DAY_OF_WEEK_IN_MONTH=1,AM_PM=0,HOUR=0,HOUR_OF_DAY=0,MINUTE=0,SECOND=0,MILLISECOND=0,ZONE_OFFSET=0,DST_OFFSET=0]>

Reply all
Reply to author
Forward
0 new messages