@Test public void configureStylesheetUrls() { markupToEclipseHelp.stylesheetUrls = Arrays.asList("test/foo.css", "bar.css"); HtmlDocumentBuilder builder = mock(HtmlDocumentBuilder.class); markupToEclipseHelp.configureStylesheets(builder, ""); verify(builder, times(2)).addCssStylesheet(any(Stylesheet.class)); }
protected void configureStylesheets(HtmlDocumentBuilder builder, String relativePath) { for (String cssStylesheetUrl : stylesheetUrls) { builder.addCssStylesheet( new HtmlDocumentBuilder.Stylesheet(computeResourcePath(cssStylesheetUrl, relativePath))); } }
MarkupToEclipseHelpMojo extends AbstractMojo { protected void configureStylesheets(HtmlDocumentBuilder builder, String relativePath) { for (String cssStylesheetUrl : stylesheetUrls) { builder.addCssStylesheet( new HtmlDocumentBuilder.Stylesheet(computeResourcePath(cssStylesheetUrl, relativePath))); } } }
MarkupToEclipseHelpMojo extends AbstractMojo { protected void configureStylesheets(HtmlDocumentBuilder builder, String relativePath) { for (String cssStylesheetUrl : stylesheetUrls) { builder.addCssStylesheet( new HtmlDocumentBuilder.Stylesheet(computeResourcePath(cssStylesheetUrl, relativePath))); } }  }
MarkupToEclipseHelpMojo extends AbstractMojo { protected void configureStylesheets(HtmlDocumentBuilder builder, String relativePath) { for (String cssStylesheetUrl : stylesheetUrls) { builder.addCssStylesheet( new HtmlDocumentBuilder.Stylesheet(computeResourcePath(cssStylesheetUrl, relativePath))); } }  void execute(); }
MarkupToEclipseHelpMojo extends AbstractMojo { protected void configureStylesheets(HtmlDocumentBuilder builder, String relativePath) { for (String cssStylesheetUrl : stylesheetUrls) { builder.addCssStylesheet( new HtmlDocumentBuilder.Stylesheet(computeResourcePath(cssStylesheetUrl, relativePath))); } }  void execute();  }