Validating Ecore models with independent OCL fragments [message #1697430] |
Wed, 03 June 2015 20:48 |
Edouard R. Batot Messages: 100 Registered: March 2015 |
Senior Member |
|
|
Hi folks !
Ed, how are you ? Enjoying the spring ?
Well, I'd like to test the models I've generated. I'd like to test them programmatically (no use of any UI) with OCL constraints generated programaticcally (I enjoy automation).
My question is : can anybody point me out a simple example to test a model (Ecore from XMI, with Resource etc.) with a String containing OCL constraint ?
Or, le cas échéant, a right API to tackle with that process...
I've got the org.eclipse.ocl.* in my build path, but still can change for a Dresden API, or anything if necessary/recomended.
Don't sell me tool or technology, please, I want it API style.
Thanks for your colaboration, have a great time.
Edouard
[Updated on: Wed, 03 June 2015 21:00] Report message to a moderator
|
|
|
Re: Validating Ecore models with independent OCL fragments [message #1697431 is a reply to message #1697430] |
Wed, 03 June 2015 21:08 |
|
Hi, Edouard,
I would imagine that the JUnit tests in the Eclipse OCL project's git
repository have plenty of examples of evaluating OCL expressions on
instances of Ecore models loaded from XMI resources:
http://git.eclipse.org/c/ocl/org.eclipse.ocl.git/
HTH,
Christian
On 2015-06-03 20:48:15 +0000, Edoaurd Batot said:
> Hi folks !
>
> Ed, how are you ? Enjoying the spring ?
>
> Well, I'd like to test the models I've generated. I'd like to test them
> programmatically (no use of any UI) with OCL constraints generated
> programaticcally (I enjoy automation).
>
> My question is : can anybody point me out a simple example to test a
> model (Ecore from XMI, with Resource etc.) with a String containing OCL
> constraint ?
> Or, le cas échéant, a right API to tackle with that process...
>
> I've got the org.eclipse.ocl.* in my build path, but still can change
> for a Dresden API, or anything if necessary/recomended.
> Don't sell me tool or technology, please, I want it API style.
>
> Thanks for your colaboration, have a great time.
> Edouard
|
|
|
|
Powered by
FUDForum. Page generated in 0.03822 seconds