use of org.eclipse.mylyn.wikitext.parser.HtmlParser in project mylyn.docs by eclipse.
the class HtmlParserTest method instance.
@Test
public void instance() {
HtmlParser instance = HtmlParser.instance();
assertNotNull(instance);
assertNotNull(instance.getDelegate());
}
use of org.eclipse.mylyn.wikitext.parser.HtmlParser in project mylyn.docs by eclipse.
the class HtmlParserTest method jsoupNotAvailable.
@Test
public void jsoupNotAvailable() throws Exception {
HtmlParser parser = new HtmlParser() {
@Override
boolean isJsoupAvailable() {
return false;
}
};
assertCanParseSomething(parser);
}
use of org.eclipse.mylyn.wikitext.parser.HtmlParser in project mylyn.docs by eclipse.
the class HtmlParserTest method instanceWithHtmlCleanupRules.
@Test
public void instanceWithHtmlCleanupRules() {
HtmlParser instance = HtmlParser.instanceWithHtmlCleanupRules();
assertNotNull(instance);
assertNotNull(instance.getDelegate());
assertTrue(instance.getDelegate() instanceof org.eclipse.mylyn.wikitext.internal.parser.html.HtmlParser);
org.eclipse.mylyn.wikitext.internal.parser.html.HtmlParser delegate = (org.eclipse.mylyn.wikitext.internal.parser.html.HtmlParser) instance.getDelegate();
assertFalse(delegate.getProcessors().isEmpty());
}
Aggregations