private static final int SCENARIO_STEPS_EXPECTED = 10;
@Before
public void setupDataAsAbove() {
TestRootNodeBuilder rootBuilder = new TestRootNodeBuilder();
TestFeatureNodeBuilder feature1 = rootBuilder.addFeature(new Feature("Feature1", "File"));
TestFeatureNodeBuilder feature2 = rootBuilder.addFeature(new Feature("Feature2", "File"));
TestBasicScenarioNodeBuilder scenarioA = feature1.addBasicScenario("ScenarioA");
TestBasicScenarioNodeBuilder scenarioB = feature1.addBasicScenario("ScenarioB");
TestSubstepNodeBuilder aSubstep1 = scenarioA.addSubstep();
aSubstep1.addSubstep().addStepImpl(getClass(), null);
aSubstep1.addSubstep().addStepImpl(getClass(), null);
scenarioA.addSubstep().addStepImpl(getClass(), null).addStepImpl(getClass(), null);
scenarioB.addStepImpl(getClass(), null).addSubstep().addStepImpl(getClass(), null);
TestOutlineScenarioNodeBuilder scenarioOutline1 = feature2.addOutlineScenario("SO1");
TestOutlineScenarioRowNodeBuilder row1 = scenarioOutline1.addRow(1);
TestOutlineScenarioRowNodeBuilder row2 = scenarioOutline1.addRow(2);
TestBasicScenarioNodeBuilder basicScenarioC = row1.setBasicScenario("BasicScenarioC");
basicScenarioC.addSubstep().addStepImpls(2, getClass(), null);
basicScenarioC.addSubstep().addStepImpl(getClass(), null);
row2.setBasicScenario(basicScenarioC);
TestOutlineScenarioNodeBuilder scenarioOutline2 = feature2.addOutlineScenario("SO2");
TestOutlineScenarioRowNodeBuilder sO2Row1 = scenarioOutline2.addRow(0);
TestBasicScenarioNodeBuilder basicScenarioD = sO2Row1.setBasicScenario("BasicScenarioD");
basicScenarioD.addStepImpl(getClass(), null);
TestOutlineScenarioRowNodeBuilder sO2Row2 = scenarioOutline2.addRow(1);
sO2Row2.setBasicScenario(basicScenarioD);
reportData = new ReportData();
reportData.addRootExecutionNode(rootBuilder.build());
}