use of org.eclipse.mylyn.wikitext.parser.builder.HtmlDocumentBuilder.Stylesheet in project mylyn.docs by eclipse.
the class MarkupToEclipseHelpMojoTest method configureStylesheetUrlsWithRelativePath.
@Test
public void configureStylesheetUrlsWithRelativePath() {
markupToEclipseHelp.stylesheetUrls = Arrays.asList("bar.css");
HtmlDocumentBuilder builder = mock(HtmlDocumentBuilder.class);
markupToEclipseHelp.configureStylesheets(builder, "one/two");
ArgumentCaptor<Stylesheet> captor = ArgumentCaptor.forClass(Stylesheet.class);
verify(builder).addCssStylesheet(captor.capture());
assertEquals("../../bar.css", captor.getValue().getUrl());
}
Aggregations