@Test void testToTagReferences() { String id0 = "id0"; String id1 = "id1"; EditorTagIdentifier tagIdentifier0 = EditorTagIdentifier.create(id0, "label0"); EditorTagIdentifier tagIdentifier1 = EditorTagIdentifier.create(id1, "label1"); List<Tag> tags = copyOf(tagMapper.toTagReferences(of(tagIdentifier0, tagIdentifier1))); assertEquals(2, tags.size()); assertEquals(id0, tags.get(0).getIdValue()); assertEquals(id1, tags.get(1).getIdValue()); }
Iterable<Tag> toTagReferences(List<EditorTagIdentifier> tags) { return tags.stream().map(this::toTagReference).collect(toList()); }
TagMapper { Iterable<Tag> toTagReferences(List<EditorTagIdentifier> tags) { return tags.stream().map(this::toTagReference).collect(toList()); } }
TagMapper { Iterable<Tag> toTagReferences(List<EditorTagIdentifier> tags) { return tags.stream().map(this::toTagReference).collect(toList()); } TagMapper(TagFactory tagFactory, DataService dataService); }
TagMapper { Iterable<Tag> toTagReferences(List<EditorTagIdentifier> tags) { return tags.stream().map(this::toTagReference).collect(toList()); } TagMapper(TagFactory tagFactory, DataService dataService);  }
TagMapper { Iterable<Tag> toTagReferences(List<EditorTagIdentifier> tags) { return tags.stream().map(this::toTagReference).collect(toList()); } TagMapper(TagFactory tagFactory, DataService dataService);   }