@Test void getTotalNumberOfStepsInPageOccurrence() { givenScenarioPagesAndSteps(); whenGettingTotalStepsForPage1SecondOccurrence(); expectTotalNumberOfStepsEquals(4); }
public int getTotalNumberOfStepsInPageOccurrence(final String pageName, final int pageOccurrence) { PageSteps pageWithSteps = getOccurrence(pageName, pageOccurrence); if (pageWithSteps == null) { return 0; } return pageWithSteps.getSteps().size(); }
ScenarioPageSteps { public int getTotalNumberOfStepsInPageOccurrence(final String pageName, final int pageOccurrence) { PageSteps pageWithSteps = getOccurrence(pageName, pageOccurrence); if (pageWithSteps == null) { return 0; } return pageWithSteps.getSteps().size(); } }
ScenarioPageSteps { public int getTotalNumberOfStepsInPageOccurrence(final String pageName, final int pageOccurrence) { PageSteps pageWithSteps = getOccurrence(pageName, pageOccurrence); if (pageWithSteps == null) { return 0; } return pageWithSteps.getSteps().size(); }  }
ScenarioPageSteps { public int getTotalNumberOfStepsInPageOccurrence(final String pageName, final int pageOccurrence) { PageSteps pageWithSteps = getOccurrence(pageName, pageOccurrence); if (pageWithSteps == null) { return 0; } return pageWithSteps.getSteps().size(); }  Scenario getScenario(); void setScenario(final Scenario scenario); ScenarioStatistics getScenarioStatistics(); UseCase getUseCase(); void setUseCase(final UseCase useCase); List<PageSteps> getPagesAndSteps(); void setPagesAndSteps(final List<PageSteps> pagesAndSteps); int getTotalNumberOfStepsInScenario(); StepStatistics getStepStatistics(final String pageName, final int pageOccurrence); int getTotalNumberOfStepsInPageOccurrence(final String pageName, final int pageOccurrence); StepDescription getStepDescription(final String pageName, final int pageOccurrence, final int stepInPageOccurrence); }
ScenarioPageSteps { public int getTotalNumberOfStepsInPageOccurrence(final String pageName, final int pageOccurrence) { PageSteps pageWithSteps = getOccurrence(pageName, pageOccurrence); if (pageWithSteps == null) { return 0; } return pageWithSteps.getSteps().size(); }  Scenario getScenario(); void setScenario(final Scenario scenario); ScenarioStatistics getScenarioStatistics(); UseCase getUseCase(); void setUseCase(final UseCase useCase); List<PageSteps> getPagesAndSteps(); void setPagesAndSteps(final List<PageSteps> pagesAndSteps); int getTotalNumberOfStepsInScenario(); StepStatistics getStepStatistics(final String pageName, final int pageOccurrence); int getTotalNumberOfStepsInPageOccurrence(final String pageName, final int pageOccurrence); StepDescription getStepDescription(final String pageName, final int pageOccurrence, final int stepInPageOccurrence);  }