@Test public void createMarkupToEclipseTocAnchorLevel() { File file = mock(File.class); doReturn("Test.html").when(file).getName(); MarkupToEclipseToc toc = markupToEclipseHelp.createMarkupToEclipseToc("", file, "Test"); assertEquals(0, toc.getAnchorLevel()); markupToEclipseHelp.tocAnchorLevel = 3; toc = markupToEclipseHelp.createMarkupToEclipseToc("", file, "Test"); assertEquals(3, toc.getAnchorLevel()); }
protected MarkupToEclipseToc createMarkupToEclipseToc(String relativePath, File htmlOutputFile, String name) { MarkupToEclipseToc toEclipseToc = new SplittingMarkupToEclipseToc(); toEclipseToc.setBookTitle(title == null ? name : title); toEclipseToc.setCopyrightNotice(copyrightNotice); toEclipseToc.setAnchorLevel(tocAnchorLevel); toEclipseToc.setHelpPrefix(calculateHelpPrefix(relativePath)); toEclipseToc.setHtmlFile(htmlOutputFile.getName()); return toEclipseToc; }
MarkupToEclipseHelpMojo extends AbstractMojo { protected MarkupToEclipseToc createMarkupToEclipseToc(String relativePath, File htmlOutputFile, String name) { MarkupToEclipseToc toEclipseToc = new SplittingMarkupToEclipseToc(); toEclipseToc.setBookTitle(title == null ? name : title); toEclipseToc.setCopyrightNotice(copyrightNotice); toEclipseToc.setAnchorLevel(tocAnchorLevel); toEclipseToc.setHelpPrefix(calculateHelpPrefix(relativePath)); toEclipseToc.setHtmlFile(htmlOutputFile.getName()); return toEclipseToc; } }
MarkupToEclipseHelpMojo extends AbstractMojo { protected MarkupToEclipseToc createMarkupToEclipseToc(String relativePath, File htmlOutputFile, String name) { MarkupToEclipseToc toEclipseToc = new SplittingMarkupToEclipseToc(); toEclipseToc.setBookTitle(title == null ? name : title); toEclipseToc.setCopyrightNotice(copyrightNotice); toEclipseToc.setAnchorLevel(tocAnchorLevel); toEclipseToc.setHelpPrefix(calculateHelpPrefix(relativePath)); toEclipseToc.setHtmlFile(htmlOutputFile.getName()); return toEclipseToc; }  }
MarkupToEclipseHelpMojo extends AbstractMojo { protected MarkupToEclipseToc createMarkupToEclipseToc(String relativePath, File htmlOutputFile, String name) { MarkupToEclipseToc toEclipseToc = new SplittingMarkupToEclipseToc(); toEclipseToc.setBookTitle(title == null ? name : title); toEclipseToc.setCopyrightNotice(copyrightNotice); toEclipseToc.setAnchorLevel(tocAnchorLevel); toEclipseToc.setHelpPrefix(calculateHelpPrefix(relativePath)); toEclipseToc.setHtmlFile(htmlOutputFile.getName()); return toEclipseToc; }  void execute(); }
MarkupToEclipseHelpMojo extends AbstractMojo { protected MarkupToEclipseToc createMarkupToEclipseToc(String relativePath, File htmlOutputFile, String name) { MarkupToEclipseToc toEclipseToc = new SplittingMarkupToEclipseToc(); toEclipseToc.setBookTitle(title == null ? name : title); toEclipseToc.setCopyrightNotice(copyrightNotice); toEclipseToc.setAnchorLevel(tocAnchorLevel); toEclipseToc.setHelpPrefix(calculateHelpPrefix(relativePath)); toEclipseToc.setHtmlFile(htmlOutputFile.getName()); return toEclipseToc; }  void execute();  }