[EUnit] "No matching comparator has been found" error [message #997936] |
Tue, 08 January 2013 21:42  |
Eclipse User |
|
|
|
Hi,
I have a problem when trying to test the output model of an ETL transformation against an expected model.
The models I want to compare look like this:
<?xml version="1.0" encoding="ASCII"?>
<dom:Program xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:dom="http://dom/1.0" line="1" column="1">
<statements xsi:type="dom:ExpressionStatement" container="/" line="1" column="1">
<expression xsi:type="dom:MethodCallExpression" container="//@statements.0" line="1" column="1" method="eventSystem">
...
The "dom" namespace refers to an Ecore model which is registered. Everytime I want to test the models with "assertEqualModels("exp", "out");" I get an error:
BUILD FAILED
eunit-build.xml:4: At least one test case had a failure or an error: Internal error: java.lang.IllegalArgumentException: No matching comparator has been found for org.eclipse.epsilon.emc.emf.EmfModel@1b652cb4 and org.eclipse.epsilon.emc.emf.EmfModel@f59eb79
I don't get it why no comparator is found? The models are just instance models of an Ecore-based metamodel. Maybe someone has an idea or there are common mistakes which I might have done?
Thanks!
-Bernhard
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04101 seconds