Feature implements Comparable<Feature> { public int getOrder() { if (order == null && comments != null) { for (Comment comment : comments) { trySetOrder(comment.getOrder(), "comment"); } } if (order == null && hasTags()) { for (Tag tag : getTags()) { trySetOrder(tag.getOrder(), "tag"); } } if (order == null) { this.order = Integer.MAX_VALUE; } return order; } Feature(); String getId(); void setId(String id); String getUri(); void setUri(String uri); boolean hasTags(); boolean hasScenarios(); Status getStatus(); String getName(); void setName(String name); String getDescription(); void setDescription(String description); String getKeyword(); void setKeyword(String keyword); List<Scenario> getElements(); void setElements(List<Scenario> elements); List<Tag> getTags(); void setTags(List<Tag> tags); StepResults getStepResults(); ScenarioResults getScenarioResults(); List<Comment> getComments(); void setComments(List<Comment> comments); boolean isBackgroundRendered(); void setBackgroundRendered(boolean backgroundRendered); @Deprecated Integer getNumberOfScenarios(); Integer getNumberOfSteps(); Integer getNumberOfPasses(); Integer getNumberOfFailures(); Integer getNumberOfPending(); Integer getNumberOfSkipped(); Integer getNumberOfMissing(); Integer getNumberOfUndefined(); String getDurationOfSteps(); Integer getNumberOfScenariosPassed(); Integer getNumberOfScenariosFailed(); List<Scenario> getScenarios(); void initScenarios(); void processSteps(); boolean isCucumberFeature(); String getLanguage(); int getOrder(); @Override boolean equals(Object o); @Override int hashCode(); boolean hasIgnoreDocsTag(); @Override String toString(); @Override int compareTo(Feature other); Scenario getScenarioByName(String name); boolean hasTag(String pattern); Optional<String> extractTag(String pattern);  }
@Test public void orderShouldBeIntMaxIfNotOtherwiseSet() { Feature feature = new Feature(); assertEquals(Integer.MAX_VALUE, feature.getOrder()); }