junit.framework.AssertionFailedError: sun.util.calendar.ZoneInfo[id="Asia/Jerusalem",offset=7200000,dstSavings=3600000,useDaylight=true, transitions=143,lastRule=java.util.SimpleTimeZone[id=Asia/Jerusalem,offset=7200000,dstSavings=3600000, useDaylight=true,startYear=0,startMode=3,startMonth=2,startDay=26,startDayOfWeek=6,startTime=7200000, startTimeMode=0,endMode=1,endMonth=8,endDay=13,endDayOfWeek=0,endTime=7200000,endTimeMode=0]] expected:<15> but was:<16>

Atlassian JIRA | Matt Ryall | 10 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    So I'm trying to generate a Confluence-2.6-SNAPSHOT jar to build a plugin, but unfortunately, one unit test fails: testBackDatedPostDates(com.atlassian.confluence.pages.actions.TestCreateBlogPostAction) The strange thing is, though, that the 2.6 builds on BEAC are green. This is on a virgin checkout of the confluence_2_6_stable branch. I ran 'mvn test' and got this one failure. I reproduced the failure it on my local machine through the command-line, through IDEA and again on BDAC. The error, if you're interested: junit.framework.AssertionFailedError: sun.util.calendar.ZoneInfo[id="Asia/Jerusalem",offset=7200000,dstSavings=3600000,useDaylight=true, transitions=143,lastRule=java.util.SimpleTimeZone[id=Asia/Jerusalem,offset=7200000,dstSavings=3600000, useDaylight=true,startYear=0,startMode=3,startMonth=2,startDay=26,startDayOfWeek=6,startTime=7200000, startTimeMode=0,endMode=1,endMonth=8,endDay=13,endDayOfWeek=0,endTime=7200000,endTimeMode=0]] expected:<15> but was:<16> at com.atlassian.confluence.pages.actions.TestCreateBlogPostAction.testBackDatedPostDates(TestCreateBlogPostAction.java:115) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:40)

    Atlassian JIRA | 10 years ago | Matt Ryall
    junit.framework.AssertionFailedError: sun.util.calendar.ZoneInfo[id="Asia/Jerusalem",offset=7200000,dstSavings=3600000,useDaylight=true, transitions=143,lastRule=java.util.SimpleTimeZone[id=Asia/Jerusalem,offset=7200000,dstSavings=3600000, useDaylight=true,startYear=0,startMode=3,startMonth=2,startDay=26,startDayOfWeek=6,startTime=7200000, startTimeMode=0,endMode=1,endMonth=8,endDay=13,endDayOfWeek=0,endTime=7200000,endTimeMode=0]] expected:<15> but was:<16>
  2. 0

    So I'm trying to generate a Confluence-2.6-SNAPSHOT jar to build a plugin, but unfortunately, one unit test fails: testBackDatedPostDates(com.atlassian.confluence.pages.actions.TestCreateBlogPostAction) The strange thing is, though, that the 2.6 builds on BEAC are green. This is on a virgin checkout of the confluence_2_6_stable branch. I ran 'mvn test' and got this one failure. I reproduced the failure it on my local machine through the command-line, through IDEA and again on BDAC. The error, if you're interested: junit.framework.AssertionFailedError: sun.util.calendar.ZoneInfo[id="Asia/Jerusalem",offset=7200000,dstSavings=3600000,useDaylight=true, transitions=143,lastRule=java.util.SimpleTimeZone[id=Asia/Jerusalem,offset=7200000,dstSavings=3600000, useDaylight=true,startYear=0,startMode=3,startMonth=2,startDay=26,startDayOfWeek=6,startTime=7200000, startTimeMode=0,endMode=1,endMonth=8,endDay=13,endDayOfWeek=0,endTime=7200000,endTimeMode=0]] expected:<15> but was:<16> at com.atlassian.confluence.pages.actions.TestCreateBlogPostAction.testBackDatedPostDates(TestCreateBlogPostAction.java:115) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:40)

    Atlassian JIRA | 10 years ago | Matt Ryall
    junit.framework.AssertionFailedError: sun.util.calendar.ZoneInfo[id="Asia/Jerusalem",offset=7200000,dstSavings=3600000,useDaylight=true, transitions=143,lastRule=java.util.SimpleTimeZone[id=Asia/Jerusalem,offset=7200000,dstSavings=3600000, useDaylight=true,startYear=0,startMode=3,startMonth=2,startDay=26,startDayOfWeek=6,startTime=7200000, startTimeMode=0,endMode=1,endMonth=8,endDay=13,endDayOfWeek=0,endTime=7200000,endTimeMode=0]] expected:<15> but was:<16>

    Root Cause Analysis

    1. junit.framework.AssertionFailedError

      sun.util.calendar.ZoneInfo[id="Asia/Jerusalem",offset=7200000,dstSavings=3600000,useDaylight=true, transitions=143,lastRule=java.util.SimpleTimeZone[id=Asia/Jerusalem,offset=7200000,dstSavings=3600000, useDaylight=true,startYear=0,startMode=3,startMonth=2,startDay=26,startDayOfWeek=6,startTime=7200000, startTimeMode=0,endMode=1,endMonth=8,endDay=13,endDayOfWeek=0,endTime=7200000,endTimeMode=0]] expected:<15> but was:<16>

      at com.atlassian.confluence.pages.actions.TestCreateBlogPostAction.testBackDatedPostDates()
    2. com.atlassian.confluence
      TestCreateBlogPostAction.testBackDatedPostDates
      1. com.atlassian.confluence.pages.actions.TestCreateBlogPostAction.testBackDatedPostDates(TestCreateBlogPostAction.java:115)
      1 frame
    3. Java RT
      DelegatingMethodAccessorImpl.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      3 frames
    4. IDEA
      JUnitStarter.main
      1. com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:40)
      1 frame