NightOwl888 opened a new issue, #1016:
URL: https://github.com/apache/lucenenet/issues/1016

   ### Is there an existing issue for this?
   
   - [X] I have searched the existing issues
   
   ### Task description
   
   The "before" and "after" methods are inconsistently named in 
`LuceneTestCase`. Here is a comparison:
   
   | JUnit | NUnit | Lucene.NET |
   |------|------|------|
   | `@Before` | `[SetUp]` | `SetUp()` |
   | `@After`    | `[TearDown]` | `TearDown()` |
   | `@BeforeClass` | `[OneTimeSetUp]` | `BeforeClass()` |
   | `@AfterClass` | `[OneTimeTearDown]` | `AfterClass()` |
   
   It is more sensible to follow NUnit conventions than JUnit. To match NUnit, 
we should be using `OneTimeSetUp()` and `OneTimeTearDown()` as method names 
rather than `BeforeClass()` and `AfterClass()`.
   
   > **NOTE: ** These cannot be made static as they were in Lucene because 
NUnit calls the base class first rather than the outermost subclass. So, we are 
relying on .NET method overrides instead because the order is critical to clean 
up properly.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@lucenenet.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to