diff --git a/src/Lucene.Net.TestFramework/Index/BasePostingsFormatTestCase.cs b/src/Lucene.Net.TestFramework/Index/BasePostingsFormatTestCase.cs index 80c51f61ac..adb35b2776 100644 --- a/src/Lucene.Net.TestFramework/Index/BasePostingsFormatTestCase.cs +++ b/src/Lucene.Net.TestFramework/Index/BasePostingsFormatTestCase.cs @@ -348,9 +348,9 @@ private static SeedPostings GetSeedPostings(string term, long seed, bool withLiv } [NUnit.Framework.OneTimeSetUp] - public override void BeforeClass() // Renamed from CreatePostings to ensure the base class setup is called before this one + public override void OneTimeSetUp() // Renamed from CreatePostings to ensure the base class setup is called before this one { - base.BeforeClass(); + base.OneTimeSetUp(); totalPostings = 0; totalPayloadBytes = 0; @@ -375,7 +375,7 @@ public override void BeforeClass() // Renamed from CreatePostings to ensure the continue; } - fieldInfoArray[fieldUpto] = new FieldInfo(field, true, fieldUpto, false, false, true, + fieldInfoArray[fieldUpto] = new FieldInfo(field, true, fieldUpto, false, false, true, IndexOptions.DOCS_AND_FREQS_AND_POSITIONS_AND_OFFSETS, DocValuesType.NONE, DocValuesType.NUMERIC, null); fieldUpto++; @@ -472,13 +472,13 @@ public override void BeforeClass() // Renamed from CreatePostings to ensure the } [NUnit.Framework.OneTimeTearDown] - public override void AfterClass() + public override void OneTimeTearDown() { allTerms = null; fieldInfos = null; fields = null; globalLiveDocs = null; - base.AfterClass(); + base.OneTimeTearDown(); } // TODO maybe instead of @BeforeClass just make a single test run: build postings & index & test it? @@ -653,18 +653,18 @@ private class ThreadState public DocsAndPositionsEnum ReuseDocsAndPositionsEnum { get; set; } } - private void VerifyEnum(ThreadState threadState, - string field, - BytesRef term, + private void VerifyEnum(ThreadState threadState, + string field, + BytesRef term, TermsEnum termsEnum, // Maximum options (docs/freqs/positions/offsets) to test: - IndexOptions maxTestOptions, - - IndexOptions maxIndexOptions, - ISet