@Test void testToEditorTags() { String id0 = "id0"; String label0 = "label0"; String id1 = "id1"; String label1 = "label1"; Tag tag0 = mock(Tag.class); when(tag0.getId()).thenReturn(id0); when(tag0.getLabel()).thenReturn(label0); Tag tag1 = mock(Tag.class); when(tag1.getId()).thenReturn(id1); when(tag1.getLabel()).thenReturn(label1); List<EditorTagIdentifier> editorTags = tagMapper.toEditorTags(of(tag0, tag1)); assertEquals(of(create(id0, label0), create(id1, label1)), editorTags); }
ImmutableList<EditorTagIdentifier> toEditorTags(Iterable<Tag> tags) { return ImmutableList.copyOf(stream(tags).map(this::toEditorTag).iterator()); }
TagMapper { ImmutableList<EditorTagIdentifier> toEditorTags(Iterable<Tag> tags) { return ImmutableList.copyOf(stream(tags).map(this::toEditorTag).iterator()); } }
TagMapper { ImmutableList<EditorTagIdentifier> toEditorTags(Iterable<Tag> tags) { return ImmutableList.copyOf(stream(tags).map(this::toEditorTag).iterator()); } TagMapper(TagFactory tagFactory, DataService dataService); }
TagMapper { ImmutableList<EditorTagIdentifier> toEditorTags(Iterable<Tag> tags) { return ImmutableList.copyOf(stream(tags).map(this::toEditorTag).iterator()); } TagMapper(TagFactory tagFactory, DataService dataService);  }
TagMapper { ImmutableList<EditorTagIdentifier> toEditorTags(Iterable<Tag> tags) { return ImmutableList.copyOf(stream(tags).map(this::toEditorTag).iterator()); } TagMapper(TagFactory tagFactory, DataService dataService);   }