Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCedric Notot2012-05-09 09:14:46 -0400
committerCedric Notot2012-05-09 09:14:46 -0400
commit8a5c1754acec6786d340442a94a129a2c7faa279 (patch)
treefc2b08e474de60e3fb75372d821c558d26516578 /plugins/org.eclipse.emf.compare.tests/src/org/eclipse/emf/compare/tests/req
parent8a860828a930ea43522f3aa1878f296ea6fcac15 (diff)
downloadorg.eclipse.emf.compare-8a5c1754acec6786d340442a94a129a2c7faa279.tar.gz
org.eclipse.emf.compare-8a5c1754acec6786d340442a94a129a2c7faa279.tar.xz
org.eclipse.emf.compare-8a5c1754acec6786d340442a94a129a2c7faa279.zip
Requirements computing - add tests
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.java40
1 files changed, 40 insertions, 0 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 3b7f6122e..b460aba94 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
@@ -170,6 +170,46 @@ public class ReqComputingTest {
testCD5(left, right, TestKind.DELETE);
}
+ @Test
+ public void testD1UseCase() throws IOException {
+ final Resource left = input.getC1Left();
+ final Resource right = input.getC1Right();
+
+ testCD1(right, left, TestKind.ADD);
+ }
+
+ @Test
+ public void testD2UseCase() throws IOException {
+ final Resource left = input.getC2Left();
+ final Resource right = input.getC2Right();
+
+ testCD2(right, left, TestKind.ADD);
+ }
+
+ @Test
+ public void testD3UseCase() throws IOException {
+ final Resource left = input.getC3Left();
+ final Resource right = input.getC3Right();
+
+ testCD3(right, left, TestKind.ADD);
+ }
+
+ @Test
+ public void testD4UseCase() throws IOException {
+ final Resource left = input.getC4Left();
+ final Resource right = input.getC4Right();
+
+ testCD4(right, left, TestKind.ADD);
+ }
+
+ @Test
+ public void testD5UseCase() throws IOException {
+ final Resource left = input.getC5Left();
+ final Resource right = input.getC5Right();
+
+ testCD5(right, left, TestKind.ADD);
+ }
+
private static void testAB1(final Resource left, final Resource right, TestKind kind) {
final Comparison comparison = EMFCompare.compare(left, right);

Back to the top