/** * @return The list of all the tags associated with a given tag type. */ public List<TestTag> getMostSpecificTagsOfType(String tagType) { return outcomes.stream() .flatMap(outcome -> removeGeneralTagsFrom(tagsOfType(tagType).in(outcome))) .sorted() .collect(Collectors.toList()); }
/** * @return The list of all the tags associated with a given tag type. */ public List<TestTag> getTagsOfType(String tagType) { Set<TestTag> tags = Sets.newHashSet(); for (TestOutcome outcome : outcomes) { tags.addAll(tagsOfType(tagType).in(outcome)); } return sort(ImmutableList.copyOf(tags), on(String.class)); }
/** * @return The list of all the tags associated with a given tag type. */ public List<TestTag> getTagsOfType(String tagType) { Set<TestTag> tags = Sets.newHashSet(); for (TestOutcome outcome : outcomes) { tags.addAll(tagsOfType(tagType).in(outcome)); } return sort(ImmutableList.copyOf(tags), on(String.class)); }
/** * @return The list of all the tags associated with a given tag type. */ public List<TestTag> getMostSpecificTagsOfType(String tagType) { Set<TestTag> tags = Sets.newHashSet(); for (TestOutcome outcome : outcomes) { List<TestTag> mostSpecificOutcomeTags = removeGeneralTagsFrom(tagsOfType(tagType).in(outcome)); tags.addAll(mostSpecificOutcomeTags); } return sort(ImmutableList.copyOf(tags), on(String.class)); }
public List<TestTag> getTagsOfTypeExcluding(String tagType, String excludedTag) { Set<TestTag> tags = Sets.newHashSet(); for (TestOutcome outcome : outcomes) { List<TestTag> allTagsOfType = removeGeneralTagsFrom(tagsOfType(tagType).in(outcome)); allTagsOfType = removeExcluded(allTagsOfType, excludedTag); tags.addAll(allTagsOfType); } return sort(ImmutableList.copyOf(tags), on(String.class)); }
/** * @return The list of all the tags associated with a given tag type. */ public List<TestTag> getMostSpecificTagsOfType(String tagType) { Set<TestTag> tags = Sets.newHashSet(); for (TestOutcome outcome : outcomes) { List<TestTag> mostSpecificOutcomeTags = removeGeneralTagsFrom(tagsOfType(tagType).in(outcome)); tags.addAll(mostSpecificOutcomeTags); } return sort(ImmutableList.copyOf(tags), on(String.class)); }
public List<TestTag> getTagsOfTypeExcluding(String tagType, String excludedTag) { Set<TestTag> tags = Sets.newHashSet(); for (TestOutcome outcome : outcomes) { List<TestTag> allTagsOfType = removeGeneralTagsFrom(tagsOfType(tagType).in(outcome)); allTagsOfType = removeExcluded(allTagsOfType, excludedTag); tags.addAll(allTagsOfType); } return sort(ImmutableList.copyOf(tags), on(String.class)); }