Class BaseTokenStreamTestCase

java.lang.Object
org.junit.Assert
org.apache.lucene.tests.util.LuceneTestCase
org.apache.lucene.tests.analysis.BaseTokenStreamTestCase
Direct Known Subclasses:
BaseTokenStreamFactoryTestCase, EmojiTokenizationTestUnicode_12_1, WordBreakTestUnicode_12_1_0

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

When writing unit tests for analysis components, it's 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:
  • Constructor Details

    • BaseTokenStreamTestCase

      public BaseTokenStreamTestCase()
  • Method Details