Show / Hide Table of Contents

    Namespace Lucene.Net.Util

    Some utility classes.

    Classes

    BaseDocIdSetTestCase<T>

    Base test class for s.

    English

    Converts numbers to english strings for testing.

    This is a Lucene.NET INTERNAL API, use at your own risk

    FailOnNonBulkMergesInfoStream

    Hackidy-Häck-Hack to cause a test to fail on non-bulk merges

    LineFileDocs

    Minimal port of benchmark's LneDocSource + DocMaker, so tests can enum docs from a line file created by benchmark's WriteLineDoc task

    LuceneTestCase

    LUCENENET specific extensions to LuceneTestCase to make it easier to port tests from Java with fewer changes.

    LuceneTestCase.ConcurrentMergeSchedulerFactories

    Contains a list of all the Func<IConcurrentMergeSchedulers> to be tested. Delegate method allows them to be created on their target thread instead of the test thread and also ensures a separate instance is created in each case (which can affect the result of the test).

    LUCENENET specific for injection into tests (i.e. using NUnit.Framework.ValueSourceAttribute)

    LuceneTestCase.SuppressCodecsAttribute

    Annotation for test classes that should avoid certain codec types (because they are expensive, for example).

    LuceneTestCase.SuppressTempFileChecksAttribute

    Marks any suites which are known not to close all the temporary files. This may prevent temp files and folders from being cleaned up after the suite is completed.

    NullInfoStream

    Prints nothing. Just to make sure tests pass w/ and without enabled without actually making noise.

    This is a Lucene.NET EXPERIMENTAL API, use at your own risk

    StackTraceHelper

    LUCENENET specific class to normalize stack trace behavior between different .NET Framework and .NET Standard 1.x, which did not support the StackTrace class.

    TestUtil

    General utility methods for Lucene unit tests.

    ThrottledIndexOutput

    Intentionally slow for testing.

    TimeUnits

    Time unit constants for use in annotations.

    • Improve this Doc
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)