@Test void testToEditorEntityTypeIdentifiers() { String id = "id"; String label = "label"; EntityType entityType = mock(EntityType.class); when(entityType.getId()).thenReturn(id); when(entityType.getLabel()).thenReturn(label); List<EditorEntityTypeIdentifier> editorEntityTypeIdentifiers = entityTypeReferenceMapper.toEditorEntityTypeIdentifiers(of(entityType)); assertEquals(of(create(id, label)), editorEntityTypeIdentifiers); }
ImmutableList<EditorEntityTypeIdentifier> toEditorEntityTypeIdentifiers( Iterable<EntityType> extendedBy) { return ImmutableList.copyOf( stream(extendedBy).map(this::toEditorEntityTypeIdentifier).iterator()); }
EntityTypeReferenceMapper { ImmutableList<EditorEntityTypeIdentifier> toEditorEntityTypeIdentifiers( Iterable<EntityType> extendedBy) { return ImmutableList.copyOf( stream(extendedBy).map(this::toEditorEntityTypeIdentifier).iterator()); } }
EntityTypeReferenceMapper { ImmutableList<EditorEntityTypeIdentifier> toEditorEntityTypeIdentifiers( Iterable<EntityType> extendedBy) { return ImmutableList.copyOf( stream(extendedBy).map(this::toEditorEntityTypeIdentifier).iterator()); } EntityTypeReferenceMapper(EntityTypeMetadata entityTypeMetadata, DataService dataService); }
EntityTypeReferenceMapper { ImmutableList<EditorEntityTypeIdentifier> toEditorEntityTypeIdentifiers( Iterable<EntityType> extendedBy) { return ImmutableList.copyOf( stream(extendedBy).map(this::toEditorEntityTypeIdentifier).iterator()); } EntityTypeReferenceMapper(EntityTypeMetadata entityTypeMetadata, DataService dataService);  }
EntityTypeReferenceMapper { ImmutableList<EditorEntityTypeIdentifier> toEditorEntityTypeIdentifiers( Iterable<EntityType> extendedBy) { return ImmutableList.copyOf( stream(extendedBy).map(this::toEditorEntityTypeIdentifier).iterator()); } EntityTypeReferenceMapper(EntityTypeMetadata entityTypeMetadata, DataService dataService);   }