[ https://issues.apache.org/jira/browse/LUCENE-1836?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12746511#action_12746511 ]
Uwe Schindler commented on LUCENE-1836: --------------------------------------- bq. Uwe, if you get a chance maybe you can confirm this fix to ParametricRange takes care of your problem? I applied your patch (without the setting of the default locale), so only the ParametricRange part and the test now passes. I think, this was it. Thanks! bq. One thought i had on the test problem was to do something like you did for LUCENE-1825, make a base LocalizedTestCase or whatever that runs all tests with different default Locales. Good idea! In my last patch for 1825 I also added a Set, that can be specified in the tests ctor to limit the multiple runs only to specific testmethods. See TestIndexWriter in LUCENE-1843 (which takes very long, so I only tested some methods two times). Running really all tests about 50 times (number of locales in a standard jvm) would take too long :-) I would only subclass local-aware tests and only a subset of testmethods, if there are too many long-time ones. > Flexible QueryParser fails with local different from en_US > ---------------------------------------------------------- > > Key: LUCENE-1836 > URL: https://issues.apache.org/jira/browse/LUCENE-1836 > Project: Lucene - Java > Issue Type: Bug > Components: contrib/* > Affects Versions: 2.9 > Reporter: Uwe Schindler > Assignee: Luis Alves > Fix For: 2.9 > > Attachments: LUCENE-1836.patch, LUCENE-1836.patch > > > I get the following error during the mentioned testcases on my computer, if I > use the Locale de_DE (windows 32): > {code} > [junit] Testsuite: org.apache.lucene.queryParser.standard.TestQPHelper > [junit] Tests run: 29, Failures: 1, Errors: 0, Time elapsed: 1,156 sec > [junit] > [junit] ------------- Standard Output --------------- > [junit] Result: (fieldX:xxxxx fieldy:xxxxxxxx)^2.0 > [junit] ------------- ---------------- --------------- > [junit] Testcase: > testLocalDateFormat(org.apache.lucene.queryParser.standard.TestQPHelper): > FAILED > [junit] expected:<1> but was:<0> > [junit] junit.framework.AssertionFailedError: expected:<1> but was:<0> > [junit] at > org.apache.lucene.queryParser.standard.TestQPHelper.assertHits(TestQPHelper.java:1148) > [junit] at > org.apache.lucene.queryParser.standard.TestQPHelper.testLocalDateFormat(TestQPHelper.java:1005) > [junit] at > org.apache.lucene.util.LuceneTestCase.runTest(LuceneTestCase.java:201) > [junit] > [junit] > [junit] Test org.apache.lucene.queryParser.standard.TestQPHelper FAILED > [junit] Testsuite: > org.apache.lucene.queryParser.standard.TestQueryParserWrapper > [junit] Tests run: 27, Failures: 1, Errors: 0, Time elapsed: 1,219 sec > [junit] > [junit] ------------- Standard Output --------------- > [junit] Result: (fieldX:xxxxx fieldy:xxxxxxxx)^2.0 > [junit] ------------- ---------------- --------------- > [junit] Testcase: > testLocalDateFormat(org.apache.lucene.queryParser.standard.TestQueryParserWrapper): > FAILED > [junit] expected:<1> but was:<0> > [junit] junit.framework.AssertionFailedError: expected:<1> but was:<0> > [junit] at > org.apache.lucene.queryParser.standard.TestQueryParserWrapper.assertHits(TestQueryParserWrapper.java:1120) > [junit] at > org.apache.lucene.queryParser.standard.TestQueryParserWrapper.testLocalDateFormat(TestQueryParserWrapper.java:985) > [junit] at > org.apache.lucene.util.LuceneTestCase.runTest(LuceneTestCase.java:201) > [junit] > [junit] > [junit] Test > org.apache.lucene.queryParser.standard.TestQueryParserWrapper FAILED > {code} > With en_US as locale it works. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscr...@lucene.apache.org For additional commands, e-mail: java-dev-h...@lucene.apache.org