Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-3710

DST switching not considered for in BusinessCalendarImpl

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Minor Minor
    • jBPM 3.2.15
    • jBPM 3.2.12
    • Runtime Engine
    • None

      BusinessCalendarImpl doesn't honor DST switching, in some special cases (less than 5 days before DST switching and 1 hour before midnight)
      the following test fails:

      -------------------------------------------------------------------------------
      Test set: org.jbpm.test.timer.TimerTest
      -------------------------------------------------------------------------------
      Tests run: 17, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.696 sec <<< FAILURE!
      testTimerELCalendarSubtract(org.jbpm.test.timer.TimerTest)  Time elapsed: 0.071 sec  <<< FAILURE!
      junit.framework.AssertionFailedError: expected:<26> but was:<27>
              at junit.framework.Assert.fail(Assert.java:47)
              at junit.framework.Assert.failNotEquals(Assert.java:280)
              at junit.framework.Assert.assertEquals(Assert.java:64)
              at junit.framework.Assert.assertEquals(Assert.java:198)
              at junit.framework.Assert.assertEquals(Assert.java:204)
              at org.jbpm.test.timer.TimerTest.testTimerELCalendarSubtract(TimerTest.java:304)
      

      It seems to me like this is cause by the BusinessCalendarImpl and the upcoming DST which leads to a wrong day of month calculation in the test and/or BusinessCalendarImpl class.

            marco.rietveld Marco Rietveld (Inactive)
            mwohlf_jira Michael Wohlfart (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: