public SELF the_scenario_has_$_default_cases(int ncases) { reportModel.getLastScenarioModel().clearCases(); for (int i = 0; i < ncases; i++) { addDefaultCase(reportModel.getLastScenarioModel()); } return self(); }
public SELF scenario_$_has_no_steps(int i) { ScenarioModel scenarioModel = reportModel.getLastScenarioModel(); for (ScenarioCaseModel caseModel : scenarioModel.getScenarioCases()) { caseModel.setSteps(Collections.<StepModel>emptyList()); } return self(); }
public SELF case_$_has_no_steps(int caseNr) { reportModel .getLastScenarioModel() .getCase(caseNr - 1) .setSteps(Collections.<StepModel>emptyList()); return self(); }
public SELF all_cases_have_a_step_$_with_argument(String name, String arg) { int i = 1; for (ScenarioCaseModel caseModel : reportModel.getLastScenarioModel().getScenarioCases()) { case_$_has_a_step_$_with_argument(i++, name, arg); } return self(); }
public SELF the_scenario_has_$_cases(int ncases) { ScenarioModel scenarioModel = reportModel.getLastScenarioModel(); scenarioModel.clearCases(); for (int i = 0; i < ncases; i++) { scenarioModel.addCase(new ScenarioCaseModel()); } return self(); }
private ScenarioCaseModel getCase(int ncase) { return reportModel.getLastScenarioModel().getScenarioCases().get(ncase - 1); }
public SELF the_scenario_has_a_duration_of_$_nano_seconds(long durationInNanos) { reportModel.getLastScenarioModel().setDurationInNanos(durationInNanos); return self(); }
public SELF the_scenario_has_parameters(String... params) { reportModel.getLastScenarioModel().addParameterNames(params); return self(); }