Derby
  1. Derby
  2. DERBY-4713

Subclasses of ScriptTestCase can not run correctly with the non-English default locale

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 10.8.1.2
    • Component/s: Test
    • Labels:
      None
    • Urgency:
      Normal

      Description

      If the default locale is not English, many subclasses of ScriptTestCase will fail.

      For example, run NetIjTest (a subclass of ScriptTestcase) in a Chinese OS, the test case will fail:

      D:\derby\test>java junit.textui.TestRunner org.apache.derbyTesting.functionTests
      .tests.derbynet.NetIjTest
      .F
      Time: 5.422
      There was 1 failure:
      1) testclientij(org.apache.derbyTesting.functionTests.tests.derbynet.NetIjTest)j
      unit.framework.ComparisonFailure: Output at line 34 expected:<[ERROR 42X05: Tabl
      e/View 'APP.NOTTHERE' does not exist.]> but was:<[?? 42X05????APP.NOTTHERE??
      ?]>
      at org.apache.derbyTesting.functionTests.util.CanonTestCase.compareCanon
      (CanonTestCase.java:106)
      at org.apache.derbyTesting.functionTests.util.ScriptTestCase.runTest(Scr
      iptTestCase.java:198)
      at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:
      109)
      at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
      at junit.extensions.TestSetup$1.protect(TestSetup.java:23)
      at junit.extensions.TestSetup.run(TestSetup.java:27)
      at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57
      )
      at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
      at junit.extensions.TestSetup$1.protect(TestSetup.java:23)
      at junit.extensions.TestSetup.run(TestSetup.java:27)
      at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57
      )
      at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
      at junit.extensions.TestSetup$1.protect(TestSetup.java:23)
      at junit.extensions.TestSetup.run(TestSetup.java:27)
      at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
      at junit.extensions.TestSetup$1.protect(TestSetup.java:23)
      at junit.extensions.TestSetup.run(TestSetup.java:27)

      FAILURES!!!
      Tests run: 1, Failures: 1, Errors: 0

      While, it succeed running with a English-language lcoale.

      D:\derby\test>java -Duser.language=en junit.textui.TestRunner org.apache.derbyTe
      sting.functionTests.tests.derbynet.NetIjTest
      .
      Time: 6.187

      OK (1 test)

      1. derby-4713-2.patch
        3 kB
        Yun Lee
      2. derby-4713-2.stat
        0.4 kB
        Yun Lee
      3. derby-4713-1.stat
        0.3 kB
        Yun Lee
      4. bit.out
        39 kB
        Yun Lee
      5. derby-4713-1.patch
        3 kB
        Yun Lee
      6. derby-4713.patch
        9 kB
        Yun Lee
      7. derby-4713.stat
        0.8 kB
        Yun Lee

        Issue Links

          Activity

          Yun Lee created issue -
          Yun Lee made changes -
          Field Original Value New Value
          Status Open [ 1 ] In Progress [ 3 ]
          Yun Lee made changes -
          Attachment derby-4713.stat [ 12448179 ]
          Attachment derby-4713.patch [ 12448180 ]
          Yun Lee made changes -
          Attachment derby-4713-1.patch [ 12448488 ]
          Attachment bit.out [ 12448489 ]
          Attachment derby-4713-1.stat [ 12448490 ]
          Yun Lee made changes -
          Link This issue blocks DERBY-3801 [ DERBY-3801 ]
          Yun Lee made changes -
          Attachment derby-4713-2.stat [ 12451996 ]
          Attachment derby-4713-2.patch [ 12451997 ]
          Yun Lee made changes -
          Issue & fix info [Patch Available]
          Myrna van Lunteren made changes -
          Status In Progress [ 3 ] Resolved [ 5 ]
          Issue & fix info [Patch Available]
          Fix Version/s 10.8.0.0 [ 12315561 ]
          Resolution Fixed [ 1 ]
          Rick Hillegas made changes -
          Fix Version/s 10.8.1.1 [ 12316356 ]
          Fix Version/s 10.8.1.0 [ 12315561 ]
          Rick Hillegas made changes -
          Fix Version/s 10.8.1.2 [ 12316362 ]
          Fix Version/s 10.8.1.1 [ 12316356 ]
          Knut Anders Hatlen made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Gavin made changes -
          Workflow jira [ 12514284 ] Default workflow, editable Closed status [ 12802799 ]

            People

            • Assignee:
              Yun Lee
              Reporter:
              Yun Lee
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development