Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » [EUnit] ignore attributes in models comparison
[EUnit] ignore attributes in models comparison [message #1409757] Mon, 18 August 2014 23:34 Go to next message
abdush mohd is currently offline abdush mohdFriend
Messages: 35
Registered: April 2014
Member
Hi,

I wonder if there is an example for the use of comparator options in "assertEqualModels()" assertion in EUnit? I want the model comparison to ignore "XMI-ID" and element "ID" when it is set in one model but not the other.

Thanks
Abdu

[Updated on: Mon, 18 August 2014 23:35]

Report message to a moderator

Re: [EUnit] ignore attributes in models comparison [message #1410670 is a reply to message #1409757] Thu, 21 August 2014 10:52 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2163
Registered: July 2009
Location: York, UK
Senior Member

Hi Abdu,

I've redirected this question to our colleague who leads the development of EUnit.

Cheers,
Dimitris
Re: [EUnit] ignore attributes in models comparison [message #1410779 is a reply to message #1410670] Thu, 21 August 2014 15:39 Go to previous messageGo to next message
abdush mohd is currently offline abdush mohdFriend
Messages: 35
Registered: April 2014
Member
Ok. Thanks Dimitris.

I've attached an example of the two models (The ID of the expected model is manually set in this case).
It seems that the "XMI-ID" is by default ignored, As mentioned in the EUnit chapter.
But it seems that the order of the elements also matters.

Thanks
Abdu
Re: [EUnit] ignore attributes in models comparison [message #1410881 is a reply to message #1410779] Thu, 21 August 2014 21:39 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2163
Registered: July 2009
Location: York, UK
Senior Member

Hi Abdu,

The order of elements should only matter if flowElements is an ordered EReference in your metamodel. Is this the case?

Cheers,
Dimitris
Re: [EUnit] ignore attributes in models comparison [message #1410888 is a reply to message #1410881] Thu, 21 August 2014 22:09 Go to previous messageGo to next message
abdush mohd is currently offline abdush mohdFriend
Messages: 35
Registered: April 2014
Member
Hi Dimitris,

I checked that, it's not ordered. Here is the metamodel file.

Thanks
Abdu
Re: [EUnit] ignore attributes in models comparison [message #1411090 is a reply to message #1410888] Fri, 22 August 2014 11:10 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2163
Registered: July 2009
Location: York, UK
Senior Member

Hi Abdu,

Thanks - I guess we'll have to wait for Antonio's thoughts on this.

Cheers,
Dimitris
Re: [EUnit] ignore attributes in models comparison [message #1412112 is a reply to message #1411090] Mon, 25 August 2014 10:07 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2163
Registered: July 2009
Location: York, UK
Senior Member

Hi Abdu,

I'm afraid that this is a bug [1]. Unfortunately, the fix won't make it into 1.2 but it will appear in the first interim version after that.

Cheers,
Dimitris

[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=442466
Re: [EUnit] ignore attributes in models comparison [message #1412204 is a reply to message #1412112] Mon, 25 August 2014 14:42 Go to previous message
abdush mohd is currently offline abdush mohdFriend
Messages: 35
Registered: April 2014
Member
Hi Dimitris,

No problem, I'll modify the models for the tests.
Thanks very much.

Regards,
Abdu
Previous Topic:[ANT] standalone workflow exception
Next Topic:Use Java ENUM from eol
Goto Forum:
  


Current Time: Thu Apr 25 20:29:15 GMT 2024

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

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

Back to the top