use of org.eclipse.mylyn.wikitext.html.HtmlLanguage in project mylyn.docs by eclipse.
the class HtmlLanguageTest method newDocumentBuilderIsNotFormatting.
@Test
public void newDocumentBuilderIsNotFormatting() {
Writer out = new StringWriter();
DocumentBuilder builder = new HtmlLanguage().createDocumentBuilder(out, false);
builder.beginDocument();
builder.beginBlock(BlockType.PARAGRAPH, new Attributes());
builder.characters("test");
builder.endBlock();
builder.endDocument();
assertEquals(loadResourceContent("newDocumentBuilderIsNotFormatting.xml"), out.toString());
}
use of org.eclipse.mylyn.wikitext.html.HtmlLanguage in project mylyn.docs by eclipse.
the class HtmlLanguageTest method create.
@Test
public void create() {
HtmlLanguage language = new HtmlLanguage();
assertEquals("HTML", language.getName());
}
Aggregations