void () { TreeNode root = createRoot(); TreeNode digit = root.getChildAt(1); TreePath parent = new TreePath(root); test(parent, digit, 1, createPathFinder("root")); test(parent, digit, 1, createPathFinder("toor")); // not found test(parent, digit, 1, createPathFinder("root", "color")); test(parent, digit, 1, createPathFinderWithoutRoot("color")); test(parent, digit, 1, createPathFinder("root", "roloc")); // not found test(parent, digit, 1, createPathFinderWithoutRoot("roloc")); // not found test(parent, digit, 1, createPathFinder("root", "digit"), root, digit); test(parent, digit, 1, createPathFinderWithoutRoot("digit"), root, digit); test(parent, digit, 1, createPathFinder("root", "tigid")); // not found test(parent, digit, 1, createPathFinderWithoutRoot("tigid")); // not found test(parent, digit, 2, createPathFinder("root", "digit", "one"), root, digit, digit.getChildAt(0)); test(parent, digit, 2, createPathFinderWithoutRoot("digit", "one"), root, digit, digit.getChildAt(0)); test(parent, digit, 10, createPathFinder("root", "digit", "eno")); // not found test(parent, digit, 10, createPathFinderWithoutRoot("digit", "eno")); // not found test(parent, digit, 3, createPathFinder("root", "digit", "two"), root, digit, digit.getChildAt(1)); test(parent, digit, 3, createPathFinderWithoutRoot("digit", "two"), root, digit, digit.getChildAt(1)); test(parent, digit, 10, createPathFinder("root", "digit", "owt")); // not found test(parent, digit, 10, createPathFinderWithoutRoot("digit", "owt")); // not found test(parent, digit, 4, createPathFinder("root", "digit", "three"), root, digit, digit.getChildAt(2)); test(parent, digit, 4, createPathFinderWithoutRoot("digit", "three"), root, digit, digit.getChildAt(2)); test(parent, digit, 10, createPathFinder("root", "digit", "eerht")); // not found test(parent, digit, 10, createPathFinderWithoutRoot("digit", "eerht")); // not found test(parent, digit, 5, createPathFinder("root", "digit", "four"), root, digit, digit.getChildAt(3)); test(parent, digit, 5, createPathFinderWithoutRoot("digit", "four"), root, digit, digit.getChildAt(3)); test(parent, digit, 10, createPathFinder("root", "digit", "ruof")); // not found test(parent, digit, 10, createPathFinderWithoutRoot("digit", "ruof")); // not found test(parent, digit, 6, createPathFinder("root", "digit", "five"), root, digit, digit.getChildAt(4)); test(parent, digit, 6, createPathFinderWithoutRoot("digit", "five"), root, digit, digit.getChildAt(4)); test(parent, digit, 10, createPathFinder("root", "digit", "evif")); // not found test(parent, digit, 10, createPathFinderWithoutRoot("digit", "evif")); // not found test(parent, digit, 7, createPathFinder("root", "digit", "six"), root, digit, digit.getChildAt(5)); test(parent, digit, 7, createPathFinderWithoutRoot("digit", "six"), root, digit, digit.getChildAt(5)); test(parent, digit, 10, createPathFinder("root", "digit", "xis")); // not found test(parent, digit, 10, createPathFinderWithoutRoot("digit", "xis")); // not found test(parent, digit, 8, createPathFinder("root", "digit", "seven"), root, digit, digit.getChildAt(6)); test(parent, digit, 8, createPathFinderWithoutRoot("digit", "seven"), root, digit, digit.getChildAt(6)); test(parent, digit, 10, createPathFinder("root", "digit", "neves")); // not found test(parent, digit, 10, createPathFinderWithoutRoot("digit", "neves")); // not found test(parent, digit, 9, createPathFinder("root", "digit", "eight"), root, digit, digit.getChildAt(7)); test(parent, digit, 9, createPathFinderWithoutRoot("digit", "eight"), root, digit, digit.getChildAt(7)); test(parent, digit, 10, createPathFinder("root", "digit", "thgie")); // not found test(parent, digit, 10, createPathFinderWithoutRoot("digit", "thgie")); // not found test(parent, digit, 10, createPathFinder("root", "digit", "nine"), root, digit, digit.getChildAt(8)); test(parent, digit, 10, createPathFinderWithoutRoot("digit", "nine"), root, digit, digit.getChildAt(8)); test(parent, digit, 10, createPathFinder("root", "digit", "enin")); // not found test(parent, digit, 10, createPathFinderWithoutRoot("digit", "enin")); // not found test(parent, digit, 1, createPathFinder("root", "greek")); test(parent, digit, 1, createPathFinderWithoutRoot("greek")); test(parent, digit, 1, createPathFinder("root", "keerg")); // not found test(parent, digit, 1, createPathFinderWithoutRoot("keerg")); // not found }