Uploaded image for project: 'Commons Validator'
  1. Commons Validator
  2. VALIDATOR-369

DateValidatorTest.testCompare() fails with GMT-12

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.4.1 Release
    • Fix Version/s: 1.5.0
    • Component/s: Routines
    • Labels:
      None

      Description

      There is a test failure when the system timezone is set to GMT-12:

      Tests run: 8, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.02 sec <<< FAILURE! - in org.apache.commons.validator.routines.DateValidatorTest
      testCompare(org.apache.commons.validator.routines.DateValidatorTest)  Time elapsed: 0.004 sec  <<< FAILURE!
      junit.framework.AssertionFailedError: date EQ expected:<0> but was:<1>
              at junit.framework.Assert.fail(Assert.java:57)
              at junit.framework.Assert.failNotEquals(Assert.java:329)
              at junit.framework.Assert.assertEquals(Assert.java:78)
              at junit.framework.Assert.assertEquals(Assert.java:234)
              at junit.framework.TestCase.assertEquals(TestCase.java:401)
              at org.apache.commons.validator.routines.DateValidatorTest.testCompare(DateValidatorTest.java:126)
      
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ebourg Emmanuel Bourg
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: