TestThaiAnalyzerpublic class TestThaiAnalyzer extends TestCase Test case for ThaiAnalyzer, modified from TestFrenchAnalyzer |
Methods Summary |
---|
public void | assertAnalyzesTo(org.apache.lucene.analysis.Analyzer a, java.lang.String input, java.lang.String[] output)
TokenStream ts = a.tokenStream("dummy", new StringReader(input));
for (int i = 0; i < output.length; i++) {
Token t = ts.next();
assertNotNull(t);
assertEquals(t.termText(), output[i]);
}
assertNull(ts.next());
ts.close();
| public void | testAnalyzer()
ThaiAnalyzer analyzer = new ThaiAnalyzer();
assertAnalyzesTo(analyzer, "", new String[] {});
assertAnalyzesTo(
analyzer,
"āļ
|
|