mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-03 17:59:46 +02:00
Test fixes
This commit is contained in:
parent
73d29e3488
commit
04f1cca0ab
1 changed files with 42 additions and 41 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue