public Object[] getChildren(Object parent) {
if (parent instanceof TreeTestResult) {
- log.error("We should not reach this point.");
+ if (log.isErrorEnabled())
+ log.error("Trying to get children for parent object of type TreeTestResult. "
+ + "We should not reach this point.");
return null;
}
if (node instanceof ResultTreeParent) {
ResultTreeParent rtp = (ResultTreeParent) node;
// we dig the tree recursivly
- for (TreeParent to : rtp.getChildren())
+ for (Object to : rtp.getChildren())
setIsPassed((StatusAware) to);
// we set is passed
- for (TreeParent to : rtp.getChildren()) {
+ for (Object to : rtp.getChildren()) {
if (!((StatusAware) to).isPassed()) {
rtp.isPassed = false;
return;
public ResultPartNode(String label, Integer status, String message) {
super(label);
+ log.debug("Creating new leaf with label : " + label);
handleStatus(status);
this.message = message;
}