Search in sources :

Example 1 with MarkdownDocumentBuilder

use of org.eclipse.mylyn.wikitext.markdown.internal.MarkdownDocumentBuilder in project mylyn.docs by eclipse.

the class MarkdownDocumentBuilderTest method setUp.

@Override
protected void setUp() throws Exception {
    out = new StringWriter();
    builder = new MarkdownDocumentBuilder(out);
}
Also used : MarkdownDocumentBuilder(org.eclipse.mylyn.wikitext.markdown.internal.MarkdownDocumentBuilder) StringWriter(java.io.StringWriter)

Example 2 with MarkdownDocumentBuilder

use of org.eclipse.mylyn.wikitext.markdown.internal.MarkdownDocumentBuilder in project mylyn.docs by eclipse.

the class MarkdownLanguageTest method testCreateDocumentBuilder.

public void testCreateDocumentBuilder() {
    AbstractMarkupLanguage lang = new MarkdownLanguage();
    DocumentBuilder builder = lang.createDocumentBuilder(new StringWriter());
    assertNotNull(builder);
    assertTrue(builder instanceof MarkdownDocumentBuilder);
}
Also used : MarkdownDocumentBuilder(org.eclipse.mylyn.wikitext.markdown.internal.MarkdownDocumentBuilder) StringWriter(java.io.StringWriter) DocumentBuilder(org.eclipse.mylyn.wikitext.parser.DocumentBuilder) MarkdownDocumentBuilder(org.eclipse.mylyn.wikitext.markdown.internal.MarkdownDocumentBuilder) MarkdownLanguage(org.eclipse.mylyn.wikitext.markdown.MarkdownLanguage) AbstractMarkupLanguage(org.eclipse.mylyn.wikitext.parser.markup.AbstractMarkupLanguage)

Aggregations

StringWriter (java.io.StringWriter)2 MarkdownDocumentBuilder (org.eclipse.mylyn.wikitext.markdown.internal.MarkdownDocumentBuilder)2 MarkdownLanguage (org.eclipse.mylyn.wikitext.markdown.MarkdownLanguage)1 DocumentBuilder (org.eclipse.mylyn.wikitext.parser.DocumentBuilder)1 AbstractMarkupLanguage (org.eclipse.mylyn.wikitext.parser.markup.AbstractMarkupLanguage)1