Example usage for org.apache.lucene.analysis BaseTokenStreamTestCase assertTokenStreamContents

List of usage examples for org.apache.lucene.analysis BaseTokenStreamTestCase assertTokenStreamContents

Introduction

In this page you can find the example usage for org.apache.lucene.analysis BaseTokenStreamTestCase assertTokenStreamContents.

Prototype

public static void assertTokenStreamContents(TokenStream ts, String[] output, int[] posIncrements)
            throws IOException 

Source Link

Usage

From source file:org.apache.solr.analysis.ko.TestKoreanTokenizerFactory.java

License:Apache License

/**
 * @param s/*from  w  ww  .  j  ava2s. co  m*/
 *             ?
 * @param tokens
 *            ? ?
 * @throws IOException
 */
private void analyze(String s, String... tokens) throws IOException {
    TokenStream input = tokenizerK(s);
    int[] increments = new int[tokens.length];
    Arrays.fill(increments, 1);
    BaseTokenStreamTestCase.assertTokenStreamContents(input, tokens, increments);
}