Class BaseTokenStreamTestCase


  • public abstract class BaseTokenStreamTestCase
    extends LuceneTestCase
    Base class for all Lucene unit tests that use TokenStreams.

    When writing unit tests for analysis components, its highly recommended to use the helper methods here (especially in conjunction with MockAnalyzer or MockTokenizer), as they contain many assertions and checks to catch bugs.

    See Also:
    MockAnalyzer, MockTokenizer