use of org.terasology.rendering.nui.widgets.browser.data.basic.FlowParagraphData in project Terasology by MovingBlocks.
the class HTMLParserTest method testParseSimpleParagraph.
@Test
public void testParseSimpleParagraph() throws IOException, SAXException, ParserConfigurationException {
DocumentData documentData = htmlParser.parseHTMLDocument("<body><p>Text</p></body>");
assertEquals(1, documentData.getParagraphs().size());
ParagraphData paragraph = documentData.getParagraphs().iterator().next();
assertTrue(paragraph instanceof FlowParagraphData);
}
Aggregations