[
https://issues.apache.org/jira/browse/DERBY-6544?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13971865#comment-13971865
]
Knut Anders Hatlen commented on DERBY-6544:
-------------------------------------------
Since the database locale (territory) is set at database creation time, maybe a
fresh database needs to be created in order for it to take effect. If you run
the test standalone, and the system/wombat database doesn't already exist, it
may appear to work because the database is created by the test, but when it's
run as part of a suite, it ends up with the locale that happened to be the
current locale when some earlier test case ran and created the database.
Most tests that use LocaleTestSetup wrap it around a single-use database
decorator. Maybe that'll do the trick for the Lucene tests as well.
> Non-english locale flunks LuceneSupportTest
> -------------------------------------------
>
> Key: DERBY-6544
> URL: https://issues.apache.org/jira/browse/DERBY-6544
> Project: Derby
> Issue Type: Bug
> Components: Test
> Affects Versions: 10.11.0.0
> Reporter: Rick Hillegas
>
> The following error surfaced in the nightly tests on a windows machine with a
> Swedish locale. See
> http://download.java.net/javadesktop/derby/request_5589934/
> {noformat}
> junit.framework.AssertionFailedError: Column value mismatch @ column '1',
> row 1:
> Expected: >en<
> Found: >sv<
> at
> org.apache.derbyTesting.junit.JDBC.assertRowInResultSet(JDBC.java:1303)
> at
> org.apache.derbyTesting.junit.JDBC.assertRowInResultSet(JDBC.java:1215)
> at
> org.apache.derbyTesting.junit.JDBC.assertFullResultSetMinion(JDBC.java:1102)
> at
> org.apache.derbyTesting.junit.JDBC.assertFullResultSet(JDBC.java:1025)
> at org.apache.derbyTesting.junit.JDBC.assertFullResultSet(JDBC.java:982)
> at org.apache.derbyTesting.junit.JDBC.assertFullResultSet(JDBC.java:940)
> at
> org.apache.derbyTesting.functionTests.tests.lang.LuceneSupportTest.testCreateAndQueryIndex(LuceneSupportTest.java:75)
> at
> org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:118)
> at
> org.apache.derbyTesting.junit.BaseJDBCTestCase.runBareOverridable(BaseJDBCTestCase.java:440)
> at
> org.apache.derbyTesting.junit.BaseJDBCTestCase.runBare(BaseJDBCTestCase.java:457)
> at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
> at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
> at junit.extensions.TestSetup.run(TestSetup.java:25)
> at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
> at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
> at junit.extensions.TestSetup.run(TestSetup.java:25)
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.2#6252)