Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Goubet2013-06-19 05:28:43 -0400
committerLaurent Goubet2013-06-19 08:13:24 -0400
commit4dff57de2128cb9e0220651059496bb6e106132c (patch)
tree115dd1c469ad46f4891bddafdd325315e71ac8a8 /plugins/org.eclipse.emf.compare.tests/src/org/eclipse/emf/compare/tests/req
parent3284cfba4bf142bcc98459084f7ef0c9d3b05a64 (diff)
downloadorg.eclipse.emf.compare-4dff57de2128cb9e0220651059496bb6e106132c.tar.gz
org.eclipse.emf.compare-4dff57de2128cb9e0220651059496bb6e106132c.tar.xz
org.eclipse.emf.compare-4dff57de2128cb9e0220651059496bb6e106132c.zip
Deprecate use of EMFCompare#createDefaultScope(...)
Diffstat (limited to 'plugins/org.eclipse.emf.compare.tests/src/org/eclipse/emf/compare/tests/req')
-rw-r--r--plugins/org.eclipse.emf.compare.tests/src/org/eclipse/emf/compare/tests/req/ReqComputingTest.java111
1 files changed, 56 insertions, 55 deletions
diff --git a/plugins/org.eclipse.emf.compare.tests/src/org/eclipse/emf/compare/tests/req/ReqComputingTest.java b/plugins/org.eclipse.emf.compare.tests/src/org/eclipse/emf/compare/tests/req/ReqComputingTest.java
index e5c423780..51cd59067 100644
--- a/plugins/org.eclipse.emf.compare.tests/src/org/eclipse/emf/compare/tests/req/ReqComputingTest.java
+++ b/plugins/org.eclipse.emf.compare.tests/src/org/eclipse/emf/compare/tests/req/ReqComputingTest.java
@@ -33,6 +33,7 @@ import org.eclipse.emf.compare.Comparison;
import org.eclipse.emf.compare.Diff;
import org.eclipse.emf.compare.EMFCompare;
import org.eclipse.emf.compare.ReferenceChange;
+import org.eclipse.emf.compare.scope.DefaultComparisonScope;
import org.eclipse.emf.compare.scope.IComparisonScope;
import org.eclipse.emf.compare.tests.req.data.ReqInputData;
import org.eclipse.emf.ecore.resource.Resource;
@@ -52,7 +53,7 @@ public class ReqComputingTest {
final Resource left = input.getA1Left();
final Resource right = input.getA1Right();
- final IComparisonScope scope = EMFCompare.createDefaultScope(left, right);
+ final IComparisonScope scope = new DefaultComparisonScope(left, right, null);
final Comparison comparison = EMFCompare.builder().build().compare(scope);
testAB1(TestKind.DELETE, comparison);
}
@@ -62,7 +63,7 @@ public class ReqComputingTest {
final Resource left = input.getA2Left();
final Resource right = input.getA2Right();
- final IComparisonScope scope = EMFCompare.createDefaultScope(left, right);
+ final IComparisonScope scope = new DefaultComparisonScope(left, right, null);
final Comparison comparison = EMFCompare.builder().build().compare(scope);
testAB2(TestKind.DELETE, comparison);
}
@@ -72,7 +73,7 @@ public class ReqComputingTest {
final Resource left = input.getA3Left();
final Resource right = input.getA3Right();
- final IComparisonScope scope = EMFCompare.createDefaultScope(left, right);
+ final IComparisonScope scope = new DefaultComparisonScope(left, right, null);
final Comparison comparison = EMFCompare.builder().build().compare(scope);
testAB3(TestKind.DELETE, comparison);
}
@@ -82,7 +83,7 @@ public class ReqComputingTest {
final Resource left = input.getA4Left();
final Resource right = input.getA4Right();
- final IComparisonScope scope = EMFCompare.createDefaultScope(left, right);
+ final IComparisonScope scope = new DefaultComparisonScope(left, right, null);
final Comparison comparison = EMFCompare.builder().build().compare(scope);
testAB4(TestKind.DELETE, comparison);
}
@@ -92,7 +93,7 @@ public class ReqComputingTest {
final Resource left = input.getA5Left();
final Resource right = input.getA5Right();
- final IComparisonScope scope = EMFCompare.createDefaultScope(left, right);
+ final IComparisonScope scope = new DefaultComparisonScope(left, right, null);
final Comparison comparison = EMFCompare.builder().build().compare(scope);
testAB5(TestKind.DELETE, comparison);
}
@@ -102,7 +103,7 @@ public class ReqComputingTest {
final Resource left = input.getA6Left();
final Resource right = input.getA6Right();
- final IComparisonScope scope = EMFCompare.createDefaultScope(left, right);
+ final IComparisonScope scope = new DefaultComparisonScope(left, right, null);
final Comparison comparison = EMFCompare.builder().build().compare(scope);
testAB6(TestKind.DELETE, comparison);
@@ -113,7 +114,7 @@ public class ReqComputingTest {
final Resource left = input.getA7Left();
final Resource right = input.getA7Right();
- final IComparisonScope scope = EMFCompare.createDefaultScope(left, right);
+ final IComparisonScope scope = new DefaultComparisonScope(left, right, null);
final Comparison comparison = EMFCompare.builder().build().compare(scope);
testAB7(TestKind.ADD, comparison);
}
@@ -123,7 +124,7 @@ public class ReqComputingTest {
final Resource left = input.getA8Left();
final Resource right = input.getA8Right();
- final IComparisonScope scope = EMFCompare.createDefaultScope(left, right);
+ final IComparisonScope scope = new DefaultComparisonScope(left, right, null);
final Comparison comparison = EMFCompare.builder().build().compare(scope);
testAB8(TestKind.ADD, comparison);
}
@@ -133,7 +134,7 @@ public class ReqComputingTest {
final Resource left = input.getA9Left();
final Resource right = input.getA9Right();
- final IComparisonScope scope = EMFCompare.createDefaultScope(left, right);
+ final IComparisonScope scope = new DefaultComparisonScope(left, right, null);
final Comparison comparison = EMFCompare.builder().build().compare(scope);
testAB9(TestKind.ADD, comparison);
}
@@ -143,7 +144,7 @@ public class ReqComputingTest {
final Resource left = input.getA10Left();
final Resource right = input.getA10Right();
- final IComparisonScope scope = EMFCompare.createDefaultScope(left, right);
+ final IComparisonScope scope = new DefaultComparisonScope(left, right, null);
final Comparison comparison = EMFCompare.builder().build().compare(scope);
testAB10(TestKind.ADD, comparison);
}
@@ -153,7 +154,7 @@ public class ReqComputingTest {
final Resource left = input.getA11Left();
final Resource right = input.getA11Right();
- final IComparisonScope scope = EMFCompare.createDefaultScope(left, right);
+ final IComparisonScope scope = new DefaultComparisonScope(left, right, null);
final Comparison comparison = EMFCompare.builder().build().compare(scope);
testAB11(TestKind.ADD, comparison);
}
@@ -163,7 +164,7 @@ public class ReqComputingTest {
final Resource left = input.getA1Left();
final Resource right = input.getA1Right();
- final IComparisonScope scope = EMFCompare.createDefaultScope(right, left);
+ final IComparisonScope scope = new DefaultComparisonScope(right, left, null);
final Comparison comparison = EMFCompare.builder().build().compare(scope);
testAB1(TestKind.ADD, comparison);
}
@@ -173,7 +174,7 @@ public class ReqComputingTest {
final Resource left = input.getA2Left();
final Resource right = input.getA2Right();
- final IComparisonScope scope = EMFCompare.createDefaultScope(right, left);
+ final IComparisonScope scope = new DefaultComparisonScope(right, left, null);
final Comparison comparison = EMFCompare.builder().build().compare(scope);
testAB2(TestKind.ADD, comparison);
}
@@ -183,7 +184,7 @@ public class ReqComputingTest {
final Resource left = input.getA3Left();
final Resource right = input.getA3Right();
- final IComparisonScope scope = EMFCompare.createDefaultScope(right, left);
+ final IComparisonScope scope = new DefaultComparisonScope(right, left, null);
final Comparison comparison = EMFCompare.builder().build().compare(scope);
testAB3(TestKind.ADD, comparison);
}
@@ -193,7 +194,7 @@ public class ReqComputingTest {
final Resource left = input.getA4Left();
final Resource right = input.getA4Right();
- final IComparisonScope scope = EMFCompare.createDefaultScope(right, left);
+ final IComparisonScope scope = new DefaultComparisonScope(right, left, null);
final Comparison comparison = EMFCompare.builder().build().compare(scope);
testAB4(TestKind.ADD, comparison);
}
@@ -203,7 +204,7 @@ public class ReqComputingTest {
final Resource left = input.getA5Left();
final Resource right = input.getA5Right();
- final IComparisonScope scope = EMFCompare.createDefaultScope(right, left);
+ final IComparisonScope scope = new DefaultComparisonScope(right, left, null);
final Comparison comparison = EMFCompare.builder().build().compare(scope);
testAB5(TestKind.ADD, comparison);
}
@@ -213,7 +214,7 @@ public class ReqComputingTest {
final Resource left = input.getA6Left();
final Resource right = input.getA6Right();
- final IComparisonScope scope = EMFCompare.createDefaultScope(right, left);
+ final IComparisonScope scope = new DefaultComparisonScope(right, left, null);
final Comparison comparison = EMFCompare.builder().build().compare(scope);
testAB6(TestKind.ADD, comparison);
}
@@ -223,7 +224,7 @@ public class ReqComputingTest {
final Resource left = input.getA7Left();
final Resource right = input.getA7Right();
- final IComparisonScope scope = EMFCompare.createDefaultScope(right, left);
+ final IComparisonScope scope = new DefaultComparisonScope(right, left, null);
final Comparison comparison = EMFCompare.builder().build().compare(scope);
testAB7(TestKind.DELETE, comparison);
}
@@ -233,7 +234,7 @@ public class ReqComputingTest {
final Resource left = input.getA8Left();
final Resource right = input.getA8Right();
- final IComparisonScope scope = EMFCompare.createDefaultScope(right, left);
+ final IComparisonScope scope = new DefaultComparisonScope(right, left, null);
final Comparison comparison = EMFCompare.builder().build().compare(scope);
testAB8(TestKind.DELETE, comparison);
}
@@ -243,7 +244,7 @@ public class ReqComputingTest {
final Resource left = input.getA9Left();
final Resource right = input.getA9Right();
- final IComparisonScope scope = EMFCompare.createDefaultScope(right, left);
+ final IComparisonScope scope = new DefaultComparisonScope(right, left, null);
final Comparison comparison = EMFCompare.builder().build().compare(scope);
testAB9(TestKind.DELETE, comparison);
}
@@ -253,7 +254,7 @@ public class ReqComputingTest {
final Resource left = input.getA10Left();
final Resource right = input.getA10Right();
- final IComparisonScope scope = EMFCompare.createDefaultScope(right, left);
+ final IComparisonScope scope = new DefaultComparisonScope(right, left, null);
final Comparison comparison = EMFCompare.builder().build().compare(scope);
testAB10(TestKind.DELETE, comparison);
}
@@ -263,7 +264,7 @@ public class ReqComputingTest {
final Resource left = input.getA11Left();
final Resource right = input.getA11Right();
- final IComparisonScope scope = EMFCompare.createDefaultScope(right, left);
+ final IComparisonScope scope = new DefaultComparisonScope(right, left, null);
final Comparison comparison = EMFCompare.builder().build().compare(scope);
testAB11(TestKind.DELETE, comparison);
}
@@ -273,7 +274,7 @@ public class ReqComputingTest {
final Resource left = input.getC1Left();
final Resource right = input.getC1Right();
- final IComparisonScope scope = EMFCompare.createDefaultScope(left, right);
+ final IComparisonScope scope = new DefaultComparisonScope(left, right, null);
final Comparison comparison = EMFCompare.builder().build().compare(scope);
testCD1(TestKind.DELETE, comparison);
}
@@ -283,7 +284,7 @@ public class ReqComputingTest {
final Resource left = input.getC2Left();
final Resource right = input.getC2Right();
- final IComparisonScope scope = EMFCompare.createDefaultScope(left, right);
+ final IComparisonScope scope = new DefaultComparisonScope(left, right, null);
final Comparison comparison = EMFCompare.builder().build().compare(scope);
testCD2(TestKind.DELETE, comparison);
}
@@ -293,7 +294,7 @@ public class ReqComputingTest {
final Resource left = input.getC3Left();
final Resource right = input.getC3Right();
- final IComparisonScope scope = EMFCompare.createDefaultScope(left, right);
+ final IComparisonScope scope = new DefaultComparisonScope(left, right, null);
final Comparison comparison = EMFCompare.builder().build().compare(scope);
testCD3(TestKind.DELETE, comparison);
}
@@ -303,7 +304,7 @@ public class ReqComputingTest {
final Resource left = input.getC4Left();
final Resource right = input.getC4Right();
- final IComparisonScope scope = EMFCompare.createDefaultScope(left, right);
+ final IComparisonScope scope = new DefaultComparisonScope(left, right, null);
final Comparison comparison = EMFCompare.builder().build().compare(scope);
testCD4(TestKind.DELETE, comparison);
}
@@ -313,7 +314,7 @@ public class ReqComputingTest {
final Resource left = input.getC5Left();
final Resource right = input.getC5Right();
- final IComparisonScope scope = EMFCompare.createDefaultScope(left, right);
+ final IComparisonScope scope = new DefaultComparisonScope(left, right, null);
final Comparison comparison = EMFCompare.builder().build().compare(scope);
testCD5(TestKind.DELETE, comparison);
}
@@ -323,7 +324,7 @@ public class ReqComputingTest {
final Resource left = input.getC1Left();
final Resource right = input.getC1Right();
- final IComparisonScope scope = EMFCompare.createDefaultScope(right, left);
+ final IComparisonScope scope = new DefaultComparisonScope(right, left, null);
final Comparison comparison = EMFCompare.builder().build().compare(scope);
testCD1(TestKind.ADD, comparison);
}
@@ -333,7 +334,7 @@ public class ReqComputingTest {
final Resource left = input.getC2Left();
final Resource right = input.getC2Right();
- final IComparisonScope scope = EMFCompare.createDefaultScope(right, left);
+ final IComparisonScope scope = new DefaultComparisonScope(right, left, null);
final Comparison comparison = EMFCompare.builder().build().compare(scope);
testCD2(TestKind.ADD, comparison);
}
@@ -343,7 +344,7 @@ public class ReqComputingTest {
final Resource left = input.getC3Left();
final Resource right = input.getC3Right();
- final IComparisonScope scope = EMFCompare.createDefaultScope(right, left);
+ final IComparisonScope scope = new DefaultComparisonScope(right, left, null);
final Comparison comparison = EMFCompare.builder().build().compare(scope);
testCD3(TestKind.ADD, comparison);
}
@@ -353,7 +354,7 @@ public class ReqComputingTest {
final Resource left = input.getC4Left();
final Resource right = input.getC4Right();
- final IComparisonScope scope = EMFCompare.createDefaultScope(right, left);
+ final IComparisonScope scope = new DefaultComparisonScope(right, left, null);
final Comparison comparison = EMFCompare.builder().build().compare(scope);
testCD4(TestKind.ADD, comparison);
}
@@ -363,7 +364,7 @@ public class ReqComputingTest {
final Resource left = input.getC5Left();
final Resource right = input.getC5Right();
- final IComparisonScope scope = EMFCompare.createDefaultScope(right, left);
+ final IComparisonScope scope = new DefaultComparisonScope(right, left, null);
final Comparison comparison = EMFCompare.builder().build().compare(scope);
testCD5(TestKind.ADD, comparison);
}
@@ -374,7 +375,7 @@ public class ReqComputingTest {
final Resource right = input.getE1Right();
final Resource ancestor = input.getE1Ancestor();
- final IComparisonScope scope = EMFCompare.createDefaultScope(left, right, ancestor);
+ final IComparisonScope scope = new DefaultComparisonScope(left, right, ancestor);
final Comparison comparison = EMFCompare.builder().build().compare(scope);
testAB1(TestKind.DELETE, comparison);
}
@@ -385,7 +386,7 @@ public class ReqComputingTest {
final Resource right = input.getE2Right();
final Resource ancestor = input.getE2Ancestor();
- final IComparisonScope scope = EMFCompare.createDefaultScope(left, right, ancestor);
+ final IComparisonScope scope = new DefaultComparisonScope(left, right, ancestor);
final Comparison comparison = EMFCompare.builder().build().compare(scope);
testAB2(TestKind.DELETE, comparison);
}
@@ -396,7 +397,7 @@ public class ReqComputingTest {
final Resource right = input.getE3Right();
final Resource ancestor = input.getE3Ancestor();
- final IComparisonScope scope = EMFCompare.createDefaultScope(left, right, ancestor);
+ final IComparisonScope scope = new DefaultComparisonScope(left, right, ancestor);
final Comparison comparison = EMFCompare.builder().build().compare(scope);
testAB3(TestKind.DELETE, comparison);
}
@@ -407,7 +408,7 @@ public class ReqComputingTest {
final Resource right = input.getE4Right();
final Resource ancestor = input.getE4Ancestor();
- final IComparisonScope scope = EMFCompare.createDefaultScope(left, right, ancestor);
+ final IComparisonScope scope = new DefaultComparisonScope(left, right, ancestor);
final Comparison comparison = EMFCompare.builder().build().compare(scope);
testAB4(TestKind.DELETE, comparison);
}
@@ -418,7 +419,7 @@ public class ReqComputingTest {
final Resource right = input.getE5Right();
final Resource ancestor = input.getE5Ancestor();
- final IComparisonScope scope = EMFCompare.createDefaultScope(left, right, ancestor);
+ final IComparisonScope scope = new DefaultComparisonScope(left, right, ancestor);
final Comparison comparison = EMFCompare.builder().build().compare(scope);
testAB5(TestKind.DELETE, comparison);
}
@@ -429,7 +430,7 @@ public class ReqComputingTest {
final Resource right = input.getE6Right();
final Resource ancestor = input.getE6Ancestor();
- final IComparisonScope scope = EMFCompare.createDefaultScope(left, right, ancestor);
+ final IComparisonScope scope = new DefaultComparisonScope(left, right, ancestor);
final Comparison comparison = EMFCompare.builder().build().compare(scope);
testAB6(TestKind.DELETE, comparison);
}
@@ -440,7 +441,7 @@ public class ReqComputingTest {
final Resource right = input.getE7Right();
final Resource ancestor = input.getE7Ancestor();
- final IComparisonScope scope = EMFCompare.createDefaultScope(left, right, ancestor);
+ final IComparisonScope scope = new DefaultComparisonScope(left, right, ancestor);
final Comparison comparison = EMFCompare.builder().build().compare(scope);
testCD1(TestKind.DELETE, comparison);
}
@@ -451,7 +452,7 @@ public class ReqComputingTest {
final Resource right = input.getE8Right();
final Resource ancestor = input.getE8Ancestor();
- final IComparisonScope scope = EMFCompare.createDefaultScope(left, right, ancestor);
+ final IComparisonScope scope = new DefaultComparisonScope(left, right, ancestor);
final Comparison comparison = EMFCompare.builder().build().compare(scope);
testCD2(TestKind.DELETE, comparison);
}
@@ -462,7 +463,7 @@ public class ReqComputingTest {
final Resource right = input.getE9Right();
final Resource ancestor = input.getE9Ancestor();
- final IComparisonScope scope = EMFCompare.createDefaultScope(left, right, ancestor);
+ final IComparisonScope scope = new DefaultComparisonScope(left, right, ancestor);
final Comparison comparison = EMFCompare.builder().build().compare(scope);
testCD3(TestKind.DELETE, comparison);
}
@@ -473,7 +474,7 @@ public class ReqComputingTest {
final Resource right = input.getE10Right();
final Resource ancestor = input.getE10Ancestor();
- final IComparisonScope scope = EMFCompare.createDefaultScope(left, right, ancestor);
+ final IComparisonScope scope = new DefaultComparisonScope(left, right, ancestor);
final Comparison comparison = EMFCompare.builder().build().compare(scope);
testCD4(TestKind.DELETE, comparison);
}
@@ -484,7 +485,7 @@ public class ReqComputingTest {
final Resource right = input.getE11Right();
final Resource ancestor = input.getE11Ancestor();
- final IComparisonScope scope = EMFCompare.createDefaultScope(left, right, ancestor);
+ final IComparisonScope scope = new DefaultComparisonScope(left, right, ancestor);
final Comparison comparison = EMFCompare.builder().build().compare(scope);
testCD5(TestKind.DELETE, comparison);
}
@@ -495,7 +496,7 @@ public class ReqComputingTest {
final Resource right = input.getF1Right();
final Resource ancestor = input.getF1Ancestor();
- final IComparisonScope scope = EMFCompare.createDefaultScope(left, right, ancestor);
+ final IComparisonScope scope = new DefaultComparisonScope(left, right, ancestor);
final Comparison comparison = EMFCompare.builder().build().compare(scope);
testAB1(TestKind.ADD, comparison);
}
@@ -506,7 +507,7 @@ public class ReqComputingTest {
final Resource right = input.getF2Right();
final Resource ancestor = input.getF2Ancestor();
- final IComparisonScope scope = EMFCompare.createDefaultScope(left, right, ancestor);
+ final IComparisonScope scope = new DefaultComparisonScope(left, right, ancestor);
final Comparison comparison = EMFCompare.builder().build().compare(scope);
testAB2(TestKind.ADD, comparison);
}
@@ -517,7 +518,7 @@ public class ReqComputingTest {
final Resource right = input.getF3Right();
final Resource ancestor = input.getF3Ancestor();
- final IComparisonScope scope = EMFCompare.createDefaultScope(left, right, ancestor);
+ final IComparisonScope scope = new DefaultComparisonScope(left, right, ancestor);
final Comparison comparison = EMFCompare.builder().build().compare(scope);
testAB3(TestKind.ADD, comparison);
}
@@ -528,7 +529,7 @@ public class ReqComputingTest {
final Resource right = input.getF4Right();
final Resource ancestor = input.getF4Ancestor();
- final IComparisonScope scope = EMFCompare.createDefaultScope(left, right, ancestor);
+ final IComparisonScope scope = new DefaultComparisonScope(left, right, ancestor);
final Comparison comparison = EMFCompare.builder().build().compare(scope);
testAB4(TestKind.ADD, comparison);
}
@@ -539,7 +540,7 @@ public class ReqComputingTest {
final Resource right = input.getF5Right();
final Resource ancestor = input.getF5Ancestor();
- final IComparisonScope scope = EMFCompare.createDefaultScope(left, right, ancestor);
+ final IComparisonScope scope = new DefaultComparisonScope(left, right, ancestor);
final Comparison comparison = EMFCompare.builder().build().compare(scope);
testAB5(TestKind.ADD, comparison);
}
@@ -550,7 +551,7 @@ public class ReqComputingTest {
final Resource right = input.getF6Right();
final Resource ancestor = input.getF6Ancestor();
- final IComparisonScope scope = EMFCompare.createDefaultScope(left, right, ancestor);
+ final IComparisonScope scope = new DefaultComparisonScope(left, right, ancestor);
final Comparison comparison = EMFCompare.builder().build().compare(scope);
testAB6(TestKind.ADD, comparison);
}
@@ -561,7 +562,7 @@ public class ReqComputingTest {
final Resource right = input.getF7Right();
final Resource ancestor = input.getF7Ancestor();
- final IComparisonScope scope = EMFCompare.createDefaultScope(left, right, ancestor);
+ final IComparisonScope scope = new DefaultComparisonScope(left, right, ancestor);
final Comparison comparison = EMFCompare.builder().build().compare(scope);
testCD1(TestKind.ADD, comparison);
}
@@ -572,7 +573,7 @@ public class ReqComputingTest {
final Resource right = input.getF8Right();
final Resource ancestor = input.getF8Ancestor();
- final IComparisonScope scope = EMFCompare.createDefaultScope(left, right, ancestor);
+ final IComparisonScope scope = new DefaultComparisonScope(left, right, ancestor);
final Comparison comparison = EMFCompare.builder().build().compare(scope);
testCD2(TestKind.ADD, comparison);
}
@@ -583,7 +584,7 @@ public class ReqComputingTest {
final Resource right = input.getF9Right();
final Resource ancestor = input.getF9Ancestor();
- final IComparisonScope scope = EMFCompare.createDefaultScope(left, right, ancestor);
+ final IComparisonScope scope = new DefaultComparisonScope(left, right, ancestor);
final Comparison comparison = EMFCompare.builder().build().compare(scope);
testCD3(TestKind.ADD, comparison);
}
@@ -594,7 +595,7 @@ public class ReqComputingTest {
final Resource right = input.getF10Right();
final Resource ancestor = input.getF10Ancestor();
- final IComparisonScope scope = EMFCompare.createDefaultScope(left, right, ancestor);
+ final IComparisonScope scope = new DefaultComparisonScope(left, right, ancestor);
final Comparison comparison = EMFCompare.builder().build().compare(scope);
testCD4(TestKind.ADD, comparison);
}
@@ -605,7 +606,7 @@ public class ReqComputingTest {
final Resource right = input.getF11Right();
final Resource ancestor = input.getF11Ancestor();
- final IComparisonScope scope = EMFCompare.createDefaultScope(left, right, ancestor);
+ final IComparisonScope scope = new DefaultComparisonScope(left, right, ancestor);
final Comparison comparison = EMFCompare.builder().build().compare(scope);
testCD5(TestKind.ADD, comparison);
}
@@ -615,7 +616,7 @@ public class ReqComputingTest {
final Resource left = input.getG1Left();
final Resource right = input.getG1Right();
- final IComparisonScope scope = EMFCompare.createDefaultScope(left, right);
+ final IComparisonScope scope = new DefaultComparisonScope(left, right, null);
final Comparison comparison = EMFCompare.builder().build().compare(scope);
String root = "root";
String node1 = root + ".node1";

Back to the top