lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Doug Sale (JIRA)" <>
Subject [jira] Resolved: (LUCENENET-127) broken test case: Lucene.Net.Analysis.TestStandardAnalyzer.TestDeprecatedAcronyms()
Date Thu, 17 Jul 2008 06:07:31 GMT


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:
>             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.

View raw message