use of org.eclipse.mylyn.wikitext.parser.util.MarkupToEclipseToc in project mylyn.docs by eclipse.
the class MarkupToEclipseHelpMojoTest method createMarkupToEclipseTocAnchorLevel.
@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());
}
use of org.eclipse.mylyn.wikitext.parser.util.MarkupToEclipseToc in project mylyn.docs by eclipse.
the class MarkupToEclipseHelpMojoTest method createMarkupToEclipseTocCopyrightNotice.
@Test
public void createMarkupToEclipseTocCopyrightNotice() {
File file = mock(File.class);
doReturn("Test.html").when(file).getName();
markupToEclipseHelp.copyrightNotice = "Test Copyright";
MarkupToEclipseToc toc = markupToEclipseHelp.createMarkupToEclipseToc("", file, "Test");
assertEquals("Test Copyright", toc.getCopyrightNotice());
}
Aggregations