RecursiveTreeMethod findLatestResult = new RecursiveTreeMethod() {
@Override
public void doMethod(TreeItem item) {
if (item.isTest()) {
File directory = new File(historyDirectory, item.fullName);
MostRecentPageHistoryReader reader = new MostRecentPageHistoryReader(directory);
item.result = reader.findMostRecentTestRun();
}
}
};
treeRoot.doRecursive(findLatestResult, 0);
}