[
https://issues.apache.org/jira/browse/LUCENENET-127?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Doug Sale resolved LUCENENET-127.
---------------------------------
Resolution: Fixed
This issue an instance of the Test class initialization discrepancy between
JUnit and NUnit.
- JUnit creates a new instance of the Test class for every Test case (method)
invocation
- NUnit uses the same instance of the Test class for every Test case (method)
invocation
The test case passes when run alone and fails when run w/ other test cases.
The solution is to re-initialize the shared state (create a new
StandardAnalyzer instance) for the failing test case.
> broken test case:
> Lucene.Net.Analysis.TestStandardAnalyzer.TestDeprecatedAcronyms()
> -----------------------------------------------------------------------------------
>
> Key: LUCENENET-127
> URL: https://issues.apache.org/jira/browse/LUCENENET-127
> Project: Lucene.Net
> Issue Type: Bug
> Reporter: Doug Sale
> Priority: Minor
> Attachments: TestStandardAnalyzer.patch
>
> Original Estimate: 0h
> Remaining Estimate: 0h
>
> Test case TestDeprecatedAcronyms() fails when run with all unit tests in test
> class TestStandardAnalyzer.cs but succeeds when run alone.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.