*/
public class TestComboAnalyzer extends BaseTokenStreamTestCase {
@Test
public void testSingleAnalyzer() throws IOException {
ComboAnalyzer cb = new ComboAnalyzer(TEST_VERSION_CURRENT, new WhitespaceAnalyzer(TEST_VERSION_CURRENT));
for (int i = 0 ; i < 3 ; i++)
assertTokenStreamContents(cb.tokenStream("field", new StringReader("just a little test "+i)),
new String[]{"just", "a", "little", "test", Integer.toString(i)},
new int[]{ 0, 5, 7, 14, 19},
new int[]{ 4, 6, 13, 18, 20},