assertEquals("Incorrect value returned from asValue()", testText[1], e.toString(true));
}
public void testAsComponentDefRefs() throws Exception {
TextTokenizer tokenizer = TextTokenizer.tokenize(wholeText, null);
ComponentDefHandler cdh = new ComponentDefHandler(null, null, null);
List<ComponentDefRef> l = tokenizer.asComponentDefRefs(cdh);
assertEquals("Wrong number of ComponentDefRefs returned", 3, l.size());
ComponentDefRef c = l.get(0);
assertEquals("Incorrect ComponentDefRef type", "text", c.getDescriptor().getName());
assertEquals("Incorrect ComponentDefRef value", testText[0], c.getAttributeDefRef("value").getValue());