public SubstepNode(List<StepNode> substeps, Set<String> tags, int depth) { super(substeps); this.tags = tags; setDepth(depth); }
private List<IExecutionNode> flattenTree(final IExecutionNode node) { return node.accept(new AbstractExecutionNodeVisitor<IExecutionNode>() { @Override public IExecutionNode visit(IExecutionNode node) { return node; } }); }
private void buildCallHierarchy() { final ExecutionNodeUsage rootUsage = new ExecutionNodeUsage(this.rootNode); callerHierarchy.put(rootUsage, null); // nothing calls this for (final FeatureNode feature : this.rootNode.getChildren()) { addToCallHierarchy(feature); for (final ScenarioNode scenario : feature.getChildren()) { addToCallHierarchy(scenario); processChildrenForCallHierarchy(scenario.getChildren()); } } }
private void buildStatsForRootNode(RootNode rootNode) { for (FeatureNode featureNode : rootNode.getChildren()) { buildStatsForFeatureNode(featureNode); for (ScenarioNode<?> scenarioNode : featureNode.getChildren()) { buildStatsForScenarioNode(scenarioNode); } } }
@Override public Void visit(OutlineScenarioNode outlineScenarioNode) { for (OutlineScenarioRowNode row : outlineScenarioNode.getChildren()) { visit(row.getBasicScenarioNode()); } return null; }
@Override public String toString() { return "u: " + theNode.getDescription(); }
public List<StepNode> getSteps() { return getChildren(); }
public boolean isApplicable(final IExecutionNode node) { return node.dispatch(this); }
public void appendMethodInfo(final StringBuilder buf) { appendMethodInfo(null, buf); }
@Override public String getDescription() { return rowIndex + " " + getChildren().get(0).getScenarioName() + ":"; }
private void attachParentTo(List<CHILD_TYPE> children) { for (CHILD_TYPE child : children) { child.setParent(this); } } }
public NodeWithChildren(List<CHILD_TYPE> children) { this.children = children; attachParentTo(children); }
public boolean apply(ExecutionNode node) { return node.hasError(); } };
@Override public String getDescription() { return getLine(); }
@Override public String toDebugString() { return super.toDebugString() + " impl: " + targetClassName + "." + methodName; }
@Override public String getDescription() { return getLine(); }
private void buildCallHierarchy() { final ExecutionNodeUsage rootUsage = new ExecutionNodeUsage(this.rootNode); callerHierarchy.put(rootUsage, null); // nothing calls this for (final FeatureNode feature : this.rootNode.getChildren()){ addToCallHierarchy(feature); for (final ScenarioNode scenario : feature.getChildren()){ addToCallHierarchy(scenario); processChildrenForCallHierarchy(scenario.getChildren()); } } }
public String getDescription() { return theNode.getDescription(); }