Class MockAnalyzer

public final class MockAnalyzer
extends org.apache.lucene.analysis.Analyzer

Analyzer for testing

This analyzer is a replacement for Whitespace/Simple/KeywordAnalyzers
for unit tests. If you are testing a custom component such as a queryparser
or analyzer-wrapper that consumes analysis streams, its a great idea to test
it with this analyzer instead. MockAnalyzer has the following behavior: