C# Class Lucene.Net.Search.TestFieldCacheRangeFilter

Inheritance: BaseTestRangeFilter
Afficher le fichier Open project: apache/lucenenet

Méthodes publiques

Méthode 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

Méthode Description
TestFieldCacheRangeFilterDoubles ( ) : void
TestFieldCacheRangeFilterFloats ( ) : void
TestFieldCacheRangeFilterInts ( ) : void
TestFieldCacheRangeFilterLongs ( ) : void
TestFieldCacheRangeFilterRand ( ) : void
TestFieldCacheRangeFilterShorts ( ) : void
TestPad ( ) : void
TestRangeFilterId ( ) : void
TestSparseIndex ( ) : void

Method Details

SetUp() public méthode

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
Résultat void

TearDown() public méthode

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