Derby
  1. Derby
  2. DERBY-5251

make ErrorCodeTest pass in non-English locale

    Details

      Description

      lang.ErrorCodeTest will fail in Chinese Locale:

      D:\derby\test>java junit.textui.TestRunner org.apache.derbyTesting.functionTests
      .tests.lang.ErrorCodeTest
      .F
      Time: 4.797
      There was 1 failure:
      1) test_errorcode(org.apache.derbyTesting.functionTests.tests.lang.ErrorCodeTest
      )junit.framework.AssertionFailedError: Column value mismatch @ column 'MESSAGE',
      row 1:
      Expected: >At least one parameter to the current statement is uninitialized.
      <
      Found: >当前语句中至少一个参数未初始化。<
      at org.apache.derbyTesting.junit.JDBC.assertRowInResultSet(JDBC.java:121
      3)
      at org.apache.derbyTesting.junit.JDBC.assertRowInResultSet(JDBC.java:112
      5)
      at org.apache.derbyTesting.junit.JDBC.assertFullResultSetMinion(JDBC.jav
      a:1012)
      at org.apache.derbyTesting.junit.JDBC.assertFullResultSet(JDBC.java:935)

      at org.apache.derbyTesting.junit.JDBC.assertFullResultSet(JDBC.java:892)

      at org.apache.derbyTesting.junit.JDBC.assertFullResultSet(JDBC.java:850)

      at org.apache.derbyTesting.functionTests.tests.lang.ErrorCodeTest.test_e
      rrorcode(ErrorCodeTest.java:88)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
      java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:
      112)

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

      D:\derby\test>

        Issue Links

          Activity

            People

            • Assignee:
              Houx Zhang
              Reporter:
              Houx Zhang
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development