BaseTokenStreamTestCase

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

Inheritors

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard

Attribute that records if it was cleared or not. This is used for testing that clearAttributes() was called correctly.

Link copied to clipboard

Attribute that records if it was cleared or not. This is used for testing that clearAttributes() was called correctly.

Link copied to clipboard
object Companion

Functions

Link copied to clipboard