Bug 568819 - UML2Ecore2Xtext is not adequately tested.
Summary: UML2Ecore2Xtext is not adequately tested.
Status: NEW
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2020-11-15 07:50 EST by Ed Willink CLA
Modified: 2020-11-23 07:52 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Willink CLA 2020-11-15 07:50:52 EST
In https://www.eclipse.org/forums/index.php/mv/msg/1105916/1834660/#msg_1834660 a user starts with a UML profile, uses genmodel to convert it to Ecore then uses the Xtext New wizard to convert to an Xext grammar.

This nearly works.

import "http://www.eclipse.org/uml2/5.0.0/UML" as uml

is correctly generated but

import "http://www.eclipse.org/uml2/5.0.0/Types" as types

is not. Missing import is required as of UML 2.5 / UML2 5.0, i.e. since 2014.

Also if the user uses the standard built-in String/Integer etc, the result is a bad EDataType rule that returns an empty name. The produced type could be usefully mapped to the Ecore type for the same class.

Needs a JUnit test.