Uploaded image for project: 'Causeway'
  1. Causeway
  2. CAUSEWAY-80

Re-enable testDate and testSqlDate tests in the common object store test suite

    XMLWordPrintableJSON

Details

    Description

      The Hudson build failed the applib Date and java.sql.date SqlDate with:
      Error Message

      SQL date 2010-04-09 is not equal to 2010-04-08

      Stacktrace

      junit.framework.AssertionFailedError: SQL date 2010-04-09 is not equal to 2010-04-08
      at junit.framework.Assert.fail(Assert.java:47)
      at junit.framework.Assert.assertTrue(Assert.java:20)
      at org.apache.isis.alternatives.objectstore.sql.common.SqlIntegrationTestCommon.testSqlDate(SqlIntegrationTestCommon.java:321)

      and

      Error Message

      2010-3-5 is not equal to 2010-3-4

      Stacktrace

      junit.framework.AssertionFailedError: 2010-3-5 is not equal to 2010-3-4
      at junit.framework.Assert.fail(Assert.java:47)
      at junit.framework.Assert.assertTrue(Assert.java:20)
      at org.apache.isis.alternatives.objectstore.sql.common.SqlIntegrationTestCommon.testDate(SqlIntegrationTestCommon.java:308)

      It smacks of regional issues (stored and retrieved dates straddle midnight, when one side of the persistance uses one time-zone while the other side uses another).

      Test used to pass.

      Attachments

        Activity

          People

            kevin-m Kevin Meyer
            kevin-m Kevin Meyer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: