AfterClass()
|
|
assertArrayEquals(IEnumerable, IEnumerable)
|
|
AssertDeletedDocsEquals(String, IndexReader, IndexReader)
|
|
AssertDocsAndPositionsEnumEquals(String, DocsAndPositionsEnum, DocsAndPositionsEnum)
|
checks docs + freqs + positions + payloads, sequentially
|
AssertDocsEnumEquals(String, DocsEnum, DocsEnum, Boolean)
|
checks docs + freqs, sequentially
|
AssertDocsSkippingEquals(String, IndexReader, Int32, DocsEnum, DocsEnum, Boolean)
|
checks advancing docs
|
AssertDocValuesEquals(String, IndexReader, IndexReader)
|
checks that docvalues across all fields are equivalent
|
AssertDocValuesEquals(String, Int32, NumericDocValues, NumericDocValues)
|
|
assertEquals(Double, Double, Double)
|
|
assertEquals(Int64, Int64)
|
|
assertEquals(Object, Object)
|
|
assertEquals(String, Double, Double, Double)
|
|
assertEquals(String, Int64, Int64)
|
|
assertEquals(String, Object, Object)
|
|
assertEquals<T>(ISet<T>, ISet<T>)
|
|
assertEquals<T>(String, ISet<T>, ISet<T>)
|
|
assertEquals<T, S>(IDictionary<T, S>, IDictionary<T, S>)
|
|
assertFalse(Boolean)
|
|
assertFalse(String, Boolean)
|
|
AssertFieldInfosEquals(String, IndexReader, IndexReader)
|
|
AssertFieldsEquals(String, IndexReader, Fields, Fields, Boolean)
|
Fields api equivalency
|
AssertFieldStatisticsEquals(String, Fields, Fields)
|
checks that top-level statistics on Fields are the same
|
AssertNormsEquals(String, IndexReader, IndexReader)
|
checks that norms are the same across all fields
|
assertNotNull(Object)
|
|
assertNotNull(String, Object)
|
|
assertNotSame(Object, Object)
|
|
assertNotSame(String, Object, Object)
|
|
assertNull(Object)
|
|
assertNull(String, Object)
|
|
AssertPositionsSkippingEquals(String, IndexReader, Int32, DocsAndPositionsEnum, DocsAndPositionsEnum)
|
checks advancing docs + positions
|
AssertReaderEquals(String, IndexReader, IndexReader)
|
|
AssertReaderStatisticsEquals(String, IndexReader, IndexReader)
|
checks that reader-level statistics are the same
|
assertSame(Object, Object)
|
|
assertSame(String, Object, Object)
|
|
AssertSaneFieldCaches(String)
|
|
AssertStoredFieldEquals(String, IIndexableField, IIndexableField)
|
checks that two stored fields are equivalent
|
AssertStoredFieldsEquals(String, IndexReader, IndexReader)
|
checks that stored fields of all documents are the same
|
AssertTermsEnumEquals(String, IndexReader, TermsEnum, TermsEnum, Boolean)
|
checks the terms enum sequentially
if deep is false, it does a 'shallow' test that doesnt go down to the docsenums
|
AssertTermsEquals(String, IndexReader, Terms, Terms, Boolean)
|
Terms api equivalency
|
AssertTermsStatisticsEquals(String, Terms, Terms)
|
checks collection-level statistics on Terms
|
AssertTermStatsEquals(String, TermsEnum, TermsEnum)
|
checks term-level statistics
|
AssertTermVectorsEquals(String, IndexReader, IndexReader)
|
checks that term vectors across all fields are equivalent
|
assertTrue(Boolean)
|
|
assertTrue(String, Boolean)
|
|
AsSet(Object[])
|
Return args as a instance. The order of elements is not
preserved in iterators.
|
AsSet<T>(T[])
|
|
AssumeFalse(String, Boolean)
|
|
AssumeNoException(String, Exception)
|
|
AssumeTrue(String, Boolean)
|
|
AtLeast(Random, Int32)
|
|
AtLeast(Int32)
|
|
BeforeClass()
|
|
CreateTempDir()
|
|
CreateTempDir(String)
|
|
CreateTempFile()
|
|
CreateTempFile(String, String)
|
|
DefaultCodecSupportsDocsWithField()
|
Returns true if the codec "supports" docsWithField
(other codecs return MatchAllBits, because you couldnt write missing values before)
|
DefaultCodecSupportsDocValues()
|
|
DefaultCodecSupportsFieldUpdates()
|
Returns true if the codec "supports" field updates.
|
DefaultCodecSupportsMissingDocValues()
|
Returns true if the default codec supports single valued docvalues with missing values
|
DefaultCodecSupportsSortedSet()
|
Returns true if the default codec supports SORTED_SET docvalues
|
DumpArray(String, Object[], TextWriter)
|
|
DumpIterator(String, System.Collections.IEnumerator, TextWriter)
|
Convenience method for logging an iterator.
|
fail()
|
|
fail(String)
|
|
GetDataFile(String)
|
Gets a resource from the classpath as . This method should only
be used, if a real file is needed. To get a stream, code should prefer
using this.GetType() .
|
GetFullMethodName(String)
|
|
GetOnlySegmentReader(DirectoryReader)
|
Some tests expect the directory to contain a single segment, and want to
do tests on that segment's reader. this is an utility method to help them.
|
LocaleForName(String)
|
return a Locale object equivalent to its programmatic name
|
MaybeWrapReader(IndexReader)
|
Sometimes wrap the IndexReader as slow, parallel or filter reader (or
combinations of that)
|
NewAlcoholicMergePolicy()
|
|
NewAlcoholicMergePolicy(Random)
|
|
NewDirectory()
|
|
NewDirectory(Directory)
|
Returns a new Directory instance, with contents copied from the
provided directory. See for more
information.
|
NewDirectory(Random)
|
Returns a new Directory instance, using the specified random.
See for more information.
|
NewDirectory(Random, Directory)
|
Returns a new Directory instance, using the specified random
with contents copied from the provided directory. See
for more information.
|
NewField(Random, String, String, FieldType)
|
LUCENENET specific
Is non-static.
|
NewField(String, String, FieldType)
|
LUCENENET specific
Is non-static.
|
NewFSDirectory(DirectoryInfo)
|
Returns a new FSDirectory instance over the given file, which must be a folder.
|
NewFSDirectory(DirectoryInfo, LockFactory)
|
Returns a new FSDirectory instance over the given file, which must be a folder.
|
NewIndexWriterConfig(LuceneVersion, Analyzer)
|
create a new index writer config with random defaults
LUCENENET specific
Non-static so that we do not depend on any hidden static dependencies
|
NewIndexWriterConfig(Random, LuceneVersion, Analyzer)
|
LUCENENET specific
Non-static so that we do not depend on any hidden static dependencies
|
NewIndexWriterConfig(Random, LuceneVersion, Analyzer, Similarity, TimeZoneInfo)
|
create a new index writer config with random defaults using the specified random
LUCENENET specific
This is the only static ctor for IndexWriterConfig because it removes the dependency
on ClassEnvRule by using parameters Similarity and TimeZone.
|
NewIOContext(Random)
|
TODO: javadoc
|
NewIOContext(Random, IOContext)
|
TODO: javadoc
|
NewLogMergePolicy()
|
|
NewLogMergePolicy(Random)
|
|
NewLogMergePolicy(Boolean)
|
|
NewLogMergePolicy(Boolean, Int32)
|
|
NewLogMergePolicy(Int32)
|
|
NewMergePolicy(Random, TimeZoneInfo)
|
|
NewMergePolicy(TimeZoneInfo)
|
|
NewMockDirectory()
|
|
NewMockDirectory(Random)
|
|
NewMockFSDirectory(DirectoryInfo)
|
|
NewSearcher(IndexReader)
|
Create a new searcher over the reader. this searcher might randomly use
threads.
LUCENENET specific
Is non-static because Lucene.Net.Util.LuceneTestCase.ClassEnvRule is now non-static.
|
NewSearcher(IndexReader, Similarity)
|
|
NewSearcher(IndexReader, Boolean)
|
Create a new searcher over the reader. This searcher might randomly use
threads.
|
NewSearcher(IndexReader, Boolean, Similarity)
|
Create a new searcher over the reader. this searcher might randomly use
threads.
|
NewSearcher(IndexReader, Boolean, Boolean)
|
|
NewSearcher(IndexReader, Boolean, Boolean, Similarity)
|
Create a new searcher over the reader. this searcher might randomly use
threads. if maybeWrap is true, this searcher might wrap the
reader with one that returns null for getSequentialSubReaders. If
wrapWithAssertions is true, this searcher might be an
AssertingIndexSearcher instance.
|
NewStringField(Random, String, String, Field.Store)
|
LUCENENET specific
Is non-static.
|
NewStringField(String, String, Field.Store)
|
LUCENENET specific
Is non-static.
|
NewTextField(Random, String, String, Field.Store)
|
LUCENENET specific
Is non-static.
|
NewTextField(String, String, Field.Store)
|
LUCENENET specific
Is non-static.
|
NewTieredMergePolicy()
|
|
NewTieredMergePolicy(Random)
|
|
Random()
|
|
randomGaussian()
|
|
randomInt(Int32)
|
|
randomIntBetween(Int32, Int32)
|
|
RandomLocale(Random)
|
|
RandomTimeZone(Random)
|
|
randon()
|
|
Rarely()
|
|
Rarely(Random)
|
|
SetUp()
|
For subclasses to override. Overrides must call base.SetUp() .
|
SlowFileExists(Directory, String)
|
Returns true if the file exists (can be opened), false
if it cannot be opened, and (unlike Java's
File.exists) if there's some
unexpected error.
|
TearDown()
|
For subclasses to override. Overrides must call base.TearDown() .
|
TestThread()
|
Returns true if and only if the calling thread is the primary thread
executing the test case.
|
Usually()
|
|
Usually(Random)
|
|