You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by ni...@apache.org on 2016/11/10 11:33:31 UTC
[20/58] [abbrv] lucenenet git commit: Revert "HACK: Added stubs for
all tests subclasses of abstract test classes (with [Test] attributes) and
commented the [Test] attributes in the abstract classes to keep the tests
from running in the wrong context."
Revert "HACK: Added stubs for all tests subclasses of abstract test classes (with [Test] attributes) and commented the [Test] attributes in the abstract classes to keep the tests from running in the wrong context."
This reverts commit 4dbc3590361814d13fae64c8d030820eb4987489.
Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/d67ed2b2
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/d67ed2b2
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/d67ed2b2
Branch: refs/heads/grouping
Commit: d67ed2b2a602a6528fa990bd5636f7cba01546b1
Parents: 7723e26
Author: Shad Storhaug <sh...@shadstorhaug.com>
Authored: Tue Nov 8 02:18:54 2016 +0700
Committer: Shad Storhaug <sh...@shadstorhaug.com>
Committed: Tue Nov 8 02:23:39 2016 +0700
----------------------------------------------------------------------
.../BaseCompressingDocValuesFormatTestCase.cs | 3 -
.../Index/BaseDocValuesFormatTestCase.cs | 156 +++---
.../Index/BaseIndexFileFormatTestCase.cs | 2 +-
.../Index/BasePostingsFormatTestCase.cs | 14 +-
.../Index/BaseStoredFieldsFormatTestCase.cs | 22 +-
.../Index/BaseTermVectorsFormatTestCase.cs | 14 +-
.../Util/BaseDocIdSetTestCase.cs | 10 +-
.../BlockTerms/TestFixedGapPostingsFormat.cs | 63 ---
.../Bloom/TestBloomPostingsFormat.cs | 63 ---
.../DiskDv/TestDiskDocValuesFormat.cs | 526 ------------------
.../IntBlock/TestFixedIntBlockPostingsFormat.cs | 63 ---
.../TestVariableIntBlockPostingsFormat.cs | 63 ---
.../Memory/TestDirectDocValuesFormat.cs | 501 ------------------
.../Memory/TestDirectPostingsFormat.cs | 63 ---
.../Memory/TestFSTOrdPostingsFormat.cs | 63 ---
.../Memory/TestFSTOrdPulsing41PostingsFormat.cs | 63 ---
.../Memory/TestFSTPostingsFormat.cs | 63 ---
.../Memory/TestFSTPulsing41PostingsFormat.cs | 63 ---
.../Memory/TestMemoryDocValuesFormat.cs | 526 ------------------
.../Memory/TestMemoryPostingsFormat.cs | 62 ---
.../Pulsing/TestPulsingPostingsFormat.cs | 63 ---
.../Sep/TestSepPostingsFormat.cs | 62 ---
.../SimpleText/TestSimpleTextDocValuesFormat.cs | 500 ------------------
.../SimpleText/TestSimpleTextPostingsFormat.cs | 63 ---
.../TestSimpleTextStoredFieldsFormat.cs | 88 ----
.../TestSimpleTextTermVectorsFormat.cs | 66 ---
.../Index/Sorter/IndexSortingTest.cs | 56 --
.../Index/Sorter/SorterTestBase.cs | 16 +-
.../Index/Sorter/SortingAtomicReaderTest.cs | 56 --
.../Classic/TestQueryParser.cs | 250 ---------
.../Ext/TestExtendableQueryParser.cs | 369 -------------
.../Compressing/AbstractTestCompressionMode.cs | 14 +-
.../AbstractTestLZ4CompressionMode.cs | 8 +-
.../TestCompressingStoredFieldsFormat.cs | 89 ----
.../TestCompressingTermVectorsFormat.cs | 67 ---
.../Compressing/TestFastCompressionMode.cs | 81 ---
.../Compressing/TestFastDecompressionMode.cs | 81 ---
.../Compressing/TestHighCompressionMode.cs | 50 --
.../Lucene3x/TestLucene3xPostingsFormat.cs | 63 ---
.../Lucene3x/TestLucene3xStoredFieldsFormat.cs | 84 ---
.../Lucene3x/TestLucene3xTermVectorsFormat.cs | 67 ---
.../Lucene40/TestLucene40DocValuesFormat.cs | 501 ------------------
.../Lucene40/TestLucene40PostingsFormat.cs | 63 ---
.../Lucene40/TestLucene40StoredFieldsFormat.cs | 89 ----
.../Lucene40/TestLucene40TermVectorsFormat.cs | 67 ---
.../Codecs/Lucene41/TestBlockPostingsFormat.cs | 65 ---
.../Lucene41/TestLucene41StoredFieldsFormat.cs | 89 ----
.../Lucene42/TestLucene42DocValuesFormat.cs | 526 ------------------
.../Lucene45/TestLucene45DocValuesFormat.cs | 527 -------------------
.../Perfield/TestPerFieldDocValuesFormat.cs | 501 ------------------
.../Perfield/TestPerFieldPostingsFormat.cs | 51 --
.../core/Index/TestDocValuesFormat.cs | 503 ------------------
.../core/Index/TestLogMergePolicy.cs | 15 -
.../core/Index/TestNumericDocValuesUpdates.cs | 2 +-
.../TestPersistentSnapshotDeletionPolicy.cs | 50 --
.../core/Index/TestPostingsFormat.cs | 50 --
.../core/Index/TestStoredFieldsFormat.cs | 83 ---
.../core/Index/TestTermVectorsFormat.cs | 55 --
.../core/Index/TestTieredMergePolicy.cs | 14 -
.../core/Search/BaseTestRangeFilter.cs | 2 +-
.../Spans/TestSpanExplanationsOfNonMatches.cs | 214 --------
.../TestComplexExplanationsOfNonMatches.cs | 160 ------
.../core/Search/TestExplanations.cs | 2 +-
.../core/Search/TestFieldCacheRangeFilter.cs | 14 -
.../core/Search/TestFieldCacheRewriteMethod.cs | 17 -
.../core/Search/TestMultiTermConstantScore.cs | 14 -
.../core/Search/TestSimpleExplanations.cs | 19 -
.../TestSimpleExplanationsOfNonMatches.cs | 452 ----------------
.../core/Search/TestTermRangeFilter.cs | 14 -
.../core/Support/TestLurchTable.cs | 176 +------
.../core/Util/BaseSortTestCase.cs | 18 +-
.../core/Util/Packed/TestEliasFanoDocIdSet.cs | 45 --
.../core/Util/TestDocIdBitSet.cs | 46 --
.../core/Util/TestFixedBitSet.cs | 45 --
.../core/Util/TestInPlaceMergeSorter.cs | 64 ---
.../core/Util/TestIntroSorter.cs | 64 ---
.../core/Util/TestOpenBitSet.cs | 44 --
.../core/Util/TestPForDeltaDocIdSet.cs | 44 --
src/Lucene.Net.Tests/core/Util/TestTimSorter.cs | 64 ---
.../core/Util/TestWAH8DocIdSet.cs | 44 --
80 files changed, 159 insertions(+), 9250 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/d67ed2b2/src/Lucene.Net.TestFramework/Index/BaseCompressingDocValuesFormatTestCase.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.TestFramework/Index/BaseCompressingDocValuesFormatTestCase.cs b/src/Lucene.Net.TestFramework/Index/BaseCompressingDocValuesFormatTestCase.cs
index 54d7fd5..d88ecb4 100644
--- a/src/Lucene.Net.TestFramework/Index/BaseCompressingDocValuesFormatTestCase.cs
+++ b/src/Lucene.Net.TestFramework/Index/BaseCompressingDocValuesFormatTestCase.cs
@@ -45,7 +45,6 @@ namespace Lucene.Net.Index
return size;
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
public virtual void TestUniqueValuesCompression()
{
Directory dir = new RAMDirectory();
@@ -86,7 +85,6 @@ namespace Lucene.Net.Index
Assert.IsTrue(size2 < size1 + 8 * 20);
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
public virtual void TestDateCompression()
{
Directory dir = new RAMDirectory();
@@ -117,7 +115,6 @@ namespace Lucene.Net.Index
Assert.IsTrue(size2 < size1 + (PackedInts.BitsRequired(day) * 50) / 8);
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
public virtual void TestSingleBigValueCompression()
{
Directory dir = new RAMDirectory();
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/d67ed2b2/src/Lucene.Net.TestFramework/Index/BaseDocValuesFormatTestCase.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.TestFramework/Index/BaseDocValuesFormatTestCase.cs b/src/Lucene.Net.TestFramework/Index/BaseDocValuesFormatTestCase.cs
index fa46ef8..ebc4c19 100644
--- a/src/Lucene.Net.TestFramework/Index/BaseDocValuesFormatTestCase.cs
+++ b/src/Lucene.Net.TestFramework/Index/BaseDocValuesFormatTestCase.cs
@@ -84,7 +84,7 @@ namespace Lucene.Net.Index
}
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestOneNumber()
{
Directory directory = NewDirectory();
@@ -119,7 +119,7 @@ namespace Lucene.Net.Index
directory.Dispose();
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestOneFloat()
{
Directory directory = NewDirectory();
@@ -154,7 +154,7 @@ namespace Lucene.Net.Index
directory.Dispose();
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestTwoNumbers()
{
Directory directory = NewDirectory();
@@ -192,7 +192,7 @@ namespace Lucene.Net.Index
directory.Dispose();
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestTwoBinaryValues()
{
Directory directory = NewDirectory();
@@ -233,7 +233,7 @@ namespace Lucene.Net.Index
directory.Dispose();
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestTwoFieldsMixed()
{
Directory directory = NewDirectory();
@@ -273,7 +273,7 @@ namespace Lucene.Net.Index
directory.Dispose();
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestThreeFieldsMixed()
{
Directory directory = NewDirectory();
@@ -318,7 +318,7 @@ namespace Lucene.Net.Index
directory.Dispose();
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestThreeFieldsMixed2()
{
Directory directory = NewDirectory();
@@ -363,7 +363,7 @@ namespace Lucene.Net.Index
directory.Dispose();
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestTwoDocumentsNumeric()
{
Analyzer analyzer = new MockAnalyzer(Random());
@@ -392,7 +392,7 @@ namespace Lucene.Net.Index
directory.Dispose();
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestTwoDocumentsMerged()
{
Analyzer analyzer = new MockAnalyzer(Random());
@@ -436,7 +436,7 @@ namespace Lucene.Net.Index
directory.Dispose();
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestBigNumericRange()
{
Analyzer analyzer = new MockAnalyzer(Random());
@@ -465,7 +465,7 @@ namespace Lucene.Net.Index
directory.Dispose();
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestBigNumericRange2()
{
Analyzer analyzer = new MockAnalyzer(Random());
@@ -494,7 +494,7 @@ namespace Lucene.Net.Index
directory.Dispose();
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestBytes()
{
Analyzer analyzer = new MockAnalyzer(Random());
@@ -534,7 +534,7 @@ namespace Lucene.Net.Index
directory.Dispose();
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestBytesTwoDocumentsMerged()
{
Analyzer analyzer = new MockAnalyzer(Random());
@@ -580,7 +580,7 @@ namespace Lucene.Net.Index
directory.Dispose();
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestSortedBytes()
{
Analyzer analyzer = new MockAnalyzer(Random());
@@ -620,7 +620,7 @@ namespace Lucene.Net.Index
directory.Dispose();
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestSortedBytesTwoDocuments()
{
Analyzer analyzer = new MockAnalyzer(Random());
@@ -652,7 +652,7 @@ namespace Lucene.Net.Index
directory.Dispose();
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestSortedBytesThreeDocuments()
{
Analyzer analyzer = new MockAnalyzer(Random());
@@ -691,7 +691,7 @@ namespace Lucene.Net.Index
directory.Dispose();
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestSortedBytesTwoDocumentsMerged()
{
Analyzer analyzer = new MockAnalyzer(Random());
@@ -742,7 +742,7 @@ namespace Lucene.Net.Index
directory.Dispose();
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestSortedMergeAwayAllValues()
{
Directory directory = NewDirectory();
@@ -784,7 +784,7 @@ namespace Lucene.Net.Index
directory.Dispose();
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestBytesWithNewline()
{
Analyzer analyzer = new MockAnalyzer(Random());
@@ -810,7 +810,7 @@ namespace Lucene.Net.Index
directory.Dispose();
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestMissingSortedBytes()
{
Analyzer analyzer = new MockAnalyzer(Random());
@@ -843,7 +843,7 @@ namespace Lucene.Net.Index
directory.Dispose();
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestSortedTermsEnum()
{
Directory directory = NewDirectory();
@@ -916,7 +916,7 @@ namespace Lucene.Net.Index
directory.Dispose();
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestEmptySortedBytes()
{
Analyzer analyzer = new MockAnalyzer(Random());
@@ -948,7 +948,7 @@ namespace Lucene.Net.Index
directory.Dispose();
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestEmptyBytes()
{
Analyzer analyzer = new MockAnalyzer(Random());
@@ -980,7 +980,7 @@ namespace Lucene.Net.Index
directory.Dispose();
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestVeryLargeButLegalBytes()
{
Analyzer analyzer = new MockAnalyzer(Random());
@@ -1009,7 +1009,7 @@ namespace Lucene.Net.Index
directory.Dispose();
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestVeryLargeButLegalSortedBytes()
{
Analyzer analyzer = new MockAnalyzer(Random());
@@ -1037,7 +1037,7 @@ namespace Lucene.Net.Index
directory.Dispose();
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestCodecUsesOwnBytes()
{
Analyzer analyzer = new MockAnalyzer(Random());
@@ -1065,7 +1065,7 @@ namespace Lucene.Net.Index
directory.Dispose();
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestCodecUsesOwnSortedBytes()
{
Analyzer analyzer = new MockAnalyzer(Random());
@@ -1093,7 +1093,7 @@ namespace Lucene.Net.Index
directory.Dispose();
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestCodecUsesOwnBytesEachTime()
{
Analyzer analyzer = new MockAnalyzer(Random());
@@ -1128,7 +1128,7 @@ namespace Lucene.Net.Index
directory.Dispose();
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestCodecUsesOwnSortedBytesEachTime()
{
Analyzer analyzer = new MockAnalyzer(Random());
@@ -1166,7 +1166,7 @@ namespace Lucene.Net.Index
/*
* Simple test case to show how to use the API
*/
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestDocValuesSimple()
{
Directory dir = NewDirectory();
@@ -1211,7 +1211,7 @@ namespace Lucene.Net.Index
dir.Dispose();
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestRandomSortedBytes()
{
Directory dir = NewDirectory();
@@ -1488,7 +1488,7 @@ namespace Lucene.Net.Index
dir.Dispose();
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestBooleanNumericsVsStoredFields()
{
int numIterations = AtLeast(1);
@@ -1498,7 +1498,7 @@ namespace Lucene.Net.Index
}
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestByteNumericsVsStoredFields()
{
int numIterations = AtLeast(1);
@@ -1508,7 +1508,7 @@ namespace Lucene.Net.Index
}
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestByteMissingVsFieldCache()
{
int numIterations = AtLeast(1);
@@ -1518,7 +1518,7 @@ namespace Lucene.Net.Index
}
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestShortNumericsVsStoredFields()
{
int numIterations = AtLeast(1);
@@ -1528,7 +1528,7 @@ namespace Lucene.Net.Index
}
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestShortMissingVsFieldCache()
{
int numIterations = AtLeast(1);
@@ -1538,7 +1538,7 @@ namespace Lucene.Net.Index
}
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestIntNumericsVsStoredFields()
{
int numIterations = AtLeast(1);
@@ -1548,7 +1548,7 @@ namespace Lucene.Net.Index
}
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestIntMissingVsFieldCache()
{
int numIterations = AtLeast(1);
@@ -1558,7 +1558,7 @@ namespace Lucene.Net.Index
}
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestLongNumericsVsStoredFields()
{
int numIterations = AtLeast(1);
@@ -1568,7 +1568,7 @@ namespace Lucene.Net.Index
}
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestLongMissingVsFieldCache()
{
int numIterations = AtLeast(1);
@@ -1643,7 +1643,7 @@ namespace Lucene.Net.Index
dir.Dispose();
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestBinaryFixedLengthVsStoredFields()
{
int numIterations = AtLeast(1);
@@ -1654,7 +1654,7 @@ namespace Lucene.Net.Index
}
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestBinaryVariableLengthVsStoredFields()
{
int numIterations = AtLeast(1);
@@ -1788,7 +1788,7 @@ namespace Lucene.Net.Index
dir.Dispose();
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestSortedFixedLengthVsStoredFields()
{
int numIterations = AtLeast(1);
@@ -1799,7 +1799,7 @@ namespace Lucene.Net.Index
}
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestSortedFixedLengthVsFieldCache()
{
int numIterations = AtLeast(1);
@@ -1810,7 +1810,7 @@ namespace Lucene.Net.Index
}
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestSortedVariableLengthVsFieldCache()
{
int numIterations = AtLeast(1);
@@ -1820,7 +1820,7 @@ namespace Lucene.Net.Index
}
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestSortedVariableLengthVsStoredFields()
{
int numIterations = AtLeast(1);
@@ -1830,7 +1830,7 @@ namespace Lucene.Net.Index
}
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestSortedSetOneValue()
{
AssumeTrue("Codec does not support SORTED_SET", DefaultCodecSupportsSortedSet());
@@ -1858,7 +1858,7 @@ namespace Lucene.Net.Index
directory.Dispose();
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestSortedSetTwoFields()
{
AssumeTrue("Codec does not support SORTED_SET", DefaultCodecSupportsSortedSet());
@@ -1896,7 +1896,7 @@ namespace Lucene.Net.Index
directory.Dispose();
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestSortedSetTwoDocumentsMerged()
{
AssumeTrue("Codec does not support SORTED_SET", DefaultCodecSupportsSortedSet());
@@ -1941,7 +1941,7 @@ namespace Lucene.Net.Index
directory.Dispose();
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestSortedSetTwoValues()
{
AssumeTrue("Codec does not support SORTED_SET", DefaultCodecSupportsSortedSet());
@@ -1974,7 +1974,7 @@ namespace Lucene.Net.Index
directory.Dispose();
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestSortedSetTwoValuesUnordered()
{
AssumeTrue("Codec does not support SORTED_SET", DefaultCodecSupportsSortedSet());
@@ -2007,7 +2007,7 @@ namespace Lucene.Net.Index
directory.Dispose();
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestSortedSetThreeValuesTwoDocs()
{
AssumeTrue("Codec does not support SORTED_SET", DefaultCodecSupportsSortedSet());
@@ -2059,7 +2059,7 @@ namespace Lucene.Net.Index
directory.Dispose();
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestSortedSetTwoDocumentsLastMissing()
{
AssumeTrue("Codec does not support SORTED_SET", DefaultCodecSupportsSortedSet());
@@ -2094,7 +2094,7 @@ namespace Lucene.Net.Index
directory.Dispose();
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestSortedSetTwoDocumentsLastMissingMerge()
{
AssumeTrue("Codec does not support SORTED_SET", DefaultCodecSupportsSortedSet());
@@ -2131,7 +2131,7 @@ namespace Lucene.Net.Index
directory.Dispose();
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestSortedSetTwoDocumentsFirstMissing()
{
AssumeTrue("Codec does not support SORTED_SET", DefaultCodecSupportsSortedSet());
@@ -2167,7 +2167,7 @@ namespace Lucene.Net.Index
directory.Dispose();
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestSortedSetTwoDocumentsFirstMissingMerge()
{
AssumeTrue("Codec does not support SORTED_SET", DefaultCodecSupportsSortedSet());
@@ -2204,7 +2204,7 @@ namespace Lucene.Net.Index
directory.Dispose();
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestSortedSetMergeAwayAllValues()
{
AssumeTrue("Codec does not support SORTED_SET", DefaultCodecSupportsSortedSet());
@@ -2235,7 +2235,7 @@ namespace Lucene.Net.Index
directory.Dispose();
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestSortedSetTermsEnum()
{
AssumeTrue("Codec does not support SORTED_SET", DefaultCodecSupportsSortedSet());
@@ -2391,7 +2391,7 @@ namespace Lucene.Net.Index
dir.Dispose();
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestSortedSetFixedLengthVsStoredFields()
{
AssumeTrue("Codec does not support SORTED_SET", DefaultCodecSupportsSortedSet());
@@ -2403,7 +2403,7 @@ namespace Lucene.Net.Index
}
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestSortedSetVariableLengthVsStoredFields()
{
AssumeTrue("Codec does not support SORTED_SET", DefaultCodecSupportsSortedSet());
@@ -2414,7 +2414,7 @@ namespace Lucene.Net.Index
}
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestSortedSetFixedLengthSingleValuedVsStoredFields()
{
AssumeTrue("Codec does not support SORTED_SET", DefaultCodecSupportsSortedSet());
@@ -2426,7 +2426,7 @@ namespace Lucene.Net.Index
}
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestSortedSetVariableLengthSingleValuedVsStoredFields()
{
AssumeTrue("Codec does not support SORTED_SET", DefaultCodecSupportsSortedSet());
@@ -2648,7 +2648,7 @@ namespace Lucene.Net.Index
dir.Dispose();
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestSortedSetFixedLengthVsUninvertedField()
{
AssumeTrue("Codec does not support SORTED_SET", DefaultCodecSupportsSortedSet());
@@ -2660,7 +2660,7 @@ namespace Lucene.Net.Index
}
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestSortedSetVariableLengthVsUninvertedField()
{
AssumeTrue("Codec does not support SORTED_SET", DefaultCodecSupportsSortedSet());
@@ -2671,7 +2671,7 @@ namespace Lucene.Net.Index
}
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestGCDCompression()
{
int numIterations = AtLeast(1);
@@ -2704,13 +2704,13 @@ namespace Lucene.Net.Index
}
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestZeros()
{
DoTestNumericsVsStoredFields(0, 0);
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestZeroOrMin()
{
// try to make GCD compression fail if the format did not anticipate that
@@ -2738,7 +2738,7 @@ namespace Lucene.Net.Index
}
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestTwoNumbersOneMissing()
{
AssumeTrue("Codec does not support GetDocsWithField", DefaultCodecSupportsDocsWithField());
@@ -2769,7 +2769,7 @@ namespace Lucene.Net.Index
directory.Dispose();
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestTwoNumbersOneMissingWithMerging()
{
AssumeTrue("Codec does not support GetDocsWithField", DefaultCodecSupportsDocsWithField());
@@ -2801,7 +2801,7 @@ namespace Lucene.Net.Index
directory.Dispose();
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestThreeNumbersOneMissingWithMerging()
{
AssumeTrue("Codec does not support GetDocsWithField", DefaultCodecSupportsDocsWithField());
@@ -2839,7 +2839,7 @@ namespace Lucene.Net.Index
directory.Dispose();
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestTwoBytesOneMissing()
{
AssumeTrue("Codec does not support GetDocsWithField", DefaultCodecSupportsDocsWithField());
@@ -2873,7 +2873,7 @@ namespace Lucene.Net.Index
directory.Dispose();
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestTwoBytesOneMissingWithMerging()
{
AssumeTrue("Codec does not support GetDocsWithField", DefaultCodecSupportsDocsWithField());
@@ -2908,7 +2908,7 @@ namespace Lucene.Net.Index
directory.Dispose();
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestThreeBytesOneMissingWithMerging()
{
AssumeTrue("Codec does not support GetDocsWithField", DefaultCodecSupportsDocsWithField());
@@ -2951,7 +2951,7 @@ namespace Lucene.Net.Index
}
// LUCENE-4853
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestHugeBinaryValues()
{
Analyzer analyzer = new MockAnalyzer(Random());
@@ -3072,7 +3072,7 @@ namespace Lucene.Net.Index
}
// TODO: get this out of here and into the deprecated codecs (4.0, 4.2)
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestHugeBinaryValueLimit()
{
// We only test DVFormats that have a limit
@@ -3157,7 +3157,7 @@ namespace Lucene.Net.Index
/// <summary>
/// Tests dv against stored fields with threads (binary/numeric/sorted, no missing)
/// </summary>
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestThreads()
{
Directory dir = NewDirectory();
@@ -3276,7 +3276,7 @@ namespace Lucene.Net.Index
/// <summary>
/// Tests dv against stored fields with threads (all types + missing)
/// </summary>
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestThreads2()
{
AssumeTrue("Codec does not support GetDocsWithField", DefaultCodecSupportsDocsWithField());
@@ -3466,7 +3466,7 @@ namespace Lucene.Net.Index
}
// LUCENE-5218
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestEmptyBinaryValueOnPageSizes()
{
// Test larger and larger power-of-two sized values,
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/d67ed2b2/src/Lucene.Net.TestFramework/Index/BaseIndexFileFormatTestCase.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.TestFramework/Index/BaseIndexFileFormatTestCase.cs b/src/Lucene.Net.TestFramework/Index/BaseIndexFileFormatTestCase.cs
index 9a49a6f..d65a88b 100644
--- a/src/Lucene.Net.TestFramework/Index/BaseIndexFileFormatTestCase.cs
+++ b/src/Lucene.Net.TestFramework/Index/BaseIndexFileFormatTestCase.cs
@@ -90,7 +90,7 @@ namespace Lucene.Net.Index
/// <summary>
/// The purpose of this test is to make sure that bulk merge doesn't accumulate useless data over runs.
/// </summary>
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestMergeStability()
{
Directory dir = NewDirectory();
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/d67ed2b2/src/Lucene.Net.TestFramework/Index/BasePostingsFormatTestCase.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.TestFramework/Index/BasePostingsFormatTestCase.cs b/src/Lucene.Net.TestFramework/Index/BasePostingsFormatTestCase.cs
index ffef930..b9dfb8b 100644
--- a/src/Lucene.Net.TestFramework/Index/BasePostingsFormatTestCase.cs
+++ b/src/Lucene.Net.TestFramework/Index/BasePostingsFormatTestCase.cs
@@ -1245,43 +1245,43 @@ namespace Lucene.Net.Index
}
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test, Timeout(300000)]
public virtual void TestDocsOnly()
{
TestFull(FieldInfo.IndexOptions.DOCS_ONLY, false);
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test, Timeout(300000)]
public virtual void TestDocsAndFreqs()
{
TestFull(FieldInfo.IndexOptions.DOCS_AND_FREQS, false);
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test, Timeout(300000)]
public virtual void TestDocsAndFreqsAndPositions()
{
TestFull(FieldInfo.IndexOptions.DOCS_AND_FREQS_AND_POSITIONS, false);
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test, Timeout(300000)]
public virtual void TestDocsAndFreqsAndPositionsAndPayloads()
{
TestFull(FieldInfo.IndexOptions.DOCS_AND_FREQS_AND_POSITIONS, true);
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test, Timeout(300000)]
public virtual void TestDocsAndFreqsAndPositionsAndOffsets()
{
TestFull(FieldInfo.IndexOptions.DOCS_AND_FREQS_AND_POSITIONS_AND_OFFSETS, false);
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test, Timeout(300000)]
public virtual void TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads()
{
TestFull(FieldInfo.IndexOptions.DOCS_AND_FREQS_AND_POSITIONS_AND_OFFSETS, true);
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test, Timeout(300000)]
public virtual void TestRandom()
{
int iters = 5;
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/d67ed2b2/src/Lucene.Net.TestFramework/Index/BaseStoredFieldsFormatTestCase.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.TestFramework/Index/BaseStoredFieldsFormatTestCase.cs b/src/Lucene.Net.TestFramework/Index/BaseStoredFieldsFormatTestCase.cs
index 2acb5fa..a63eb84 100644
--- a/src/Lucene.Net.TestFramework/Index/BaseStoredFieldsFormatTestCase.cs
+++ b/src/Lucene.Net.TestFramework/Index/BaseStoredFieldsFormatTestCase.cs
@@ -74,7 +74,7 @@ namespace Lucene.Net.Index
}
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestRandomStoredFields()
{
Directory dir = NewDirectory();
@@ -190,7 +190,7 @@ namespace Lucene.Net.Index
dir.Dispose();
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
// LUCENE-1727: make sure doc fields are stored in order
public virtual void TestStoredFieldsOrder()
{
@@ -227,7 +227,7 @@ namespace Lucene.Net.Index
d.Dispose();
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
// LUCENE-1219
public virtual void TestBinaryFieldOffsetLength()
{
@@ -261,7 +261,7 @@ namespace Lucene.Net.Index
dir.Dispose();
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestNumericField()
{
Directory dir = NewDirectory();
@@ -346,7 +346,7 @@ namespace Lucene.Net.Index
dir.Dispose();
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestIndexedBit()
{
Directory dir = NewDirectory();
@@ -365,7 +365,7 @@ namespace Lucene.Net.Index
dir.Dispose();
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestReadSkip()
{
Directory dir = NewDirectory();
@@ -420,7 +420,7 @@ namespace Lucene.Net.Index
dir.Dispose();
}
- // [Test, Timeout(300000)] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test, Timeout(300000)]
public virtual void TestEmptyDocs()
{
Directory dir = NewDirectory();
@@ -449,7 +449,7 @@ namespace Lucene.Net.Index
dir.Dispose();
}
- // [Test, Timeout(300000)] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test, Timeout(300000)]
public virtual void TestConcurrentReads()
{
Directory dir = NewDirectory();
@@ -564,7 +564,7 @@ namespace Lucene.Net.Index
return result;
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestWriteReadMerge()
{
// get another codec, other than the default: so we are merging segments across different codecs
@@ -670,7 +670,7 @@ namespace Lucene.Net.Index
dir.Dispose();
}
- // [Test, LongRunningTest, Timeout(int.MaxValue)] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test, LongRunningTest, Timeout(int.MaxValue)]
public virtual void TestBigDocuments()
{
// "big" as "much bigger than the chunk size"
@@ -747,7 +747,7 @@ namespace Lucene.Net.Index
dir.Dispose();
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestBulkMergeWithDeletes()
{
int numDocs = AtLeast(200);
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/d67ed2b2/src/Lucene.Net.TestFramework/Index/BaseTermVectorsFormatTestCase.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.TestFramework/Index/BaseTermVectorsFormatTestCase.cs b/src/Lucene.Net.TestFramework/Index/BaseTermVectorsFormatTestCase.cs
index 5e5b20e..85207ad 100644
--- a/src/Lucene.Net.TestFramework/Index/BaseTermVectorsFormatTestCase.cs
+++ b/src/Lucene.Net.TestFramework/Index/BaseTermVectorsFormatTestCase.cs
@@ -668,7 +668,7 @@ namespace Lucene.Net.Index
return (new IndexSearcher(reader)).Search(new TermQuery(new Term("id", id)), 1).ScoreDocs[0].Doc;
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
// only one doc with vectors
public virtual void TestRareVectors()
{
@@ -715,7 +715,7 @@ namespace Lucene.Net.Index
}
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestHighFreqs()
{
RandomDocumentFactory docFactory = new RandomDocumentFactory(this, 3, 5);
@@ -737,7 +737,7 @@ namespace Lucene.Net.Index
}
}
- // [Test, LongRunningTest, Timeout(int.MaxValue)] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test, LongRunningTest, Timeout(int.MaxValue)]
public virtual void TestLotsOfFields()
{
RandomDocumentFactory docFactory = new RandomDocumentFactory(this, 500, 10);
@@ -755,7 +755,7 @@ namespace Lucene.Net.Index
}
}
- // [Test, Timeout(300000)] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test, Timeout(300000)]
// different options for the same field
public virtual void TestMixedOptions()
{
@@ -790,7 +790,7 @@ namespace Lucene.Net.Index
}
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestRandom()
{
RandomDocumentFactory docFactory = new RandomDocumentFactory(this, 5, 20);
@@ -817,7 +817,7 @@ namespace Lucene.Net.Index
dir.Dispose();
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestMerge()
{
RandomDocumentFactory docFactory = new RandomDocumentFactory(this, 5, 20);
@@ -866,7 +866,7 @@ namespace Lucene.Net.Index
}
}
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
// run random tests from different threads to make sure the per-thread clones
// don't share mutable data
public virtual void TestClone()
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/d67ed2b2/src/Lucene.Net.TestFramework/Util/BaseDocIdSetTestCase.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.TestFramework/Util/BaseDocIdSetTestCase.cs b/src/Lucene.Net.TestFramework/Util/BaseDocIdSetTestCase.cs
index e69ed7c..2cfe630 100644
--- a/src/Lucene.Net.TestFramework/Util/BaseDocIdSetTestCase.cs
+++ b/src/Lucene.Net.TestFramework/Util/BaseDocIdSetTestCase.cs
@@ -77,7 +77,7 @@ namespace Lucene.Net.Util
/// <summary>
/// Test length=0.
/// </summary>
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void TestNoBit()
{
BitArray bs = new BitArray(1);
@@ -88,7 +88,7 @@ namespace Lucene.Net.Util
/// <summary>
/// Test length=1.
/// </summary>
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void Test1Bit()
{
BitArray bs = new BitArray(1);
@@ -103,7 +103,7 @@ namespace Lucene.Net.Util
/// <summary>
/// Test length=2.
/// </summary>
- // [Test] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
+ [Test]
public virtual void Test2Bits()
{
BitArray bs = new BitArray(2);
@@ -122,8 +122,8 @@ namespace Lucene.Net.Util
/// <summary>
/// Compare the content of the set against a <seealso cref="BitSet"/>.
/// </summary>
- // [Test, Timeout(150000)] // LUCENENET NOTE: For now, we are overriding this test in every subclass to pull it into the right context for the subclass
- //[LongRunningTest]
+ [Test, Timeout(150000)]
+ [LongRunningTest]
public virtual void TestAgainstBitSet()
{
int numBits = TestUtil.NextInt(Random(), 100, 1 << 20);
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/d67ed2b2/src/Lucene.Net.Tests.Codecs/BlockTerms/TestFixedGapPostingsFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Codecs/BlockTerms/TestFixedGapPostingsFormat.cs b/src/Lucene.Net.Tests.Codecs/BlockTerms/TestFixedGapPostingsFormat.cs
index 6d913b5..a66f96c 100644
--- a/src/Lucene.Net.Tests.Codecs/BlockTerms/TestFixedGapPostingsFormat.cs
+++ b/src/Lucene.Net.Tests.Codecs/BlockTerms/TestFixedGapPostingsFormat.cs
@@ -38,68 +38,5 @@ namespace Lucene.Net.Codecs.BlockTerms
return codec;
}
}
-
-
- #region BasePostingsFormatTestCase
- // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
- // context in Visual Studio. This fixes that with the minimum amount of code necessary
- // to run them in the correct context without duplicating all of the tests.
-
- [Test]
- public override void TestDocsOnly()
- {
- base.TestDocsOnly();
- }
-
- [Test]
- public override void TestDocsAndFreqs()
- {
- base.TestDocsAndFreqs();
- }
-
- [Test]
- public override void TestDocsAndFreqsAndPositions()
- {
- base.TestDocsAndFreqsAndPositions();
- }
-
- [Test]
- public override void TestDocsAndFreqsAndPositionsAndPayloads()
- {
- base.TestDocsAndFreqsAndPositionsAndPayloads();
- }
-
- [Test]
- public override void TestDocsAndFreqsAndPositionsAndOffsets()
- {
- base.TestDocsAndFreqsAndPositionsAndOffsets();
- }
-
- [Test]
- public override void TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads()
- {
- base.TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads();
- }
-
- [Test]
- public override void TestRandom()
- {
- base.TestRandom();
- }
-
- #endregion
-
- #region BaseIndexFileFormatTestCase
- // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
- // context in Visual Studio. This fixes that with the minimum amount of code necessary
- // to run them in the correct context without duplicating all of the tests.
-
- [Test]
- public override void TestMergeStability()
- {
- base.TestMergeStability();
- }
-
- #endregion
}
}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/d67ed2b2/src/Lucene.Net.Tests.Codecs/Bloom/TestBloomPostingsFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Codecs/Bloom/TestBloomPostingsFormat.cs b/src/Lucene.Net.Tests.Codecs/Bloom/TestBloomPostingsFormat.cs
index d19e11a..d4e1286 100644
--- a/src/Lucene.Net.Tests.Codecs/Bloom/TestBloomPostingsFormat.cs
+++ b/src/Lucene.Net.Tests.Codecs/Bloom/TestBloomPostingsFormat.cs
@@ -35,68 +35,5 @@ namespace Lucene.Net.Codecs.Bloom
return codec;
}
}
-
-
- #region BasePostingsFormatTestCase
- // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
- // context in Visual Studio. This fixes that with the minimum amount of code necessary
- // to run them in the correct context without duplicating all of the tests.
-
- [Test]
- public override void TestDocsOnly()
- {
- base.TestDocsOnly();
- }
-
- [Test]
- public override void TestDocsAndFreqs()
- {
- base.TestDocsAndFreqs();
- }
-
- [Test]
- public override void TestDocsAndFreqsAndPositions()
- {
- base.TestDocsAndFreqsAndPositions();
- }
-
- [Test]
- public override void TestDocsAndFreqsAndPositionsAndPayloads()
- {
- base.TestDocsAndFreqsAndPositionsAndPayloads();
- }
-
- [Test]
- public override void TestDocsAndFreqsAndPositionsAndOffsets()
- {
- base.TestDocsAndFreqsAndPositionsAndOffsets();
- }
-
- [Test]
- public override void TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads()
- {
- base.TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads();
- }
-
- [Test]
- public override void TestRandom()
- {
- base.TestRandom();
- }
-
- #endregion
-
- #region BaseIndexFileFormatTestCase
- // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
- // context in Visual Studio. This fixes that with the minimum amount of code necessary
- // to run them in the correct context without duplicating all of the tests.
-
- [Test]
- public override void TestMergeStability()
- {
- base.TestMergeStability();
- }
-
- #endregion
}
}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/d67ed2b2/src/Lucene.Net.Tests.Codecs/DiskDv/TestDiskDocValuesFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Codecs/DiskDv/TestDiskDocValuesFormat.cs b/src/Lucene.Net.Tests.Codecs/DiskDv/TestDiskDocValuesFormat.cs
index cd69092..a0b868b 100644
--- a/src/Lucene.Net.Tests.Codecs/DiskDv/TestDiskDocValuesFormat.cs
+++ b/src/Lucene.Net.Tests.Codecs/DiskDv/TestDiskDocValuesFormat.cs
@@ -36,531 +36,5 @@ namespace Lucene.Net.Codecs.DiskDV
return codec;
}
}
-
-
- #region BaseCompressingDocValuesFormatTestCase
- // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
- // context in Visual Studio. This fixes that with the minimum amount of code necessary
- // to run them in the correct context without duplicating all of the tests.
-
- [Test]
- public override void TestUniqueValuesCompression()
- {
- base.TestUniqueValuesCompression();
- }
-
- [Test]
- public override void TestDateCompression()
- {
- base.TestDateCompression();
- }
-
- [Test]
- public override void TestSingleBigValueCompression()
- {
- base.TestSingleBigValueCompression();
- }
-
- #endregion
-
- #region BaseDocValuesFormatTestCase
- // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
- // context in Visual Studio. This fixes that with the minimum amount of code necessary
- // to run them in the correct context without duplicating all of the tests.
-
- [Test]
- public override void TestOneNumber()
- {
- base.TestOneNumber();
- }
-
- [Test]
- public override void TestOneFloat()
- {
- base.TestOneFloat();
- }
-
- [Test]
- public override void TestTwoNumbers()
- {
- base.TestTwoNumbers();
- }
-
- [Test]
- public override void TestTwoBinaryValues()
- {
- base.TestTwoBinaryValues();
- }
-
- [Test]
- public override void TestTwoFieldsMixed()
- {
- base.TestTwoFieldsMixed();
- }
-
- [Test]
- public override void TestThreeFieldsMixed()
- {
- base.TestThreeFieldsMixed();
- }
-
- [Test]
- public override void TestThreeFieldsMixed2()
- {
- base.TestThreeFieldsMixed2();
- }
-
- [Test]
- public override void TestTwoDocumentsNumeric()
- {
- base.TestTwoDocumentsNumeric();
- }
-
- [Test]
- public override void TestTwoDocumentsMerged()
- {
- base.TestTwoDocumentsMerged();
- }
-
- [Test]
- public override void TestBigNumericRange()
- {
- base.TestBigNumericRange();
- }
-
- [Test]
- public override void TestBigNumericRange2()
- {
- base.TestBigNumericRange2();
- }
-
- [Test]
- public override void TestBytes()
- {
- base.TestBytes();
- }
-
- [Test]
- public override void TestBytesTwoDocumentsMerged()
- {
- base.TestBytesTwoDocumentsMerged();
- }
-
- [Test]
- public override void TestSortedBytes()
- {
- base.TestSortedBytes();
- }
-
- [Test]
- public override void TestSortedBytesTwoDocuments()
- {
- base.TestSortedBytesTwoDocuments();
- }
-
- [Test]
- public override void TestSortedBytesThreeDocuments()
- {
- base.TestSortedBytesThreeDocuments();
- }
-
- [Test]
- public override void TestSortedBytesTwoDocumentsMerged()
- {
- base.TestSortedBytesTwoDocumentsMerged();
- }
-
- [Test]
- public override void TestSortedMergeAwayAllValues()
- {
- base.TestSortedMergeAwayAllValues();
- }
-
- [Test]
- public override void TestBytesWithNewline()
- {
- base.TestBytesWithNewline();
- }
-
- [Test]
- public override void TestMissingSortedBytes()
- {
- base.TestMissingSortedBytes();
- }
-
- [Test]
- public override void TestSortedTermsEnum()
- {
- base.TestSortedTermsEnum();
- }
-
- [Test]
- public override void TestEmptySortedBytes()
- {
- base.TestEmptySortedBytes();
- }
-
- [Test]
- public override void TestEmptyBytes()
- {
- base.TestEmptyBytes();
- }
-
- [Test]
- public override void TestVeryLargeButLegalBytes()
- {
- base.TestVeryLargeButLegalBytes();
- }
-
- [Test]
- public override void TestVeryLargeButLegalSortedBytes()
- {
- base.TestVeryLargeButLegalSortedBytes();
- }
-
- [Test]
- public override void TestCodecUsesOwnBytes()
- {
- base.TestCodecUsesOwnBytes();
- }
-
- [Test]
- public override void TestCodecUsesOwnSortedBytes()
- {
- base.TestCodecUsesOwnSortedBytes();
- }
-
- [Test]
- public override void TestCodecUsesOwnBytesEachTime()
- {
- base.TestCodecUsesOwnBytesEachTime();
- }
-
- [Test]
- public override void TestCodecUsesOwnSortedBytesEachTime()
- {
- base.TestCodecUsesOwnSortedBytesEachTime();
- }
-
- /*
- * Simple test case to show how to use the API
- */
- [Test]
- public override void TestDocValuesSimple()
- {
- base.TestDocValuesSimple();
- }
-
- [Test]
- public override void TestRandomSortedBytes()
- {
- base.TestRandomSortedBytes();
- }
-
- [Test]
- public override void TestBooleanNumericsVsStoredFields()
- {
- base.TestBooleanNumericsVsStoredFields();
- }
-
- [Test]
- public override void TestByteNumericsVsStoredFields()
- {
- base.TestByteNumericsVsStoredFields();
- }
-
- [Test]
- public override void TestByteMissingVsFieldCache()
- {
- base.TestByteMissingVsFieldCache();
- }
-
- [Test]
- public override void TestShortNumericsVsStoredFields()
- {
- base.TestShortNumericsVsStoredFields();
- }
-
- [Test]
- public override void TestShortMissingVsFieldCache()
- {
- base.TestShortMissingVsFieldCache();
- }
-
- [Test]
- public override void TestIntNumericsVsStoredFields()
- {
- base.TestIntNumericsVsStoredFields();
- }
-
- [Test]
- public override void TestIntMissingVsFieldCache()
- {
- base.TestIntMissingVsFieldCache();
- }
-
- [Test]
- public override void TestLongNumericsVsStoredFields()
- {
- base.TestLongNumericsVsStoredFields();
- }
-
- [Test]
- public override void TestLongMissingVsFieldCache()
- {
- base.TestLongMissingVsFieldCache();
- }
-
- [Test]
- public override void TestBinaryFixedLengthVsStoredFields()
- {
- base.TestBinaryFixedLengthVsStoredFields();
- }
-
- [Test]
- public override void TestBinaryVariableLengthVsStoredFields()
- {
- base.TestBinaryVariableLengthVsStoredFields();
- }
-
- [Test]
- public override void TestSortedFixedLengthVsStoredFields()
- {
- base.TestSortedFixedLengthVsStoredFields();
- }
-
- [Test]
- public override void TestSortedFixedLengthVsFieldCache()
- {
- base.TestSortedFixedLengthVsFieldCache();
- }
-
- [Test]
- public override void TestSortedVariableLengthVsFieldCache()
- {
- base.TestSortedVariableLengthVsFieldCache();
- }
-
- [Test]
- public override void TestSortedVariableLengthVsStoredFields()
- {
- base.TestSortedVariableLengthVsStoredFields();
- }
-
- [Test]
- public override void TestSortedSetOneValue()
- {
- base.TestSortedSetOneValue();
- }
-
- [Test]
- public override void TestSortedSetTwoFields()
- {
- base.TestSortedSetTwoFields();
- }
-
- [Test]
- public override void TestSortedSetTwoDocumentsMerged()
- {
- base.TestSortedSetTwoDocumentsMerged();
- }
-
- [Test]
- public override void TestSortedSetTwoValues()
- {
- base.TestSortedSetTwoValues();
- }
-
- [Test]
- public override void TestSortedSetTwoValuesUnordered()
- {
- base.TestSortedSetTwoValuesUnordered();
- }
-
- [Test]
- public override void TestSortedSetThreeValuesTwoDocs()
- {
- base.TestSortedSetThreeValuesTwoDocs();
- }
-
- [Test]
- public override void TestSortedSetTwoDocumentsLastMissing()
- {
- base.TestSortedSetTwoDocumentsLastMissing();
- }
-
- [Test]
- public override void TestSortedSetTwoDocumentsLastMissingMerge()
- {
- base.TestSortedSetTwoDocumentsLastMissingMerge();
- }
-
- [Test]
- public override void TestSortedSetTwoDocumentsFirstMissing()
- {
- base.TestSortedSetTwoDocumentsFirstMissing();
- }
-
- [Test]
- public override void TestSortedSetTwoDocumentsFirstMissingMerge()
- {
- base.TestSortedSetTwoDocumentsFirstMissingMerge();
- }
-
- [Test]
- public override void TestSortedSetMergeAwayAllValues()
- {
- base.TestSortedSetMergeAwayAllValues();
- }
-
- [Test]
- public override void TestSortedSetTermsEnum()
- {
- base.TestSortedSetTermsEnum();
- }
-
- [Test]
- public override void TestSortedSetFixedLengthVsStoredFields()
- {
- base.TestSortedSetFixedLengthVsStoredFields();
- }
-
- [Test]
- public override void TestSortedSetVariableLengthVsStoredFields()
- {
- base.TestSortedSetVariableLengthVsStoredFields();
- }
-
- [Test]
- public override void TestSortedSetFixedLengthSingleValuedVsStoredFields()
- {
- base.TestSortedSetFixedLengthSingleValuedVsStoredFields();
- }
-
- [Test]
- public override void TestSortedSetVariableLengthSingleValuedVsStoredFields()
- {
- base.TestSortedSetVariableLengthSingleValuedVsStoredFields();
- }
-
- [Test]
- public override void TestSortedSetFixedLengthVsUninvertedField()
- {
- base.TestSortedSetFixedLengthVsUninvertedField();
- }
-
- [Test]
- public override void TestSortedSetVariableLengthVsUninvertedField()
- {
- base.TestSortedSetVariableLengthVsUninvertedField();
- }
-
- [Test]
- public override void TestGCDCompression()
- {
- base.TestGCDCompression();
- }
-
- [Test]
- public override void TestZeros()
- {
- base.TestZeros();
- }
-
- [Test]
- public override void TestZeroOrMin()
- {
- base.TestZeroOrMin();
- }
-
- [Test]
- public override void TestTwoNumbersOneMissing()
- {
- base.TestTwoNumbersOneMissing();
- }
-
- [Test]
- public override void TestTwoNumbersOneMissingWithMerging()
- {
- base.TestTwoNumbersOneMissingWithMerging();
- }
-
- [Test]
- public override void TestThreeNumbersOneMissingWithMerging()
- {
- base.TestThreeNumbersOneMissingWithMerging();
- }
-
- [Test]
- public override void TestTwoBytesOneMissing()
- {
- base.TestTwoBytesOneMissing();
- }
-
- [Test]
- public override void TestTwoBytesOneMissingWithMerging()
- {
- base.TestTwoBytesOneMissingWithMerging();
- }
-
- [Test]
- public override void TestThreeBytesOneMissingWithMerging()
- {
- base.TestThreeBytesOneMissingWithMerging();
- }
-
- // LUCENE-4853
- [Test]
- public override void TestHugeBinaryValues()
- {
- base.TestHugeBinaryValues();
- }
-
- // TODO: get this out of here and into the deprecated codecs (4.0, 4.2)
- [Test]
- public override void TestHugeBinaryValueLimit()
- {
- base.TestHugeBinaryValueLimit();
- }
-
- /// <summary>
- /// Tests dv against stored fields with threads (binary/numeric/sorted, no missing)
- /// </summary>
- [Test]
- public override void TestThreads()
- {
- base.TestThreads();
- }
-
- /// <summary>
- /// Tests dv against stored fields with threads (all types + missing)
- /// </summary>
- [Test]
- public override void TestThreads2()
- {
- base.TestThreads2();
- }
-
- // LUCENE-5218
- [Test]
- public override void TestEmptyBinaryValueOnPageSizes()
- {
- base.TestEmptyBinaryValueOnPageSizes();
- }
-
- #endregion
-
- #region BaseIndexFileFormatTestCase
- // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
- // context in Visual Studio. This fixes that with the minimum amount of code necessary
- // to run them in the correct context without duplicating all of the tests.
-
- [Test]
- public override void TestMergeStability()
- {
- base.TestMergeStability();
- }
-
- #endregion
}
}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/d67ed2b2/src/Lucene.Net.Tests.Codecs/IntBlock/TestFixedIntBlockPostingsFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Codecs/IntBlock/TestFixedIntBlockPostingsFormat.cs b/src/Lucene.Net.Tests.Codecs/IntBlock/TestFixedIntBlockPostingsFormat.cs
index 26b2684..1cd9e4b 100644
--- a/src/Lucene.Net.Tests.Codecs/IntBlock/TestFixedIntBlockPostingsFormat.cs
+++ b/src/Lucene.Net.Tests.Codecs/IntBlock/TestFixedIntBlockPostingsFormat.cs
@@ -36,68 +36,5 @@ namespace Lucene.Net.Codecs.IntBlock
return codec;
}
}
-
-
- #region BasePostingsFormatTestCase
- // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
- // context in Visual Studio. This fixes that with the minimum amount of code necessary
- // to run them in the correct context without duplicating all of the tests.
-
- [Test]
- public override void TestDocsOnly()
- {
- base.TestDocsOnly();
- }
-
- [Test]
- public override void TestDocsAndFreqs()
- {
- base.TestDocsAndFreqs();
- }
-
- [Test]
- public override void TestDocsAndFreqsAndPositions()
- {
- base.TestDocsAndFreqsAndPositions();
- }
-
- [Test]
- public override void TestDocsAndFreqsAndPositionsAndPayloads()
- {
- base.TestDocsAndFreqsAndPositionsAndPayloads();
- }
-
- [Test]
- public override void TestDocsAndFreqsAndPositionsAndOffsets()
- {
- base.TestDocsAndFreqsAndPositionsAndOffsets();
- }
-
- [Test]
- public override void TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads()
- {
- base.TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads();
- }
-
- [Test]
- public override void TestRandom()
- {
- base.TestRandom();
- }
-
- #endregion
-
- #region BaseIndexFileFormatTestCase
- // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
- // context in Visual Studio. This fixes that with the minimum amount of code necessary
- // to run them in the correct context without duplicating all of the tests.
-
- [Test]
- public override void TestMergeStability()
- {
- base.TestMergeStability();
- }
-
- #endregion
}
}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/d67ed2b2/src/Lucene.Net.Tests.Codecs/IntBlock/TestVariableIntBlockPostingsFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Codecs/IntBlock/TestVariableIntBlockPostingsFormat.cs b/src/Lucene.Net.Tests.Codecs/IntBlock/TestVariableIntBlockPostingsFormat.cs
index c255c90..0b74a74 100644
--- a/src/Lucene.Net.Tests.Codecs/IntBlock/TestVariableIntBlockPostingsFormat.cs
+++ b/src/Lucene.Net.Tests.Codecs/IntBlock/TestVariableIntBlockPostingsFormat.cs
@@ -41,68 +41,5 @@ namespace Lucene.Net.Codecs.IntBlock
return codec;
}
}
-
-
- #region BasePostingsFormatTestCase
- // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
- // context in Visual Studio. This fixes that with the minimum amount of code necessary
- // to run them in the correct context without duplicating all of the tests.
-
- [Test]
- public override void TestDocsOnly()
- {
- base.TestDocsOnly();
- }
-
- [Test]
- public override void TestDocsAndFreqs()
- {
- base.TestDocsAndFreqs();
- }
-
- [Test]
- public override void TestDocsAndFreqsAndPositions()
- {
- base.TestDocsAndFreqsAndPositions();
- }
-
- [Test]
- public override void TestDocsAndFreqsAndPositionsAndPayloads()
- {
- base.TestDocsAndFreqsAndPositionsAndPayloads();
- }
-
- [Test]
- public override void TestDocsAndFreqsAndPositionsAndOffsets()
- {
- base.TestDocsAndFreqsAndPositionsAndOffsets();
- }
-
- [Test]
- public override void TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads()
- {
- base.TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads();
- }
-
- [Test]
- public override void TestRandom()
- {
- base.TestRandom();
- }
-
- #endregion
-
- #region BaseIndexFileFormatTestCase
- // LUCENENET NOTE: Tests in an abstract base class are not pulled into the correct
- // context in Visual Studio. This fixes that with the minimum amount of code necessary
- // to run them in the correct context without duplicating all of the tests.
-
- [Test]
- public override void TestMergeStability()
- {
- base.TestMergeStability();
- }
-
- #endregion
}
}
\ No newline at end of file