Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvlorenzo2012-07-20 09:31:07 +0000
committervlorenzo2012-07-20 09:31:07 +0000
commit2a3f1015dd80424367efdc09a5a7a98c210eac27 (patch)
tree2ecd063a384f6fc173beb7e8088a18430de3cd37 /tests/junit
parent2ee44d73f9ba47c60b00c4ca0251d9c500a4c0d1 (diff)
downloadorg.eclipse.papyrus-2a3f1015dd80424367efdc09a5a7a98c210eac27.tar.gz
org.eclipse.papyrus-2a3f1015dd80424367efdc09a5a7a98c210eac27.tar.xz
org.eclipse.papyrus-2a3f1015dd80424367efdc09a5a7a98c210eac27.zip
383788: [UML Compare] The transactional mergers provided by Papyrus should be covered with JUnit Test
https://bugs.eclipse.org/bugs/show_bug.cgi?id=383788 Commit the 2 two tests cases for MoveModelElement for the comparison in the same file. Notice that the comparison is not correct for the 2nd example.
Diffstat (limited to 'tests/junit')
-rw-r--r--tests/junit/extraplugins/uml/compare/org.eclipse.papyrus.uml.compare.diff.tests/src/org/eclipse/papyrus/uml/compare/diff/tests/AllTests.java8
-rw-r--r--tests/junit/extraplugins/uml/compare/org.eclipse.papyrus.uml.compare.diff.tests/src/org/eclipse/papyrus/uml/compare/diff/tests/nested/AbstractNestedMoveModelElementTest_1.java153
-rw-r--r--tests/junit/extraplugins/uml/compare/org.eclipse.papyrus.uml.compare.diff.tests/src/org/eclipse/papyrus/uml/compare/diff/tests/nested/AbstractNestedMoveModelElementTest_2.java183
-rw-r--r--tests/junit/extraplugins/uml/compare/org.eclipse.papyrus.uml.compare.diff.tests/src/org/eclipse/papyrus/uml/compare/diff/tests/nested/NestedMoveModelElementTest_1_LeftToRight.java31
-rw-r--r--tests/junit/extraplugins/uml/compare/org.eclipse.papyrus.uml.compare.diff.tests/src/org/eclipse/papyrus/uml/compare/diff/tests/nested/NestedMoveModelElementTest_1_RightToLeft.java30
-rw-r--r--tests/junit/extraplugins/uml/compare/org.eclipse.papyrus.uml.compare.diff.tests/src/org/eclipse/papyrus/uml/compare/diff/tests/nested/NestedMoveModelElementTest_2_LeftToRight.java31
-rw-r--r--tests/junit/extraplugins/uml/compare/org.eclipse.papyrus.uml.compare.diff.tests/src/org/eclipse/papyrus/uml/compare/diff/tests/nested/NestedMoveModelElementTest_2_RightToLeft.java30
7 files changed, 466 insertions, 0 deletions
diff --git a/tests/junit/extraplugins/uml/compare/org.eclipse.papyrus.uml.compare.diff.tests/src/org/eclipse/papyrus/uml/compare/diff/tests/AllTests.java b/tests/junit/extraplugins/uml/compare/org.eclipse.papyrus.uml.compare.diff.tests/src/org/eclipse/papyrus/uml/compare/diff/tests/AllTests.java
index a92c23b4381..51d6c83c343 100644
--- a/tests/junit/extraplugins/uml/compare/org.eclipse.papyrus.uml.compare.diff.tests/src/org/eclipse/papyrus/uml/compare/diff/tests/AllTests.java
+++ b/tests/junit/extraplugins/uml/compare/org.eclipse.papyrus.uml.compare.diff.tests/src/org/eclipse/papyrus/uml/compare/diff/tests/AllTests.java
@@ -23,6 +23,10 @@ import org.eclipse.papyrus.uml.compare.diff.tests.nested.NestedModelElementChang
import org.eclipse.papyrus.uml.compare.diff.tests.nested.NestedModelElementChangeLeftTargetTest_1_RightToLeft;
import org.eclipse.papyrus.uml.compare.diff.tests.nested.NestedModelElementChangeRightTargetTest_1_LeftToRight;
import org.eclipse.papyrus.uml.compare.diff.tests.nested.NestedModelElementChangeRightTargetTest_1_RightToLeft;
+import org.eclipse.papyrus.uml.compare.diff.tests.nested.NestedMoveModelElementTest_1_LeftToRight;
+import org.eclipse.papyrus.uml.compare.diff.tests.nested.NestedMoveModelElementTest_1_RightToLeft;
+import org.eclipse.papyrus.uml.compare.diff.tests.nested.NestedMoveModelElementTest_2_LeftToRight;
+import org.eclipse.papyrus.uml.compare.diff.tests.nested.NestedMoveModelElementTest_2_RightToLeft;
import org.eclipse.papyrus.uml.compare.diff.tests.nested.NestedUpdateAttributeTest_1_LeftToRight;
import org.eclipse.papyrus.uml.compare.diff.tests.nested.NestedUpdateAttributeTest_1_RightToLeft;
import org.eclipse.papyrus.uml.compare.diff.tests.standalone.AttributeChangeLeftTargetTest_1_LeftToRight;
@@ -92,6 +96,10 @@ NestedModelElementChangeRightTargetTest_1_LeftToRight.class, NestedModelElementC
NestedModelElementChangeLeftTargetTest_1_LeftToRight.class, NestedModelElementChangeLeftTargetTest_1_RightToLeft.class,
+NestedMoveModelElementTest_1_LeftToRight.class, NestedMoveModelElementTest_1_RightToLeft.class,
+
+NestedMoveModelElementTest_2_LeftToRight.class, NestedMoveModelElementTest_2_RightToLeft.class,
+
NestedUpdateAttributeTest_1_LeftToRight.class, NestedUpdateAttributeTest_1_RightToLeft.class,
AttributeChangeLeftTargetTest_1_LeftToRight.class, AttributeChangeLeftTargetTest_1_RightToLeft.class,
diff --git a/tests/junit/extraplugins/uml/compare/org.eclipse.papyrus.uml.compare.diff.tests/src/org/eclipse/papyrus/uml/compare/diff/tests/nested/AbstractNestedMoveModelElementTest_1.java b/tests/junit/extraplugins/uml/compare/org.eclipse.papyrus.uml.compare.diff.tests/src/org/eclipse/papyrus/uml/compare/diff/tests/nested/AbstractNestedMoveModelElementTest_1.java
new file mode 100644
index 00000000000..628b117881d
--- /dev/null
+++ b/tests/junit/extraplugins/uml/compare/org.eclipse.papyrus.uml.compare.diff.tests/src/org/eclipse/papyrus/uml/compare/diff/tests/nested/AbstractNestedMoveModelElementTest_1.java
@@ -0,0 +1,153 @@
+/*****************************************************************************
+ * Copyright (c) 2012 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Vincent Lorenzo (CEA LIST) Vincent.Lorenzo@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.uml.compare.diff.tests.nested;
+
+import java.io.IOException;
+import java.util.List;
+
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.emf.common.util.EList;
+import org.eclipse.emf.compare.diff.metamodel.DiffElement;
+import org.eclipse.emf.compare.diff.metamodel.MoveModelElement;
+import org.eclipse.osgi.util.NLS;
+import org.eclipse.papyrus.infra.core.resource.ModelMultiException;
+import org.eclipse.papyrus.infra.core.services.ServiceException;
+import org.eclipse.papyrus.uml.compare.diff.tests.AbstractCompareTest;
+import org.eclipse.uml2.uml.Element;
+import org.eclipse.uml2.uml.Package;
+import org.eclipse.uml2.uml.PackageableElement;
+import org.junit.Assert;
+import org.junit.Test;
+
+/**
+ *
+ * FIXME : I didn't find an example for this kind of differences in a nested editor
+ *
+ */
+public class AbstractNestedMoveModelElementTest_1 extends AbstractNestedCompareTest {
+
+
+ private static final String MODEL_PATH = "moveModelElement_1/"; //$NON-NLS-1$
+
+ public static void init(final boolean leftToRight) throws CoreException, IOException, ModelMultiException, ServiceException {
+ AbstractNestedCompareTest.init(MODEL_PATH, leftToRight);
+ AbstractCompareTest.leftElement = AbstractNestedCompareTest.root.getOwnedMembers().get(0); //$NON-NLS-1$
+ AbstractCompareTest.rightElement = AbstractNestedCompareTest.root.getOwnedMembers().get(1); //$NON-NLS-1$
+ }
+
+
+
+ @Test
+ @Override
+ public void mergeTestAllExecutability() throws InterruptedException {
+ super.mergeTestAllExecutability();
+ }
+
+
+ @Test
+ public void testDifferences() throws InterruptedException {
+ super.testDifferences();
+ }
+
+
+ @Override
+ public void testLastDiffElements(List<DiffElement> diffElements) {
+ Assert.assertTrue(NLS.bind("The number of DiffElement is not correct : we would like {0} DiffElement, and we found {1}", new Object[]{ 1, diffElements.size() }), diffElements.size() == 1);
+ final DiffElement diffElement = diffElements.get(0);
+ Assert.assertTrue(NLS.bind("The last DiffElement is not a {0}", MoveModelElement.class), diffElement instanceof MoveModelElement);
+ }
+
+
+ @Override
+ @Test
+ public void testCommandExecution() throws InterruptedException, IOException {
+ super.testCommandExecution();
+ }
+
+
+ @Test
+ public void testModificationOnDiFile() {
+ super.testModificationOnDiFile(false);
+ }
+
+
+ @Test
+ public void testModificationOnNotationFile() {
+ super.testModificationOnNotationFile(false);//currently false, because this modification doesn't use the service edit, should be set to true later
+ }
+
+
+ @Test
+ public void testModificationOnUMLFile() {
+ super.testModificationOnUMLFile(true);
+ if(leftToRight) {
+ final EList<PackageableElement> leftPackagedElement = ((Package)leftElement).getPackagedElements();
+ final EList<PackageableElement> rightPackagedElement = ((Package)rightElement).getPackagedElements();
+ Assert.assertEquals(leftPackagedElement.size(), 1);
+ Assert.assertEquals(rightPackagedElement.size(), 1);
+ final EList<Element> leftOwnedElements = leftPackagedElement.get(0).getOwnedElements();
+ final EList<Element> rightOwnedElements = leftPackagedElement.get(0).getOwnedElements();
+ //the 2 subpackage contains the classes
+ Assert.assertEquals(leftOwnedElements.size(), 1);
+ Assert.assertEquals(rightOwnedElements.size(), 1);
+ } else {
+ final EList<PackageableElement> leftPackagedElement = ((Package)leftElement).getPackagedElements();
+ final EList<PackageableElement> rightPackagedElement = ((Package)rightElement).getPackagedElements();
+ Assert.assertEquals(leftPackagedElement.size(), 2);
+ Assert.assertEquals(rightPackagedElement.size(), 2);
+ final EList<Element> leftOwnedElements = leftPackagedElement.get(0).getOwnedElements();
+ final EList<Element> rightOwnedElements = leftPackagedElement.get(0).getOwnedElements();
+ //the 2 subpackage contains the classes
+ Assert.assertEquals(leftOwnedElements.size(), 0);
+ Assert.assertEquals(rightOwnedElements.size(), 0);
+ }
+ }
+
+
+ @Override
+ @Test
+ public void saveTest() throws IOException {
+ super.saveTest();
+ }
+
+
+ @Override
+ @Test
+ public void testResult() throws InterruptedException {
+ super.testResult();
+ }
+
+ @Override
+ public void testXMIID() {
+ //nothing to do here!
+ }
+
+ @Override
+ @Test
+ public void testUndo() throws IOException, InterruptedException {
+ super.testUndo();
+ }
+
+ @Override
+ @Test
+ public void testRedo() throws IOException, InterruptedException {
+ super.testRedo();
+ }
+
+ @Test
+ public void testOneDiffCommandExecution() throws IOException, InterruptedException {
+ super.testOneDiffCommandExecution();
+ }
+
+}
diff --git a/tests/junit/extraplugins/uml/compare/org.eclipse.papyrus.uml.compare.diff.tests/src/org/eclipse/papyrus/uml/compare/diff/tests/nested/AbstractNestedMoveModelElementTest_2.java b/tests/junit/extraplugins/uml/compare/org.eclipse.papyrus.uml.compare.diff.tests/src/org/eclipse/papyrus/uml/compare/diff/tests/nested/AbstractNestedMoveModelElementTest_2.java
new file mode 100644
index 00000000000..2d470a582f6
--- /dev/null
+++ b/tests/junit/extraplugins/uml/compare/org.eclipse.papyrus.uml.compare.diff.tests/src/org/eclipse/papyrus/uml/compare/diff/tests/nested/AbstractNestedMoveModelElementTest_2.java
@@ -0,0 +1,183 @@
+/*****************************************************************************
+ * Copyright (c) 2012 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Vincent Lorenzo (CEA LIST) Vincent.Lorenzo@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.uml.compare.diff.tests.nested;
+
+import java.io.IOException;
+import java.util.ArrayList;
+import java.util.List;
+
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.emf.common.command.Command;
+import org.eclipse.emf.compare.diff.metamodel.DiffElement;
+import org.eclipse.emf.compare.diff.metamodel.DiffGroup;
+import org.eclipse.emf.compare.diff.metamodel.DiffModel;
+import org.eclipse.emf.compare.diff.metamodel.MoveModelElement;
+import org.eclipse.osgi.util.NLS;
+import org.eclipse.papyrus.infra.core.resource.ModelMultiException;
+import org.eclipse.papyrus.infra.core.services.ServiceException;
+import org.eclipse.papyrus.infra.emf.compare.diff.service.TransactionalMergeService;
+import org.eclipse.papyrus.uml.compare.diff.tests.AbstractCompareTest;
+import org.eclipse.papyrus.uml.compare.diff.tests.TestMergerUtils;
+import org.junit.Assert;
+import org.junit.Ignore;
+import org.junit.Test;
+
+/**
+ *
+ * FIXME : I didn't find an example for this kind of differences in a nested editor
+ *
+ */
+public class AbstractNestedMoveModelElementTest_2 extends AbstractNestedCompareTest {
+
+
+ private static final String MODEL_PATH = "moveModelElement_2/"; //$NON-NLS-1$
+
+ public static void init(final boolean leftToRight) throws CoreException, IOException, ModelMultiException, ServiceException {
+ //I think it is not possible to get this kind of differences in a nested editor
+ AbstractNestedCompareTest.init(MODEL_PATH, leftToRight);
+ AbstractCompareTest.leftElement = AbstractNestedCompareTest.root.getOwnedMembers().get(0); //$NON-NLS-1$
+ AbstractCompareTest.rightElement = AbstractNestedCompareTest.root.getOwnedMembers().get(1); //$NON-NLS-1$
+ }
+
+
+ @Test
+ @Override
+ public void mergeTestAllExecutability() throws InterruptedException {
+ super.mergeTestAllExecutability();
+ }
+
+
+ @Test
+ public void testDifferences() throws InterruptedException {
+ super.testDifferences();
+ }
+
+ @Override
+ public void testLastDiffElements(List<DiffElement> diffElements) {
+ Assert.assertTrue("The DiffElement is not a DiffGroup", diffElements.size() == 5);
+ for(DiffElement current : diffElements) {
+ Assert.assertTrue(current instanceof DiffGroup);
+ DiffGroup group = (DiffGroup)current;
+ Assert.assertTrue("The DiffGroup should contains only 1 DiffElement", group.getSubDiffElements().size() == 1);
+ DiffElement element = group.getSubDiffElements().get(0);
+ Assert.assertTrue(element instanceof MoveModelElement);
+ }
+ }
+
+ @Override
+ @Test
+ public void testCommandExecution() throws InterruptedException, IOException {
+ super.testCommandExecution();
+ }
+
+ @Test
+ public void testModificationOnDiFile() {
+ super.testModificationOnDiFile(false);
+ }
+
+
+ @Test
+ public void testModificationOnNotationFile() {
+ super.testModificationOnNotationFile(false);//currently false, because this modification doesn't use the service edit, should be set to true later
+ }
+
+ @Test
+ public void testModificationOnUMLFile() {
+ super.testModificationOnUMLFile(true);
+ }
+
+ @Override
+ @Test
+ public void saveTest() throws IOException {
+ super.saveTest();
+ }
+
+ @Override
+ @Test
+ public void testResult() throws InterruptedException {
+ super.testResult();
+ }
+
+ @Override
+ public void testXMIID() {
+ //nothing to do here!
+ }
+
+ @Override
+ @Test
+ public void testUndo() throws IOException, InterruptedException {
+ super.testUndo();
+ }
+
+ @Override
+ @Test
+ public void testRedo() throws IOException, InterruptedException {
+ super.testRedo();
+ }
+
+ @Ignore("not yet implemented")
+ @Test
+ public void testMergeOrder() {
+ Assert.fail("not yet implemented");
+ }
+
+ @Test
+ public void testOneDiffCommandExecution() throws IOException, InterruptedException {
+ testUndo();
+ final DiffModel diff = getDiffModel(leftElement, rightElement);
+ final List<DiffElement> diffsToMerge = getDiffElementToMerge(diff);
+ int nb = diffsToMerge.size();
+ for(final DiffElement diffElement : diffsToMerge) {
+ Assert.assertFalse(diffElement instanceof DiffGroup);
+ testDiffMerger(diffElement);
+ final Command cmd = TransactionalMergeService.getMergeCommand(domain, diffElement, leftToRight);
+ Assert.assertNotNull(NLS.bind("I can't find the merge command for {0}", diffElement), cmd);
+ Assert.assertTrue(NLS.bind("The builded command to merge {0} is not executable", diffElement), cmd.canExecute());
+ //we execute the command and hope that all it is OK
+ domain.getCommandStack().execute(cmd);
+ }
+ saveFiles();
+ testModificationOnDiFile();
+ testModificationOnNotationFile();
+ testModificationOnUMLFile();
+ testResult();
+ testXMIID();
+
+ //we test the Undo
+ for(int i = 0; i < nb; i++) {
+ domain.getCommandStack().undo();
+ }
+ saveFiles();
+ final DiffModel diff2 = getDiffModel(leftElement, rightElement);
+ // Merges all differences from model1 to model2
+ final List<DiffElement> differences = new ArrayList<DiffElement>(diff2.getOwnedElements());
+ TestMergerUtils.compareDiffList(initialDifferences, differences);
+
+
+ //we test the Undo
+ for(int i = 0; i < nb; i++) {
+ domain.getCommandStack().redo();
+ }
+
+ saveFiles();
+ testResult();
+ }
+
+ @Override
+ @Test
+ public void testTestConformance() {
+ super.testTestConformance();
+ }
+
+}
diff --git a/tests/junit/extraplugins/uml/compare/org.eclipse.papyrus.uml.compare.diff.tests/src/org/eclipse/papyrus/uml/compare/diff/tests/nested/NestedMoveModelElementTest_1_LeftToRight.java b/tests/junit/extraplugins/uml/compare/org.eclipse.papyrus.uml.compare.diff.tests/src/org/eclipse/papyrus/uml/compare/diff/tests/nested/NestedMoveModelElementTest_1_LeftToRight.java
new file mode 100644
index 00000000000..c4cc1bb3183
--- /dev/null
+++ b/tests/junit/extraplugins/uml/compare/org.eclipse.papyrus.uml.compare.diff.tests/src/org/eclipse/papyrus/uml/compare/diff/tests/nested/NestedMoveModelElementTest_1_LeftToRight.java
@@ -0,0 +1,31 @@
+/*****************************************************************************
+ * Copyright (c) 2012 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Vincent Lorenzo (CEA LIST) Vincent.Lorenzo@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.uml.compare.diff.tests.nested;
+
+import java.io.IOException;
+
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.papyrus.infra.core.resource.ModelMultiException;
+import org.eclipse.papyrus.infra.core.services.ServiceException;
+import org.junit.BeforeClass;
+
+
+public class NestedMoveModelElementTest_1_LeftToRight extends AbstractNestedMoveModelElementTest_1 {
+
+ @BeforeClass
+ public static void init() throws CoreException, IOException, ModelMultiException, ServiceException {
+ AbstractNestedMoveModelElementTest_1.init(true);
+ }
+
+}
diff --git a/tests/junit/extraplugins/uml/compare/org.eclipse.papyrus.uml.compare.diff.tests/src/org/eclipse/papyrus/uml/compare/diff/tests/nested/NestedMoveModelElementTest_1_RightToLeft.java b/tests/junit/extraplugins/uml/compare/org.eclipse.papyrus.uml.compare.diff.tests/src/org/eclipse/papyrus/uml/compare/diff/tests/nested/NestedMoveModelElementTest_1_RightToLeft.java
new file mode 100644
index 00000000000..957fc0d8b7b
--- /dev/null
+++ b/tests/junit/extraplugins/uml/compare/org.eclipse.papyrus.uml.compare.diff.tests/src/org/eclipse/papyrus/uml/compare/diff/tests/nested/NestedMoveModelElementTest_1_RightToLeft.java
@@ -0,0 +1,30 @@
+/*****************************************************************************
+ * Copyright (c) 2012 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Vincent Lorenzo (CEA LIST) Vincent.Lorenzo@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.uml.compare.diff.tests.nested;
+
+import java.io.IOException;
+
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.papyrus.infra.core.resource.ModelMultiException;
+import org.eclipse.papyrus.infra.core.services.ServiceException;
+import org.junit.BeforeClass;
+
+
+public class NestedMoveModelElementTest_1_RightToLeft extends AbstractNestedMoveModelElementTest_1 {
+
+ @BeforeClass
+ public static void init() throws CoreException, IOException, ModelMultiException, ServiceException {
+ AbstractNestedMoveModelElementTest_1.init(false);
+ }
+}
diff --git a/tests/junit/extraplugins/uml/compare/org.eclipse.papyrus.uml.compare.diff.tests/src/org/eclipse/papyrus/uml/compare/diff/tests/nested/NestedMoveModelElementTest_2_LeftToRight.java b/tests/junit/extraplugins/uml/compare/org.eclipse.papyrus.uml.compare.diff.tests/src/org/eclipse/papyrus/uml/compare/diff/tests/nested/NestedMoveModelElementTest_2_LeftToRight.java
new file mode 100644
index 00000000000..7877dfc9b1d
--- /dev/null
+++ b/tests/junit/extraplugins/uml/compare/org.eclipse.papyrus.uml.compare.diff.tests/src/org/eclipse/papyrus/uml/compare/diff/tests/nested/NestedMoveModelElementTest_2_LeftToRight.java
@@ -0,0 +1,31 @@
+/*****************************************************************************
+ * Copyright (c) 2012 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Vincent Lorenzo (CEA LIST) Vincent.Lorenzo@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.uml.compare.diff.tests.nested;
+
+import java.io.IOException;
+
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.papyrus.infra.core.resource.ModelMultiException;
+import org.eclipse.papyrus.infra.core.services.ServiceException;
+import org.junit.BeforeClass;
+
+
+public class NestedMoveModelElementTest_2_LeftToRight extends AbstractNestedMoveModelElementTest_2 {
+
+ @BeforeClass
+ public static void init() throws CoreException, IOException, ModelMultiException, ServiceException {
+ AbstractNestedMoveModelElementTest_2.init(true);
+ }
+
+}
diff --git a/tests/junit/extraplugins/uml/compare/org.eclipse.papyrus.uml.compare.diff.tests/src/org/eclipse/papyrus/uml/compare/diff/tests/nested/NestedMoveModelElementTest_2_RightToLeft.java b/tests/junit/extraplugins/uml/compare/org.eclipse.papyrus.uml.compare.diff.tests/src/org/eclipse/papyrus/uml/compare/diff/tests/nested/NestedMoveModelElementTest_2_RightToLeft.java
new file mode 100644
index 00000000000..3e355471a5a
--- /dev/null
+++ b/tests/junit/extraplugins/uml/compare/org.eclipse.papyrus.uml.compare.diff.tests/src/org/eclipse/papyrus/uml/compare/diff/tests/nested/NestedMoveModelElementTest_2_RightToLeft.java
@@ -0,0 +1,30 @@
+/*****************************************************************************
+ * Copyright (c) 2012 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Vincent Lorenzo (CEA LIST) Vincent.Lorenzo@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.uml.compare.diff.tests.nested;
+
+import java.io.IOException;
+
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.papyrus.infra.core.resource.ModelMultiException;
+import org.eclipse.papyrus.infra.core.services.ServiceException;
+import org.junit.BeforeClass;
+
+
+public class NestedMoveModelElementTest_2_RightToLeft extends AbstractNestedMoveModelElementTest_2 {
+
+ @BeforeClass
+ public static void init() throws CoreException, IOException, ModelMultiException, ServiceException {
+ AbstractNestedMoveModelElementTest_2.init(false);
+ }
+}

Back to the top