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] [Commented] (DERBY-5155) Make testcases pass in non-English locale
Date Sun, 27 Mar 2011 05:05:05 GMT

    [ https://issues.apache.org/jira/browse/DERBY-5155?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13011727#comment-13011727

Houx Zhang commented on DERBY-5155:

Cited from development mailing list:

Hi, all. When I ran org.apache.derbyTesting.functionTests.tests.tools._Suite, I found 11 failure.
i.e. for SysinfoCPCheckTest, I've got error message below:

D:\derby\test>java junit.textui.TestRunner org.apache.derbyTesting.functionTests
Time: 0.265
There was 1 failure:
1) testClassPathChecker(org.apache.derbyTesting.functionTests.tests.tools.Sysinf
oCPCheckTest)junit.framework.ComparisonFailure: null expected:<[Testing for pres
ence of all Derby-related libraries; typically, only some are needed.]> but was:
<[测试所有与 Derby 相关的库是否存在;通常只需要其中的某些库。]>
        at org.apache.derbyTesting.functionTests.tests.tools.SysinfoCPCheckTest.
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
        at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:

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

I seems derby testing can not work well in Chinese Locale, maybe all other nonEnglish locales.
Following the Derby wiki,  I have tried to use "LocaleTestSetup' to decorate the test case
in Locale.English and it pass successfully!

As mentioned above, there are still some more testcases (maybe a lot of) can not work in nonEnglish
locale. How to deal with this problem? A not so smart method is to decorate them individually
in Locale.English, maybe a better method is to add a decoration into the root of the regression
test or add a new system property to resolve it thoroughly.

Wish for your reply, thanks!


> Make testcases pass in non-English locale
> -----------------------------------------
>                 Key: DERBY-5155
>                 URL: https://issues.apache.org/jira/browse/DERBY-5155
>             Project: Derby
>          Issue Type: Improvement
>          Components: Test
>            Reporter: Houx Zhang
>            Assignee: Houx Zhang
>              Labels: gsoc, gsoc2011
> There are a lot of derby testing depending on the English locale, which will fail in
a non-English locale. A general resolution should be provided.

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

View raw message