AllStepsPageCollection extends ScenarioSummaryPageCollection { public String getMaximumTimeFromStep(final Step step) { return stepTimes.get(step).getMaximumTimeString(); } AllStepsPageCollection(List<Report> reports, final String pageTitle); Map<Step, ResultCount> getStepResultCounts(); Set<Step> getSteps(); int getTotalNumberOfSteps(); String getMinimumTimeFromStep(final Step step); int getMinimumTimeScenarioIndexFromStep(final Step step); String getMaximumTimeFromStep(final Step step); int getMaximumTimeScenarioIndexFromStep(final Step step); String getAverageTimeFromStep(final Step step);  }
@Test public void getMaximumTimeFromStepTest() { allStepsPageCollection = new AllStepsPageCollection(getTestReports(), ""); Step step = allStepsPageCollection.getSteps().iterator().next(); assertThat(allStepsPageCollection.getMaximumTimeFromStep(step), is("0m 00s 000ms")); }