@Override protected boolean execute(RootNode node, RootNodeExecutionContext context) { boolean success = addExpectedChildrenFailureIfNoChildren(node, node.getChildren(), context); for (FeatureNode feature : node.getChildren()) { success &= featureNodeRunner.run(feature, context); } return success; }
@Override protected boolean execute(RootNode node, RootNodeExecutionContext context) { boolean success = addExpectedChildrenFailureIfNoChildren(node, node.getChildren(), context); for (FeatureNode feature : node.getChildren()) { success &= featureNodeRunner.run(feature, context); } return success; }
@Override public <RETURN_TYPE> List<RETURN_TYPE> accept(ExecutionNodeVisitor<RETURN_TYPE> executionNodeVisitor) { List<RETURN_TYPE> toReturn = Lists.newArrayList(); toReturn.add(executionNodeVisitor.visit(this)); for (FeatureNode feature : getChildren()) { toReturn.addAll(feature.accept(executionNodeVisitor)); } return toReturn; }
private void buildStatsForRootNode(RootNode rootNode) { for (FeatureNode featureNode : rootNode.getChildren()) { buildStatsForFeatureNode(featureNode); for (ScenarioNode<?> scenarioNode : featureNode.getChildren()) { buildStatsForScenarioNode(scenarioNode); } } }
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 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()); } } }
List<FeatureNode> featureNodes = node.getChildren(); boolean rootNodeStateSet = false; for (FeatureNode featureNode : node.getChildren()){
for (FeatureNode featureNode : node.getChildren()) {