Skip to content

Commit

Permalink
Revert "Replacing obsolete [TestFixtureTearDown] with [OneTimeTearDown]"
Browse files Browse the repository at this point in the history
This reverts commit fd7aeba.
  • Loading branch information
NightOwl888 committed Dec 19, 2016
1 parent 1a36bec commit 10efe5b
Show file tree
Hide file tree
Showing 42 changed files with 42 additions and 42 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ public static void CreatePostings()
}
}

[OneTimeTearDown]
[TestFixtureTearDown]
public static void AfterClass()
{
AllTerms = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ public virtual int Compare(ConstructorInfo arg0, ConstructorInfo arg1)
}
}

[OneTimeTearDown]
[TestFixtureTearDown]
public static void AfterClass()
{
tokenizers = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public static void BeforeClass()
}
}

[OneTimeTearDown]
[TestFixtureTearDown]
public static void afterClass()
{
dictionary = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public void BeforeClass()
taxoReader = new DirectoryTaxonomyReader(taxoDir);
}

[OneTimeTearDown]
[TestFixtureTearDown]
public static void AfterClass()
{
reader.Dispose();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ static TestTaxonomyFacetCounts2()
private static Net.Store.Directory indexDir, taxoDir;
private static IDictionary<string, int?> allExpectedCounts, termExpectedCounts;

[OneTimeTearDown]
[TestFixtureTearDown]
public static void AfterClassCountingFacetsAggregatorTest()
{
IOUtils.Close(indexDir, taxoDir);
Expand Down
2 changes: 1 addition & 1 deletion src/Lucene.Net.Tests.Facet/TestDrillDownQuery.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public class TestDrillDownQuery : FacetTestCase
private static FacetsConfig config;


[OneTimeTearDown]
[TestFixtureTearDown]
public static void AfterClassDrillDownQueryTest()
{
IOUtils.Close(reader, taxo, dir, taxoDir);
Expand Down
2 changes: 1 addition & 1 deletion src/Lucene.Net.Tests.Misc/Document/TestLazyDocument.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class TestLazyDocument : LuceneTestCase

public Directory dir = NewDirectory();

[OneTimeTearDown]
[TestFixtureTearDown]
public void RemoveIndex()
{
if (null != dir)
Expand Down
2 changes: 1 addition & 1 deletion src/Lucene.Net.Tests.Misc/Index/Sorter/SorterTestBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ public void BeforeClassSorterTestBase()
reader = SlowCompositeReaderWrapper.Wrap(DirectoryReader.Open(dir));
}

[OneTimeTearDown]
[TestFixtureTearDown]
public static void AfterClassSorterTestBase()
{
reader.Dispose();
Expand Down
2 changes: 1 addition & 1 deletion src/Lucene.Net.Tests.Misc/Misc/TestHighFreqTerms.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public void SetUpClass()
TestUtil.CheckIndex(dir);
}

[OneTimeTearDown]
[TestFixtureTearDown]
public static void TearDownClass()
{
reader.Dispose();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public static void beforeClass()
qpAnalyzer = new QPTestAnalyzer();
}

[OneTimeTearDown]
[TestFixtureTearDown]
public static void afterClass()
{
qpAnalyzer = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ private static String NumberToString(/*Number*/ object number)
return NUMBER_FORMAT.Parse(NUMBER_FORMAT.Format(number));
}

[OneTimeTearDown]
[TestFixtureTearDown]
public static void AfterClass()
{
searcher = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public static void BeforeClass()
qpAnalyzer = new QPTestAnalyzer();
}

[OneTimeTearDown]
[TestFixtureTearDown]
public static void AfterClass()
{
qpAnalyzer = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public static void BeforeClass()
qpAnalyzer = new QPTestAnalyzer();
}

[OneTimeTearDown]
[TestFixtureTearDown]
public static void AfterClass()
{
qpAnalyzer = null;
Expand Down
2 changes: 1 addition & 1 deletion src/Lucene.Net.Tests.QueryParser/Xml/TestParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public void BeforeClass()

}

[OneTimeTearDown]
[TestFixtureTearDown]
public static void AfterClass()
{
reader.Dispose();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public static void beforeClass()
}
}

[OneTimeTearDown]
[TestFixtureTearDown]
public static void afterClass()
{
Codec.Default = (savedCodec);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public void BeforeClass()
SampleTerms = Sample(Random(), Reader, 1000);
}

[OneTimeTearDown]
[TestFixtureTearDown]
public static void AfterClass()
{
TermEnum.Dispose();
Expand Down
2 changes: 1 addition & 1 deletion src/Lucene.Net.Tests/core/Index/Test2BDocs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public static void BeforeClass()
iw.Dispose();
}

[OneTimeTearDown]
[TestFixtureTearDown]
public void AfterClass()
{
Dir.Dispose();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ public void BeforeClass()
}
}

[OneTimeTearDown]
[TestFixtureTearDown]
public void AfterClass()
{
foreach (Directory d in OldIndexDirs.Values)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public void BeforeClass()
}
}

[OneTimeTearDown]
[TestFixtureTearDown]
public void AfterClass()
{
foreach (Directory d in OldIndexDirs.Values)
Expand Down
2 changes: 1 addition & 1 deletion src/Lucene.Net.Tests/core/Index/TestFieldsReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public void BeforeClass()
FaultyIndexInput.DoFail = false;
}

[OneTimeTearDown]
[TestFixtureTearDown]
public static void AfterClass()
{
Dir.Dispose();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public static void BeforeClass()
LineDocFile = new LineFileDocs(Random(), DefaultCodecSupportsDocValues());
}

