db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Houx Zhang (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (DERBY-5251) make ErrorCodeTest pass in non-English locale
Date Sun, 29 May 2011 09:55:47 GMT

     [ https://issues.apache.org/jira/browse/DERBY-5251?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Houx Zhang updated DERBY-5251:
------------------------------

    Attachment: DERBY-5251.patch

As the diffrent is just on prompt message, it's safe to just set a local setup.

D:\derby\test>java junit.textui.TestRunner org.apache.derbyTesting.functionTests
.tests.lang.ErrorCodeTest
.
Time: 2.344

OK (1 test)


D:\derby\test>

> make ErrorCodeTest pass in non-English locale
> ---------------------------------------------
>
>                 Key: DERBY-5251
>                 URL: https://issues.apache.org/jira/browse/DERBY-5251
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>            Reporter: Houx Zhang
>            Assignee: Houx Zhang
>              Labels: gsoc11
>         Attachments: DERBY-5251.patch
>
>
> 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>

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message