Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » Extra pivot model testing
Extra pivot model testing [message #650471] Tue, 25 January 2011 07:13
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

The org.eclipse.ocl.examples.test.xtext.SerializeTests tests assert that
a variety of Ecore models in org.eclipse.ocl.examples.test.xtext.models
can be successfully converted:

Ecore->Pivot->OCLinEcore then OCLinEcore->Pivot->Ecore to produce what
EMF Compare considers to be the same model.

There are currently three known limitations:
- OCL text is pretty-printed so whitespace changes are reported.
- Upper and lower bounds on generic types are not supported.
- Multiplicity upperbound of -2 (mixed content) is not supported.
- Hidden opposites (untested) might make it forwards but not backwards

EReference.eKeys might work, but I have no example.

If you have any potentially challenging Ecore models, please run them
by adapting my extra SerializeTests below.

-----------------

package org.eclipse.ocl.examples.test.xtext;

/**
* Tests that check that an Ecore model can be serialized to OCLinEcore.
*/
public class SerializeTests2 extends SerializeTests
{
public void testTemp() throws Exception {
doSerialize("temp");
}
public void testTemp3() throws Exception {
doSerialize("Temp3");
}
public void testTemp4() throws Exception {
doSerialize("Temp4");
}
public void testMy() throws Exception {
doSerialize("My");
}
}

-----------------

You may want to wait till M5 to avoid the difficulties of piecing the
Xtext M4.5 contributions together.

Any 'good' failures I'd like to add to the test suite.

Regards

Ed Willink
Previous Topic:[Announce] MDT/OCL 3.1.0 M4 is now available
Next Topic:[Announce] MDT/OCL 3.1.0 M5 is now available
Goto Forum:
  


Current Time: Fri Apr 19 00:35:36 GMT 2024

Powered by FUDForum. Page generated in 0.01712 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top