@Test void testToEntityTypeReference() { String id = "id"; String label = "label"; @SuppressWarnings("unchecked") List<EditorAttributeIdentifier> attributes = mock(List.class); EditorEntityTypeParent parent = mock(EditorEntityTypeParent.class); EditorEntityTypeParent editorEntityTypeParent = EditorEntityTypeParent.create(id, label, attributes, parent); EntityType entityType = entityTypeParentMapper.toEntityTypeReference(editorEntityTypeParent); assertEquals(id, entityType.getIdValue()); }
EntityType toEntityTypeReference(EditorEntityTypeParent editorEntityTypeParent) { if (editorEntityTypeParent == null) { return null; } return new EntityType( new LazyEntity(entityTypeMetadata, dataService, editorEntityTypeParent.getId())); }
EntityTypeParentMapper { EntityType toEntityTypeReference(EditorEntityTypeParent editorEntityTypeParent) { if (editorEntityTypeParent == null) { return null; } return new EntityType( new LazyEntity(entityTypeMetadata, dataService, editorEntityTypeParent.getId())); } }
EntityTypeParentMapper { EntityType toEntityTypeReference(EditorEntityTypeParent editorEntityTypeParent) { if (editorEntityTypeParent == null) { return null; } return new EntityType( new LazyEntity(entityTypeMetadata, dataService, editorEntityTypeParent.getId())); } EntityTypeParentMapper(
      AttributeReferenceMapper attributeReferenceMapper,
      EntityTypeMetadata entityTypeMetadata,
      DataService dataService); }
EntityTypeParentMapper { EntityType toEntityTypeReference(EditorEntityTypeParent editorEntityTypeParent) { if (editorEntityTypeParent == null) { return null; } return new EntityType( new LazyEntity(entityTypeMetadata, dataService, editorEntityTypeParent.getId())); } EntityTypeParentMapper(
      AttributeReferenceMapper attributeReferenceMapper,
      EntityTypeMetadata entityTypeMetadata,
      DataService dataService);  }
EntityTypeParentMapper { EntityType toEntityTypeReference(EditorEntityTypeParent editorEntityTypeParent) { if (editorEntityTypeParent == null) { return null; } return new EntityType( new LazyEntity(entityTypeMetadata, dataService, editorEntityTypeParent.getId())); } EntityTypeParentMapper(
      AttributeReferenceMapper attributeReferenceMapper,
      EntityTypeMetadata entityTypeMetadata,
      DataService dataService);   }