Element { public String getEndTimeString() { return RenderingUtils.convertZonedDateTimeToTimeString(getEndDateTime()); }  List<Tag> getTags(); void setTags(final List<Tag> tags); String getStartTimestamp(); void setStartTimestamp(final String startTimestamp); ZonedDateTime getStartDateTime(); ZonedDateTime getEndDateTime(); String getStartDateString(); String getStartTimeString(); String getEndDateString(); String getEndTimeString(); List<ResultMatch> getBefore(); void setBefore(final List<ResultMatch> before); int getLine(); void setLine(final int line); String getName(); void setName(final String name); String getDescription(); void setDescription(final String description); String getId(); void setId(final String id); List<ResultMatch> getAfter(); void setAfter(final List<ResultMatch> after); String getType(); void setType(final String type); String getKeyword(); void setKeyword(final String keyword); List<Step> getSteps(); void setSteps(final List<Step> steps); boolean isScenario(); boolean isFailed(); boolean isPassed(); boolean isSkipped(); Status getStatus(); int getScenarioIndex(); void setScenarioIndex(final int scenarioIndex); int getTotalNumberOfSteps(); int getTotalNumberOfPassedSteps(); int getTotalNumberOfFailedSteps(); int getTotalNumberOfSkippedSteps(); long getTotalDuration(); String returnTotalDurationString(); boolean hasHooks(); boolean hasDocStrings(); boolean hasStepHooks(); List<ResultMatch> getAllResultMatches(); String getFeatureName(); void setFeatureName(final String featureName); int getFeatureIndex(); void setFeatureIndex(final int featureIndex); void setFailOnPendingOrUndefined(final boolean failOnPendingOrUndefined); String getFeatureUri(); void setFeatureUri(String featureUri);  }
@Test public void getEndTimeStringTest() { element.setStartTimestamp("2019-04-11T08:00:23.668Z"); List<com.trivago.cluecumber.json.pojo.ResultMatch> beforeSteps = new ArrayList<>(); com.trivago.cluecumber.json.pojo.ResultMatch before = new com.trivago.cluecumber.json.pojo.ResultMatch(); Result beforeResult = new Result(); beforeResult.setDuration(10000000000000L); before.setResult(beforeResult); beforeSteps.add(before); element.setBefore(beforeSteps); assertThat(element.getEndTimeString(), endsWith(":47:03")); }