]> gerrit.simantics Code Review - simantics/interop.git/blobdiff - org.simantics.interop/src/org/simantics/interop/test/GraphComparator.java
Comparator did not map root resources -> invalid results
[simantics/interop.git] / org.simantics.interop / src / org / simantics / interop / test / GraphComparator.java
index f7c4ea69667cc479d014a931cdecfbe2e9ee81b0..71fc67e8d272e8a2aeae384396b06542a89bf896 100644 (file)
@@ -210,6 +210,8 @@ public class GraphComparator {
                \r
                comparator.setComparator(this);\r
                \r
+               comparableResources.map(r1, r2);\r
+               \r
                final Stack<Resource> objectsLeft = new Stack<Resource>();\r
                final Stack<Resource> objectsRight = new Stack<Resource>();\r
                objectsLeft.push(r1);\r
@@ -342,7 +344,7 @@ public class GraphComparator {
                                                comparableResources.contains(leftS.getPredicate(), rightS.getPredicate())) {\r
                                                unreliableLeft.remove(leftS);\r
                                                unreliableRight.remove(rightS);\r
-                                               comparableStatements.map(leftS, rightS);\r
+                                               addComparable(leftS, rightS, false);\r
                                        }\r
                                }\r
                        }\r