}\r
\r
public void test(Session session) throws DatabaseException {\r
+ test(session, r1, r2);\r
+ }\r
+ \r
+ public void test(Session session, Resource r1, Resource r2) throws DatabaseException {\r
\r
comparator.setComparator(this);\r
\r
addComparable(leftS, rightS, false);\r
}\r
}\r
- }\r
- \r
+ } \r
}\r
}\r
\r
break;\r
} else {\r
while (i2 < ss2.size()) {\r
- if (DEBUG) System.out.println("Compare Statements diff2 " + printStatement(g,ss2.get(i2)));\r
+ if (DEBUG) System.out.println("Compare Statements addition " + printStatement(g,ss2.get(i2)));\r
\r
addAddition(ss2.get(i2));\r
i2++;\r
}\r
} else if (i2 >= ss2.size()) {\r
while (i1 < ss1.size()) {\r
- if (DEBUG) System.out.println("Compare Statements diff1 " + printStatement(g,ss1.get(i1)));\r
+ if (DEBUG) System.out.println("Compare Statements deletion " + printStatement(g,ss1.get(i1)));\r
addDeletion(ss1.get(i1));\r
i1++;\r
}\r
i2+=same2;\r
} else if (c < 0) {\r
for (int i = 0; i < same1; i++) {\r
- if (DEBUG) System.out.println("Compare Statements diff1 " + printStatement(g,ss1.get(i+i1)));\r
+ if (DEBUG) System.out.println("Compare Statements deletion " + printStatement(g,ss1.get(i+i1)));\r
addDeletion(ss1.get(i+i1));\r
}\r
i1 += same1;\r
} else {\r
for (int i = 0; i < same2; i++) {\r
- if (DEBUG) System.out.println("Compare Statements diff2 " + printStatement(g,ss2.get(i+i2)));\r
+ if (DEBUG) System.out.println("Compare Statements addition " + printStatement(g,ss2.get(i+i2)));\r
addAddition(ss2.get(i+i2));\r
}\r
\r
}\r
for (int i1 = off1; i1 < off1 + len1; i1++) {\r
if (!used1[i1-off1]) {\r
- if (DEBUG) System.out.println("Compare Object diff1 " + printStatement(g,ss1.get(i1)));\r
+ if (DEBUG) System.out.println("Compare Object deletion " + printStatement(g,ss1.get(i1)));\r
addDeletion(ss1.get(i1));\r
}\r
}\r
for (int i2 = off2; i2 < off2 + len2; i2++) {\r
if (!used2[i2-off2]) {\r
- if (DEBUG) System.out.println("Compare Object diff2 " + printStatement(g,ss2.get(i2)));\r
+ if (DEBUG) System.out.println("Compare Object addition " + printStatement(g,ss2.get(i2)));\r
addAddition(ss2.get(i2));\r
}\r
}\r