[OneTimeTearDown]
[TestFixtureTearDown]
public static void AfterClass()
{
LineDocFile.Dispose();
Expand Down
2 changes: 1 addition & 1 deletion src/Lucene.Net.Tests/core/Index/TestIndexInput.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public static void BeforeClass()
}
}

[OneTimeTearDown]
[TestFixtureTearDown]
public static void AfterClass()
{
INTS = null;
Expand Down
2 changes: 1 addition & 1 deletion src/Lucene.Net.Tests/core/Search/BaseTestRangeFilter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public void BeforeClassBaseTestRangeFilter()
UnsignedIndexReader = Build(Random(), UnsignedIndexDir);
}

[OneTimeTearDown]
[TestFixtureTearDown]
public static void AfterClassBaseTestRangeFilter()
{
SignedIndexReader.Dispose();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public void BeforeClass()
Searcher.Similarity = Similarity;
}

[OneTimeTearDown]
[TestFixtureTearDown]
public static void AfterClass()
{
Searcher = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public void BeforeClass()
Searcher.Similarity = Similarity;
}

[OneTimeTearDown]
[TestFixtureTearDown]
public static void AfterClass()
{
Searcher = null;
Expand Down
2 changes: 1 addition & 1 deletion src/Lucene.Net.Tests/core/Search/Spans/TestBasics.cs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public override TokenStreamComponents CreateComponents(string fieldName, TextRea
}
}

[OneTimeTearDown]
[TestFixtureTearDown]
public static void AfterClass()
{
Reader.Dispose();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public void BeforeClass()
Searcher = NewSearcher(Reader);
}

[OneTimeTearDown]
[TestFixtureTearDown]
public static void AfterClass()
{
Searcher = null;
Expand Down
2 changes: 1 addition & 1 deletion src/Lucene.Net.Tests/core/Search/TestBoolean2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public void BeforeClass()
riw.Dispose();
}

[OneTimeTearDown]
[TestFixtureTearDown]
public static void AfterClass()
{
Reader.Dispose();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public void BeforeClass()
//System.out.println("Set up " + getName());
}

[OneTimeTearDown]
[TestFixtureTearDown]
public static void AfterClass()
{
s = null;
Expand Down
2 changes: 1 addition & 1 deletion src/Lucene.Net.Tests/core/Search/TestDateFilter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public void Test()
}

///
[OneTimeTearDown]
[TestFixtureTearDown]
public virtual void TestAfter()
{
// create an index
Expand Down
2 changes: 1 addition & 1 deletion src/Lucene.Net.Tests/core/Search/TestExplanations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public class TestExplanations : LuceneTestCaseWithReducedFloatPrecision
// same contents, but no field boost
public const string ALTFIELD = "alt";

[OneTimeTearDown]
[TestFixtureTearDown]
public static void AfterClassTestExplanations()
{
Searcher = null;
Expand Down
2 changes: 1 addition & 1 deletion src/Lucene.Net.Tests/core/Search/TestFieldCache.cs
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ public void BeforeClass()
writer.Dispose();
}

[OneTimeTearDown]
[TestFixtureTearDown]
public static void AfterClass()
{
Reader.Dispose();
Expand Down
2 changes: 1 addition & 1 deletion src/Lucene.Net.Tests/core/Search/TestMinShouldMatch2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public override float QueryNorm(float sumOfSquaredWeights)
}
}

[OneTimeTearDown]
[TestFixtureTearDown]
public static void AfterClass()
{
atomicReader.Dispose();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public void BeforeClass()
writer.Dispose();
}

[OneTimeTearDown]
[TestFixtureTearDown]
public static void AfterClass()
{
Reader.Dispose();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public void BeforeClass()
MultiSearcherDupls = NewSearcher(MultiReaderDupls);
}

[OneTimeTearDown]
[TestFixtureTearDown]
public static void AfterClass()
{
Reader.Dispose();
Expand Down
2 changes: 1 addition & 1 deletion src/Lucene.Net.Tests/core/Search/TestNGramPhraseQuery.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public void BeforeClass()
Reader = DirectoryReader.Open(Directory);
}

[OneTimeTearDown]
[TestFixtureTearDown]
public static void AfterClass()
{
Reader.Dispose();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public void BeforeClass()
writer.Dispose();
}

[OneTimeTearDown]
[TestFixtureTearDown]
public static void AfterClass()
{
Searcher = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public void BeforeClass()
writer.Dispose();
}

[OneTimeTearDown]
[TestFixtureTearDown]
public static void AfterClass()
{
Searcher = null;
Expand Down
2 changes: 1 addition & 1 deletion src/Lucene.Net.Tests/core/Search/TestPhraseQuery.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public override void SetUp()
Query = new PhraseQuery();
}

[OneTimeTearDown]
[TestFixtureTearDown]
public static void AfterClass()
{
Searcher = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public void BeforeClass()
writer.Dispose();
}

[OneTimeTearDown]
[TestFixtureTearDown]
public static void AfterClass()
{
Searcher = null;
Expand Down
2 changes: 1 addition & 1 deletion src/Lucene.Net.Tests/core/Search/TestSubScorerFreqs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public void MakeIndex()
w.Dispose();
}

[OneTimeTearDown]
[TestFixtureTearDown]
public static void Finish()
{
s.IndexReader.Dispose();
Expand Down
2 changes: 1 addition & 1 deletion src/Lucene.Net.Tests/core/Search/TestTermVectors.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public void BeforeClass()
writer.Dispose();
}

[OneTimeTearDown]
[TestFixtureTearDown]
public static void AfterClass()
{
Reader.Dispose();
Expand Down

0 comments on commit 10efe5b

Please sign in to comment.