assertEquals(RichTextTokenizer.Type.TEXT, tokens.next());
assertEquals(tokens.getData(), "Here");
}
public void testNestedDivs() {
RichTextTokenizer tokens = tokenize("<div><div><p>bar</p></div></div>");
assertEquals(RichTextTokenizer.Type.NEW_LINE, tokens.next());
assertEquals(RichTextTokenizer.Type.TEXT, tokens.next());
assertEquals(tokens.getData(), "bar");
assertEquals(RichTextTokenizer.Type.NEW_LINE, tokens.next());
assertFalse(tokens.hasNext());
}