C# Class Lucene.Net.Search.TestFieldCacheRangeFilter

Inheritance: BaseTestRangeFilter
Show file Open project: apache/lucenenet

Public Methods

Method Description
SetUp ( ) : void

LUCENENET specific. Ensure we have an infostream attached to the default FieldCache when running the tests. In Java, this was done in the Core.Search.TestFieldCache.TestInfoStream() method (which polluted the state of these tests), but we need to make the tests self-contained so they can be run correctly regardless of order. Not setting the InfoStream skips an execution path within these tests, so we should do it to make sure we test all of the code.

TearDown ( ) : void

LUCENENET specific. See SetUp(). Dispose our InfoStream and set it to null to avoid polluting the state of other tests.

Private Methods

Method Description
TestFieldCacheRangeFilterDoubles ( ) : void
TestFieldCacheRangeFilterFloats ( ) : void
TestFieldCacheRangeFilterInts ( ) : void
TestFieldCacheRangeFilterLongs ( ) : void
TestFieldCacheRangeFilterRand ( ) : void
TestFieldCacheRangeFilterShorts ( ) : void
TestPad ( ) : void
TestRangeFilterId ( ) : void
TestSparseIndex ( ) : void

Method Details

SetUp() public method

LUCENENET specific. Ensure we have an infostream attached to the default FieldCache when running the tests. In Java, this was done in the Core.Search.TestFieldCache.TestInfoStream() method (which polluted the state of these tests), but we need to make the tests self-contained so they can be run correctly regardless of order. Not setting the InfoStream skips an execution path within these tests, so we should do it to make sure we test all of the code.
public SetUp ( ) : void
return void

TearDown() public method

LUCENENET specific. See SetUp(). Dispose our InfoStream and set it to null to avoid polluting the state of other tests.
public TearDown ( ) : void
return void