use of org.eclipse.mylyn.wikitext.parser.markup.MarkupLanguageConfiguration in project mylyn.docs by eclipse.
the class BugzillaTextileLanguageTest method initParser.
private void initParser() throws IOException {
parser = new MarkupParser();
TextileLanguage markupLanguage = new TextileLanguage();
MarkupLanguageConfiguration configuration = Util.create("bugzilla");
markupLanguage.configure(configuration);
parser.setMarkupLanguage(markupLanguage);
}
use of org.eclipse.mylyn.wikitext.parser.markup.MarkupLanguageConfiguration in project mylyn.docs by eclipse.
the class MarkupLanguageConfigurationTest method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
configuration = new MarkupLanguageConfiguration();
}
use of org.eclipse.mylyn.wikitext.parser.markup.MarkupLanguageConfiguration in project mylyn.docs by eclipse.
the class MarkupLanguageConfigurationTest method testCloneWithLocale.
public void testCloneWithLocale() {
configuration.setLocale(Locale.ENGLISH);
MarkupLanguageConfiguration copy = configuration.clone();
assertEquals(configuration.getLocale(), copy.getLocale());
}
use of org.eclipse.mylyn.wikitext.parser.markup.MarkupLanguageConfiguration in project mylyn.docs by eclipse.
the class ConfigurationBuilderTest method testRepositorySettings.
public void testRepositorySettings() {
MarkupLanguageConfiguration configuration = ConfigurationBuilder.create().repositorySettings().configuration();
assertFalse(configuration.isEnableUnwrappedParagraphs());
assertTrue(configuration.isEscapingHtmlAndXml());
assertTrue(configuration.isNewlinesMustCauseLineBreak());
assertTrue(configuration.isOptimizeForRepositoryUsage());
assertHasInstance(configuration.getBlocks(), EclipseErrorDetailsBlock.class);
assertHasInstance(configuration.getBlocks(), JavaStackTraceBlock.class);
}
Aggregations