public SubstepNode build(final String scenarioDescription, final List<Step> steps, final PatternMap<ParentStep> subStepsMapLocal, final ParentStep parent, final ExampleParameter parametersForSteps, final boolean throwExceptionIfUnableToBuildMethodArgs, final Set<String> tags, final int depth) { if (steps == null || steps.isEmpty()) { throw new SubstepsConfigurationException("There are no steps for " + scenarioDescription + " or a substep"); } final List<StepNode> substeps = Lists.newArrayList(); for (final Step step : steps) { substeps.add(buildStepNode(scenarioDescription, step, subStepsMapLocal, parent, parametersForSteps, throwExceptionIfUnableToBuildMethodArgs, tags, depth + 1)); } return new SubstepNode(substeps, tags, depth); }
public SubstepNode build(final String scenarioDescription, final List<Step> steps, final PatternMap<ParentStep> subStepsMapLocal, final ParentStep parent, final ExampleParameter parametersForSteps, final boolean throwExceptionIfUnableToBuildMethodArgs, final Set<String> tags, final int depth) { if (steps == null || steps.isEmpty()) { throw new SubstepsConfigurationException("There are no steps for " + scenarioDescription + " or a substep"); } final List<StepNode> substeps = Lists.newArrayList(); for (final Step step : steps) { substeps.add(buildStepNode(scenarioDescription, step, subStepsMapLocal, parent, parametersForSteps, throwExceptionIfUnableToBuildMethodArgs, tags, depth + 1)); } return new SubstepNode(substeps, tags, depth); }