Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 55F4B200BBB for ; Thu, 10 Nov 2016 12:33:19 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 54580160B10; Thu, 10 Nov 2016 11:33:19 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 52AD0160B24 for ; Thu, 10 Nov 2016 12:33:15 +0100 (CET) Received: (qmail 63103 invoked by uid 500); 10 Nov 2016 11:33:13 -0000 Mailing-List: contact commits-help@lucenenet.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: lucene-net-dev@lucenenet.apache.org Delivered-To: mailing list commits@lucenenet.apache.org Received: (qmail 62415 invoked by uid 99); 10 Nov 2016 11:33:13 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Nov 2016 11:33:13 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 59700EEE30; Thu, 10 Nov 2016 11:33:13 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: nightowl888@apache.org To: commits@lucenenet.apache.org Date: Thu, 10 Nov 2016 11:33:30 -0000 Message-Id: <6059a3a8762c4d44b83d6fb39fc49f8f@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [19/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." archived-at: Thu, 10 Nov 2016 11:33:19 -0000 http://git-wip-us.apache.org/repos/asf/lucenenet/blob/d67ed2b2/src/Lucene.Net.Tests.Codecs/Memory/TestDirectDocValuesFormat.cs ---------------------------------------------------------------------- diff --git a/src/Lucene.Net.Tests.Codecs/Memory/TestDirectDocValuesFormat.cs b/src/Lucene.Net.Tests.Codecs/Memory/TestDirectDocValuesFormat.cs index 889f963..ace0574 100644 --- a/src/Lucene.Net.Tests.Codecs/Memory/TestDirectDocValuesFormat.cs +++ b/src/Lucene.Net.Tests.Codecs/Memory/TestDirectDocValuesFormat.cs @@ -35,506 +35,5 @@ namespace Lucene.Net.Codecs.Memory return codec; } } - - - #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(); - } - - /// - /// Tests dv against stored fields with threads (binary/numeric/sorted, no missing) - /// - [Test] - public override void TestThreads() - { - base.TestThreads(); - } - - /// - /// Tests dv against stored fields with threads (all types + missing) - /// - [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/Memory/TestDirectPostingsFormat.cs ---------------------------------------------------------------------- diff --git a/src/Lucene.Net.Tests.Codecs/Memory/TestDirectPostingsFormat.cs b/src/Lucene.Net.Tests.Codecs/Memory/TestDirectPostingsFormat.cs index 0bfd3d7..990e29c 100644 --- a/src/Lucene.Net.Tests.Codecs/Memory/TestDirectPostingsFormat.cs +++ b/src/Lucene.Net.Tests.Codecs/Memory/TestDirectPostingsFormat.cs @@ -36,68 +36,5 @@ namespace Lucene.Net.Codecs.Memory 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/Memory/TestFSTOrdPostingsFormat.cs ---------------------------------------------------------------------- diff --git a/src/Lucene.Net.Tests.Codecs/Memory/TestFSTOrdPostingsFormat.cs b/src/Lucene.Net.Tests.Codecs/Memory/TestFSTOrdPostingsFormat.cs index 910584c..6f30a01 100644 --- a/src/Lucene.Net.Tests.Codecs/Memory/TestFSTOrdPostingsFormat.cs +++ b/src/Lucene.Net.Tests.Codecs/Memory/TestFSTOrdPostingsFormat.cs @@ -35,68 +35,5 @@ namespace Lucene.Net.Codecs.Memory 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/Memory/TestFSTOrdPulsing41PostingsFormat.cs ---------------------------------------------------------------------- diff --git a/src/Lucene.Net.Tests.Codecs/Memory/TestFSTOrdPulsing41PostingsFormat.cs b/src/Lucene.Net.Tests.Codecs/Memory/TestFSTOrdPulsing41PostingsFormat.cs index eb47d6c..ddb99c6 100644 --- a/src/Lucene.Net.Tests.Codecs/Memory/TestFSTOrdPulsing41PostingsFormat.cs +++ b/src/Lucene.Net.Tests.Codecs/Memory/TestFSTOrdPulsing41PostingsFormat.cs @@ -35,68 +35,5 @@ namespace Lucene.Net.Codecs.Memory 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/Memory/TestFSTPostingsFormat.cs ---------------------------------------------------------------------- diff --git a/src/Lucene.Net.Tests.Codecs/Memory/TestFSTPostingsFormat.cs b/src/Lucene.Net.Tests.Codecs/Memory/TestFSTPostingsFormat.cs index 7e094fd..cac7e77 100644 --- a/src/Lucene.Net.Tests.Codecs/Memory/TestFSTPostingsFormat.cs +++ b/src/Lucene.Net.Tests.Codecs/Memory/TestFSTPostingsFormat.cs @@ -35,68 +35,5 @@ namespace Lucene.Net.Codecs.Memory 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/Memory/TestFSTPulsing41PostingsFormat.cs ---------------------------------------------------------------------- diff --git a/src/Lucene.Net.Tests.Codecs/Memory/TestFSTPulsing41PostingsFormat.cs b/src/Lucene.Net.Tests.Codecs/Memory/TestFSTPulsing41PostingsFormat.cs index 13afde6..e9beed4 100644 --- a/src/Lucene.Net.Tests.Codecs/Memory/TestFSTPulsing41PostingsFormat.cs +++ b/src/Lucene.Net.Tests.Codecs/Memory/TestFSTPulsing41PostingsFormat.cs @@ -35,68 +35,5 @@ namespace Lucene.Net.Codecs.Memory 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/Memory/TestMemoryDocValuesFormat.cs ---------------------------------------------------------------------- diff --git a/src/Lucene.Net.Tests.Codecs/Memory/TestMemoryDocValuesFormat.cs b/src/Lucene.Net.Tests.Codecs/Memory/TestMemoryDocValuesFormat.cs index 33895b1..4f65807 100644 --- a/src/Lucene.Net.Tests.Codecs/Memory/TestMemoryDocValuesFormat.cs +++ b/src/Lucene.Net.Tests.Codecs/Memory/TestMemoryDocValuesFormat.cs @@ -40,531 +40,5 @@ namespace Lucene.Net.Codecs.Memory { return false; } - - - #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(); - } - - /// - /// Tests dv against stored fields with threads (binary/numeric/sorted, no missing) - /// - [Test] - public override void TestThreads() - { - base.TestThreads(); - } - - /// - /// Tests dv against stored fields with threads (all types + missing) - /// - [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/Memory/TestMemoryPostingsFormat.cs ---------------------------------------------------------------------- diff --git a/src/Lucene.Net.Tests.Codecs/Memory/TestMemoryPostingsFormat.cs b/src/Lucene.Net.Tests.Codecs/Memory/TestMemoryPostingsFormat.cs index 0f35370..938ae52 100644 --- a/src/Lucene.Net.Tests.Codecs/Memory/TestMemoryPostingsFormat.cs +++ b/src/Lucene.Net.Tests.Codecs/Memory/TestMemoryPostingsFormat.cs @@ -36,67 +36,5 @@ namespace Lucene.Net.Codecs.Memory 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/Pulsing/TestPulsingPostingsFormat.cs ---------------------------------------------------------------------- diff --git a/src/Lucene.Net.Tests.Codecs/Pulsing/TestPulsingPostingsFormat.cs b/src/Lucene.Net.Tests.Codecs/Pulsing/TestPulsingPostingsFormat.cs index 19cd845..cd6f9f2 100644 --- a/src/Lucene.Net.Tests.Codecs/Pulsing/TestPulsingPostingsFormat.cs +++ b/src/Lucene.Net.Tests.Codecs/Pulsing/TestPulsingPostingsFormat.cs @@ -36,68 +36,5 @@ namespace Lucene.Net.Codecs.Pulsing 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/Sep/TestSepPostingsFormat.cs ---------------------------------------------------------------------- diff --git a/src/Lucene.Net.Tests.Codecs/Sep/TestSepPostingsFormat.cs b/src/Lucene.Net.Tests.Codecs/Sep/TestSepPostingsFormat.cs index d1c5f29..c374053 100644 --- a/src/Lucene.Net.Tests.Codecs/Sep/TestSepPostingsFormat.cs +++ b/src/Lucene.Net.Tests.Codecs/Sep/TestSepPostingsFormat.cs @@ -37,67 +37,5 @@ namespace Lucene.Net.Codecs.Sep 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/SimpleText/TestSimpleTextDocValuesFormat.cs ---------------------------------------------------------------------- diff --git a/src/Lucene.Net.Tests.Codecs/SimpleText/TestSimpleTextDocValuesFormat.cs b/src/Lucene.Net.Tests.Codecs/SimpleText/TestSimpleTextDocValuesFormat.cs index bdd6d82..497e26f 100644 --- a/src/Lucene.Net.Tests.Codecs/SimpleText/TestSimpleTextDocValuesFormat.cs +++ b/src/Lucene.Net.Tests.Codecs/SimpleText/TestSimpleTextDocValuesFormat.cs @@ -42,505 +42,5 @@ namespace Lucene.Net.Codecs.SimpleText return codec; } } - - #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(); - } - - /// - /// Tests dv against stored fields with threads (binary/numeric/sorted, no missing) - /// - [Test] - public override void TestThreads() - { - base.TestThreads(); - } - - /// - /// Tests dv against stored fields with threads (all types + missing) - /// - [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/SimpleText/TestSimpleTextPostingsFormat.cs ---------------------------------------------------------------------- diff --git a/src/Lucene.Net.Tests.Codecs/SimpleText/TestSimpleTextPostingsFormat.cs b/src/Lucene.Net.Tests.Codecs/SimpleText/TestSimpleTextPostingsFormat.cs index 96e6cb8..a8cb997 100644 --- a/src/Lucene.Net.Tests.Codecs/SimpleText/TestSimpleTextPostingsFormat.cs +++ b/src/Lucene.Net.Tests.Codecs/SimpleText/TestSimpleTextPostingsFormat.cs @@ -34,68 +34,5 @@ namespace Lucene.Net.Codecs.SimpleText 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/SimpleText/TestSimpleTextStoredFieldsFormat.cs ---------------------------------------------------------------------- diff --git a/src/Lucene.Net.Tests.Codecs/SimpleText/TestSimpleTextStoredFieldsFormat.cs b/src/Lucene.Net.Tests.Codecs/SimpleText/TestSimpleTextStoredFieldsFormat.cs index 1d3ae31..5dab469 100644 --- a/src/Lucene.Net.Tests.Codecs/SimpleText/TestSimpleTextStoredFieldsFormat.cs +++ b/src/Lucene.Net.Tests.Codecs/SimpleText/TestSimpleTextStoredFieldsFormat.cs @@ -31,93 +31,5 @@ namespace Lucene.Net.Codecs.SimpleText return new SimpleTextCodec(); } } - - #region BaseStoredFieldsFormatTestCase - // 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 TestRandomStoredFields() - { - base.TestRandomStoredFields(); - } - - [Test] - // LUCENE-1727: make sure doc fields are stored in order - public override void TestStoredFieldsOrder() - { - base.TestStoredFieldsOrder(); - } - - [Test] - // LUCENE-1219 - public override void TestBinaryFieldOffsetLength() - { - base.TestBinaryFieldOffsetLength(); - } - - [Test] - public override void TestNumericField() - { - base.TestNumericField(); - } - - [Test] - public override void TestIndexedBit() - { - base.TestIndexedBit(); - } - - [Test] - public override void TestReadSkip() - { - base.TestReadSkip(); - } - - [Test, Timeout(300000)] - public override void TestEmptyDocs() - { - base.TestEmptyDocs(); - } - - [Test, Timeout(300000)] - public override void TestConcurrentReads() - { - base.TestConcurrentReads(); - } - - [Test] - public override void TestWriteReadMerge() - { - base.TestWriteReadMerge(); - } - - [Test, LongRunningTest] - public override void TestBigDocuments() - { - base.TestBigDocuments(); - } - - [Test] - public override void TestBulkMergeWithDeletes() - { - base.TestBulkMergeWithDeletes(); - } - - #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/SimpleText/TestSimpleTextTermVectorsFormat.cs ---------------------------------------------------------------------- diff --git a/src/Lucene.Net.Tests.Codecs/SimpleText/TestSimpleTextTermVectorsFormat.cs b/src/Lucene.Net.Tests.Codecs/SimpleText/TestSimpleTextTermVectorsFormat.cs index 527deea..a5fe4c5 100644 --- a/src/Lucene.Net.Tests.Codecs/SimpleText/TestSimpleTextTermVectorsFormat.cs +++ b/src/Lucene.Net.Tests.Codecs/SimpleText/TestSimpleTextTermVectorsFormat.cs @@ -30,71 +30,5 @@ namespace Lucene.Net.Codecs.SimpleText return new SimpleTextCodec(); } } - - #region BaseTermVectorsFormatTestCase - // 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] - // only one doc with vectors - public override void TestRareVectors() - { - base.TestRareVectors(); - } - - [Test] - public override void TestHighFreqs() - { - base.TestHighFreqs(); - } - - [Test] - public override void TestLotsOfFields() - { - base.TestLotsOfFields(); - } - - [Test, Timeout(300000)] - // different options for the same field - public override void TestMixedOptions() - { - base.TestMixedOptions(); - } - - [Test] - public override void TestRandom() - { - base.TestRandom(); - } - - [Test] - public override void TestMerge() - { - base.TestMerge(); - } - - [Test] - // run random tests from different threads to make sure the per-thread clones - // don't share mutable data - public override void TestClone() - { - base.TestClone(); - } - - #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.Misc/Index/Sorter/IndexSortingTest.cs ---------------------------------------------------------------------- diff --git a/src/Lucene.Net.Tests.Misc/Index/Sorter/IndexSortingTest.cs b/src/Lucene.Net.Tests.Misc/Index/Sorter/IndexSortingTest.cs index fdc0e95..164f275 100644 --- a/src/Lucene.Net.Tests.Misc/Index/Sorter/IndexSortingTest.cs +++ b/src/Lucene.Net.Tests.Misc/Index/Sorter/IndexSortingTest.cs @@ -87,61 +87,5 @@ namespace Lucene.Net.Index.Sorter reader = SlowCompositeReaderWrapper.Wrap(DirectoryReader.Open(dir)); assertFalse("index should not have deletions", reader.HasDeletions); } - - - #region SorterTestBase - // LUCENENET NOTE: Tests in a 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 TestBinaryDocValuesField() - { - base.TestBinaryDocValuesField(); - } - - [Test] - public override void TestDocsAndPositionsEnum() - { - base.TestDocsAndPositionsEnum(); - } - - [Test] - public override void TestDocsEnum() - { - base.TestDocsEnum(); - } - - [Test] - public override void TestNormValues() - { - base.TestNormValues(); - } - - [Test] - public override void TestNumericDocValuesField() - { - base.TestNumericDocValuesField(); - } - - [Test] - public override void TestSortedDocValuesField() - { - base.TestSortedDocValuesField(); - } - - [Test] - public override void TestSortedSetDocValuesField() - { - base.TestSortedSetDocValuesField(); - } - - [Test] - public override void TestTermVectors() - { - base.TestTermVectors(); - } - - #endregion } } http://git-wip-us.apache.org/repos/asf/lucenenet/blob/d67ed2b2/src/Lucene.Net.Tests.Misc/Index/Sorter/SorterTestBase.cs ---------------------------------------------------------------------- diff --git a/src/Lucene.Net.Tests.Misc/Index/Sorter/SorterTestBase.cs b/src/Lucene.Net.Tests.Misc/Index/Sorter/SorterTestBase.cs index 99623ad..2cff135 100644 --- a/src/Lucene.Net.Tests.Misc/Index/Sorter/SorterTestBase.cs +++ b/src/Lucene.Net.Tests.Misc/Index/Sorter/SorterTestBase.cs @@ -230,7 +230,7 @@ namespace Lucene.Net.Index.Sorter 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 TestBinaryDocValuesField() { BinaryDocValues dv = reader.GetBinaryDocValues(BINARY_DV_FIELD); @@ -242,7 +242,7 @@ namespace Lucene.Net.Index.Sorter } } - // [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 TestDocsAndPositionsEnum() { TermsEnum termsEnum = reader.Terms(DOC_POSITIONS_FIELD).Iterator(null); @@ -322,7 +322,7 @@ namespace Lucene.Net.Index.Sorter return bits; } - // [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 TestDocsEnum() { Bits mappedLiveDocs = RandomLiveDocs(reader.MaxDoc); @@ -369,7 +369,7 @@ namespace Lucene.Net.Index.Sorter } } - // [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 TestNormValues() { NumericDocValues dv = reader.GetNormValues(NORMS_FIELD); @@ -380,7 +380,7 @@ namespace Lucene.Net.Index.Sorter } } - // [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 TestNumericDocValuesField() { NumericDocValues dv = reader.GetNumericDocValues(NUMERIC_DV_FIELD); @@ -391,7 +391,7 @@ namespace Lucene.Net.Index.Sorter } } - // [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 TestSortedDocValuesField() { SortedDocValues dv = reader.GetSortedDocValues(SORTED_DV_FIELD); @@ -404,7 +404,7 @@ namespace Lucene.Net.Index.Sorter } } - // [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 TestSortedSetDocValuesField() { AssumeTrue("default codec does not support SORTED_SET", DefaultCodecSupportsSortedSet()); @@ -423,7 +423,7 @@ namespace Lucene.Net.Index.Sorter } } - // [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 TestTermVectors() { int maxDoc = reader.MaxDoc; http://git-wip-us.apache.org/repos/asf/lucenenet/blob/d67ed2b2/src/Lucene.Net.Tests.Misc/Index/Sorter/SortingAtomicReaderTest.cs ---------------------------------------------------------------------- diff --git a/src/Lucene.Net.Tests.Misc/Index/Sorter/SortingAtomicReaderTest.cs b/src/Lucene.Net.Tests.Misc/Index/Sorter/SortingAtomicReaderTest.cs index 93b234a..cb2b38e 100644 --- a/src/Lucene.Net.Tests.Misc/Index/Sorter/SortingAtomicReaderTest.cs +++ b/src/Lucene.Net.Tests.Misc/Index/Sorter/SortingAtomicReaderTest.cs @@ -79,61 +79,5 @@ namespace Lucene.Net.Index.Sorter assertEquals("Cannot sort an index with a Sort that refers to the relevance score", e.Message); } } - - - #region SorterTestBase - // LUCENENET NOTE: Tests in a 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 TestBinaryDocValuesField() - { - base.TestBinaryDocValuesField(); - } - - [Test] - public override void TestDocsAndPositionsEnum() - { - base.TestDocsAndPositionsEnum(); - } - - [Test] - public override void TestDocsEnum() - { - base.TestDocsEnum(); - } - - [Test] - public override void TestNormValues() - { - base.TestNormValues(); - } - - [Test] - public override void TestNumericDocValuesField() - { - base.TestNumericDocValuesField(); - } - - [Test] - public override void TestSortedDocValuesField() - { - base.TestSortedDocValuesField(); - } - - [Test] - public override void TestSortedSetDocValuesField() - { - base.TestSortedSetDocValuesField(); - } - - [Test] - public override void TestTermVectors() - { - base.TestTermVectors(); - } - - #endregion } } http://git-wip-us.apache.org/repos/asf/lucenenet/blob/d67ed2b2/src/Lucene.Net.Tests.QueryParser/Classic/TestQueryParser.cs ---------------------------------------------------------------------- diff --git a/src/Lucene.Net.Tests.QueryParser/Classic/TestQueryParser.cs b/src/Lucene.Net.Tests.QueryParser/Classic/TestQueryParser.cs index 577f27b..2b71216 100644 --- a/src/Lucene.Net.Tests.QueryParser/Classic/TestQueryParser.cs +++ b/src/Lucene.Net.Tests.QueryParser/Classic/TestQueryParser.cs @@ -551,255 +551,5 @@ namespace Lucene.Net.QueryParsers.Classic assertEquals(expected, qp.Parse("\"中国\"~3^2")); } - - #region QueryParserTestBase - // LUCENENET NOTE: Tests in a 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 TestCJK() - { - base.TestCJK(); - } - - [Test] - public override void TestCJKTerm() - { - base.TestCJKTerm(); - } - - [Test] - public override void TestCJKBoostedTerm() - { - base.TestCJKBoostedTerm(); - } - - [Test] - public override void TestCJKPhrase() - { - base.TestCJKPhrase(); - } - - [Test] - public override void TestCJKBoostedPhrase() - { - base.TestCJKBoostedPhrase(); - } - - [Test] - public override void TestCJKSloppyPhrase() - { - base.TestCJKSloppyPhrase(); - } - - [Test] - public override void TestAutoGeneratePhraseQueriesOn() - { - base.TestAutoGeneratePhraseQueriesOn(); - } - - [Test] - public override void TestSimple() - { - base.TestSimple(); - } - - [Test] - public override void TestOperatorVsWhitespace() - { - base.TestOperatorVsWhitespace(); - } - - [Test] - public override void TestPunct() - { - base.TestPunct(); - } - - [Test] - public override void TestSlop() - { - base.TestSlop(); - } - - [Test] - public override void TestNumber() - { - base.TestNumber(); - } - - [Test] - public override void TestWildcard() - { - base.TestWildcard(); - } - - [Test] - public override void TestLeadingWildcardType() - { - base.TestLeadingWildcardType(); - } - - [Test] - public override void TestQPA() - { - base.TestQPA(); - } - - [Test] - public override void TestRange() - { - base.TestRange(); - } - - [Test] - public override void TestRangeWithPhrase() - { - base.TestRangeWithPhrase(); - } - - [Test] - public override void TestDateRange() - { - base.TestDateRange(); - } - - [Test] - public override void TestEscaped() - { - base.TestEscaped(); - } - - [Test] - public override void TestEscapedVsQuestionMarkAsWildcard() - { - base.TestEscapedVsQuestionMarkAsWildcard(); - } - - [Test] - public override void TestQueryStringEscaping() - { - base.TestQueryStringEscaping(); - } - - [Test] - public override void TestTabNewlineCarriageReturn() - { - base.TestTabNewlineCarriageReturn(); - } - - [Test] - public override void TestSimpleDAO() - { - base.TestSimpleDAO(); - } - - [Test] - public override void TestBoost() - { - base.TestBoost(); - } - - [Test] - public override void TestException() - { - base.TestException(); - } - - [Test] - public override void TestBooleanQuery() - { - base.TestBooleanQuery(); - } - - [Test] - public override void TestPrecedence() - { - base.TestPrecedence(); - } - - [Test] - public override void TestEscapedWildcard() - { - base.TestEscapedWildcard(); - } - - [Test] - public override void TestRegexps() - { - base.TestRegexps(); - } - - [Test] - public override void TestStopwords() - { - base.TestStopwords(); - } - - [Test] - public override void TestPositionIncrement() - { - base.TestPositionIncrement(); - } - - [Test] - public override void TestMatchAllDocs() - { - base.TestMatchAllDocs(); - } - - // LUCENE-2002: make sure defaults for StandardAnalyzer's - // enableStopPositionIncr & QueryParser's enablePosIncr - // "match" - [Test] - public override void TestPositionIncrements() - { - base.TestPositionIncrements(); - } - - [Test] - public override void TestCollatedRange() - { - base.TestCollatedRange(); - } - - [Test] - public override void TestDistanceAsEditsParsing() - { - base.TestDistanceAsEditsParsing(); - } - - [Test] - public override void TestPhraseQueryToString() - { - base.TestPhraseQueryToString(); - } - - [Test] - public override void TestParseWildcardAndPhraseQueries() - { - base.TestParseWildcardAndPhraseQueries(); - } - - [Test] - public override void TestPhraseQueryPositionIncrements() - { - base.TestPhraseQueryPositionIncrements(); - } - - [Test] - public override void TestMatchAllQueryParsing() - { - base.TestMatchAllQueryParsing(); - } - - [Test] - public override void TestNestedAndClausesFoo() - { - base.TestNestedAndClausesFoo(); - } - - #endregion } }