Class BasePostingsFormatTestCase
Abstract class to do basic tests for a Lucene.Net.Codecs.PostingsFormat. NOTE: this test focuses on the postings (docs/freqs/positions/payloads/offsets) impl, not the terms dict. The [stretch] goal is for this test to be so thorough in testing a new Lucene.Net.Codecs.PostingsFormat that if this test passes, then all Lucene/Solr tests should also pass. Ie, if there is some bug in a given Lucene.Net.Codecs.PostingsFormat that this test fails to catch then this test needs to be improved!
Inherited Members
Namespace: Lucene.Net.Index
Assembly: Lucene.Net.TestFramework.dll
Syntax
public abstract class BasePostingsFormatTestCase : BaseIndexFileFormatTestCase
Methods
AddRandomFields(Document)
Add random fields to the provided document.
Declaration
protected override void AddRandomFields(Document doc)
Parameters
Type | Name | Description |
---|---|---|
Document | doc |
Overrides
AfterClass()
Tears down random defaults and cleans up temporary files.
If you override this method, be sure to callbase.AfterClass()
AFTER
tearing down your test fixture.
Declaration
[OneTimeTearDown]
public override void AfterClass()
Overrides
BeforeClass()
Sets up dependency injection of codec factories for running the test class, and also picks random defaults for culture, time zone, similarity, and default codec.
If you override this method, be sure to callbase.BeforeClass()
BEFORE setting
up your test fixture.
Declaration
[OneTimeSetUp]
public override void BeforeClass()
Overrides
TestDocsAndFreqs()
Abstract class to do basic tests for a Lucene.Net.Codecs.PostingsFormat. NOTE: this test focuses on the postings (docs/freqs/positions/payloads/offsets) impl, not the terms dict. The [stretch] goal is for this test to be so thorough in testing a new Lucene.Net.Codecs.PostingsFormat that if this test passes, then all Lucene/Solr tests should also pass. Ie, if there is some bug in a given Lucene.Net.Codecs.PostingsFormat that this test fails to catch then this test needs to be improved!
Declaration
[Test]
public virtual void TestDocsAndFreqs()
TestDocsAndFreqsAndPositions()
Abstract class to do basic tests for a Lucene.Net.Codecs.PostingsFormat. NOTE: this test focuses on the postings (docs/freqs/positions/payloads/offsets) impl, not the terms dict. The [stretch] goal is for this test to be so thorough in testing a new Lucene.Net.Codecs.PostingsFormat that if this test passes, then all Lucene/Solr tests should also pass. Ie, if there is some bug in a given Lucene.Net.Codecs.PostingsFormat that this test fails to catch then this test needs to be improved!
Declaration
[Test]
public virtual void TestDocsAndFreqsAndPositions()
TestDocsAndFreqsAndPositionsAndOffsets()
Abstract class to do basic tests for a Lucene.Net.Codecs.PostingsFormat. NOTE: this test focuses on the postings (docs/freqs/positions/payloads/offsets) impl, not the terms dict. The [stretch] goal is for this test to be so thorough in testing a new Lucene.Net.Codecs.PostingsFormat that if this test passes, then all Lucene/Solr tests should also pass. Ie, if there is some bug in a given Lucene.Net.Codecs.PostingsFormat that this test fails to catch then this test needs to be improved!
Declaration
[Test]
public virtual void TestDocsAndFreqsAndPositionsAndOffsets()
TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads()
Abstract class to do basic tests for a Lucene.Net.Codecs.PostingsFormat. NOTE: this test focuses on the postings (docs/freqs/positions/payloads/offsets) impl, not the terms dict. The [stretch] goal is for this test to be so thorough in testing a new Lucene.Net.Codecs.PostingsFormat that if this test passes, then all Lucene/Solr tests should also pass. Ie, if there is some bug in a given Lucene.Net.Codecs.PostingsFormat that this test fails to catch then this test needs to be improved!
Declaration
[Test]
public virtual void TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads()
TestDocsAndFreqsAndPositionsAndPayloads()
Abstract class to do basic tests for a Lucene.Net.Codecs.PostingsFormat. NOTE: this test focuses on the postings (docs/freqs/positions/payloads/offsets) impl, not the terms dict. The [stretch] goal is for this test to be so thorough in testing a new Lucene.Net.Codecs.PostingsFormat that if this test passes, then all Lucene/Solr tests should also pass. Ie, if there is some bug in a given Lucene.Net.Codecs.PostingsFormat that this test fails to catch then this test needs to be improved!
Declaration
[Test]
public virtual void TestDocsAndFreqsAndPositionsAndPayloads()
TestDocsOnly()
Abstract class to do basic tests for a Lucene.Net.Codecs.PostingsFormat. NOTE: this test focuses on the postings (docs/freqs/positions/payloads/offsets) impl, not the terms dict. The [stretch] goal is for this test to be so thorough in testing a new Lucene.Net.Codecs.PostingsFormat that if this test passes, then all Lucene/Solr tests should also pass. Ie, if there is some bug in a given Lucene.Net.Codecs.PostingsFormat that this test fails to catch then this test needs to be improved!
Declaration
[Test]
public virtual void TestDocsOnly()
TestRandom()
Abstract class to do basic tests for a Lucene.Net.Codecs.PostingsFormat. NOTE: this test focuses on the postings (docs/freqs/positions/payloads/offsets) impl, not the terms dict. The [stretch] goal is for this test to be so thorough in testing a new Lucene.Net.Codecs.PostingsFormat that if this test passes, then all Lucene/Solr tests should also pass. Ie, if there is some bug in a given Lucene.Net.Codecs.PostingsFormat that this test fails to catch then this test needs to be improved!
Declaration
[Test]
public virtual void TestRandom()