Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsJUnit test cases for ecore models
https://www.eclipse.org/forums/index.php/mv/msg/1089281/1773937/#msg_1773937
I am Manoj Keshavaprakash. I am new to model based development, I have created a small ecore metamodel(class diagram) using the graphical editor. Now I want to run some custom test cases to change the attribute values of the model. I tried using the .genmodel to create the automated test. But these test are not very helpful for me.
I request in this forum to guide to write my own test case to change the values of my attributes.
I have attached a file with the description of the problem for your reference.
Regards,
Manoj ]]>Manoj Keshavaprakash2017-10-06T17:36:35-00:00Re: JUnit test cases for ecore models
https://www.eclipse.org/forums/index.php/mv/msg/1089281/1774362/#msg_1774362
From your question it looks like you are quite new to the EMF technology, you might find the following tutorials interesting: http://www.vogella.com/tutorials/EclipseEMF/article.html https://eclipsesource.com/blogs/tutorials/emf-tutorial/]]>Cedric Brun2017-10-13T09:53:49-00:00Re: JUnit test cases for ecore models
https://www.eclipse.org/forums/index.php/mv/msg/1089281/1774459/#msg_1774459
I have a metamodel (.ecore file (class diagram)) created using the graphical editor. Now I am able to create the dynamic instances programmatically, but in my metamodel I have a composition (Containment reference) wherein i want to create child instance of the contained class (programmatically). Please find the attached metamodel and related images for reference.]]>Manoj Keshavaprakash2017-10-15T11:26:30-00:00