TreeTraverser traverser = new TreeTraverser(testNode, errorHandler, TreeTraverser.InclusionPolicy.ALL);
checkNodes(traverser, singleton(""), testNode.getPath());
}
public void testTraverseLeavesEmpty() throws RepositoryException {
TreeTraverser traverser = new TreeTraverser(testNode, errorHandler, TreeTraverser.InclusionPolicy.LEAVES);
checkNodes(traverser, singleton(""), testNode.getPath());
}