Test fixes

This commit is contained in:
dragonmacher 2025-03-11 14:27:00 -04:00
parent 73d29e3488
commit 04f1cca0ab

View file

@ -35,6 +35,8 @@ import help.validator.model.*;
public class OverlayHelpTreeTest {
private int sortCounter;
@Test
public void testSourceTOCFileThatDependsUponPreBuiltHelp() {
//
@ -212,7 +214,6 @@ public class OverlayHelpTreeTest {
// note: prebuilt_a_child and prebuilt_b_child don't get output, since they do not have
// the same TOC file ID as the help file being processed (in other words, they don't
// live in the TOC_Source.xml being processes, so they are not part of the output).
}
@Test
@ -288,7 +289,7 @@ public class OverlayHelpTreeTest {
// note: prebuilt_a_child and prebuilt_b_child don't get output, since they do not have
// the same TOC file ID as the help file being processed (in other words, they don't
// live in the TOC_Source.xml being processes, so they are not part of the output).
// live in the TOC_Source.xml being processed, so they are not part of the output).
}
//==================================================================================================
@ -327,7 +328,7 @@ public class OverlayHelpTreeTest {
private TOCItemDefinition tocdef(TOCItem parent, String ID, String text, Path tocSourceFile) {
String target = "fake";
String sort = "";
String sort = Integer.toString(++sortCounter);
int line = 1;
return new TOCItemDefinition(parent, tocSourceFile, ID, text, target, sort, line);
}
@ -351,7 +352,7 @@ public class OverlayHelpTreeTest {
private TOCItemExternal externalItem(TOCItem parent, String ID, String text) {
Path tocFile = Paths.get("/fake/path_1/PreBuild_TOC.xml");
String target = "fake";
String sort = "";
String sort = Integer.toString(++sortCounter);
int line = 1;
return new TOCItemExternal(parent, tocFile, ID, text, target, sort, line);
}