OpenJPA
  1. OpenJPA
  2. OPENJPA-1124

TestDateQueries and TestQueryTimeout are locale dependent

    Details

    • Type: Test Test
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.3.0, 2.0.0
    • Fix Version/s: 2.0.0-M3
    • Component/s: None
    • Labels:
      None

      Description

      If you happen to run TestDateQueries and TestQueryTimeout with non-English/American locale, they will fail due to date and number formatting.

        Activity

        Donald Woods made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Donald Woods made changes -
        Fix Version/s 2.0.0-M3 [ 12314148 ]
        Fix Version/s 1.3.0 [ 12313326 ]
        Fix Version/s 2.0.0 [ 12314019 ]
        Milosz Tylenda made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 1.3.0 [ 12313326 ]
        Fix Version/s 2.0.0 [ 12314019 ]
        Resolution Fixed [ 1 ]
        Hide
        Milosz Tylenda added a comment -

        Fix applied to trunk and 1.3.x branch.

        Show
        Milosz Tylenda added a comment - Fix applied to trunk and 1.3.x branch.
        Hide
        Milosz Tylenda added a comment -

        TestDateQueries fails in setUp and TestQueryTimeout fails in testQueryTimeout5. The last one is quite tricky to guess where

        I have a patch ready and will commit over the week-end.

        Show
        Milosz Tylenda added a comment - TestDateQueries fails in setUp and TestQueryTimeout fails in testQueryTimeout5. The last one is quite tricky to guess where I have a patch ready and will commit over the week-end.
        Hide
        Donald Woods added a comment -

        Which junit tests exactly are failing for you?
        The trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/query/TestQueryTimeout.java is using integer timeout for its tests and not anything to do with the system time as far as I remember...

        Show
        Donald Woods added a comment - Which junit tests exactly are failing for you? The trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/query/TestQueryTimeout.java is using integer timeout for its tests and not anything to do with the system time as far as I remember...
        Milosz Tylenda created issue -

          People

          • Assignee:
            Milosz Tylenda
            Reporter:
            Milosz Tylenda
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development