@Test
public void testCascadeCombo() throws IOException {
ComboAnalyzer cb = new ComboAnalyzer(TEST_VERSION_CURRENT,
new ComboAnalyzer(TEST_VERSION_CURRENT,
new WhitespaceAnalyzer(TEST_VERSION_CURRENT),
new KeywordAnalyzer()
),
new StandardAnalyzer(TEST_VERSION_CURRENT),
new KeywordAnalyzer()
);
for (int i = 0 ; i < 3 ; i++)
assertTokenStreamContents(cb.tokenStream("field", new StringReader("just a little test "+i)),
new String[]{"just", "just", "just a little test "+i, "just a little test "+i, "a", "little", "little", "test", "test", Integer.toString(i), Integer.toString(i)},
new int[]{ 0, 0, 0, 0, 5, 7, 7, 14, 14, 19, 19},