Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCamille Letavernier2014-03-25 12:02:59 -0400
committerCamille Letavernier2014-03-25 12:02:59 -0400
commitb4f5d4c4b033acac9aecd51ab98a9bc67cab31b6 (patch)
treeb17cdae86a7ae51e26dab20b3427c3eca819fc38 /tests/junit
parentc49836d35cb8aac5024b2c0c8117e55d2ce53d3f (diff)
downloadorg.eclipse.papyrus-b4f5d4c4b033acac9aecd51ab98a9bc67cab31b6.tar.gz
org.eclipse.papyrus-b4f5d4c4b033acac9aecd51ab98a9bc67cab31b6.tar.xz
org.eclipse.papyrus-b4f5d4c4b033acac9aecd51ab98a9bc67cab31b6.zip
427025: [OCL For Papyrus] Cannot create OCL constraints in Luna
https://bugs.eclipse.org/bugs/show_bug.cgi?id=427025 - Fix the SysML BDD Tests to account for the new D&D feature (Namespace on Constraint sets the Constraint's context)
Diffstat (limited to 'tests/junit')
-rw-r--r--tests/junit/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.blockdefinition.tests/src/org/eclipse/papyrus/sysml/diagram/blockdefinition/tests/dnd/inherited/TestNodeDropOnConstraint.java10
-rw-r--r--tests/junit/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.blockdefinition.tests/src/org/eclipse/papyrus/sysml/diagram/blockdefinition/tests/dnd/inherited/TestNodeDropOnConstraintCN.java10
2 files changed, 10 insertions, 10 deletions
diff --git a/tests/junit/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.blockdefinition.tests/src/org/eclipse/papyrus/sysml/diagram/blockdefinition/tests/dnd/inherited/TestNodeDropOnConstraint.java b/tests/junit/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.blockdefinition.tests/src/org/eclipse/papyrus/sysml/diagram/blockdefinition/tests/dnd/inherited/TestNodeDropOnConstraint.java
index 45655953873..2b97c27fee6 100644
--- a/tests/junit/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.blockdefinition.tests/src/org/eclipse/papyrus/sysml/diagram/blockdefinition/tests/dnd/inherited/TestNodeDropOnConstraint.java
+++ b/tests/junit/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.blockdefinition.tests/src/org/eclipse/papyrus/sysml/diagram/blockdefinition/tests/dnd/inherited/TestNodeDropOnConstraint.java
@@ -7,7 +7,7 @@
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
- *
+ *
* CEA LIST - Initial API and implementation
*
*****************************************************************************/
@@ -150,20 +150,20 @@ public class TestNodeDropOnConstraint extends AbstractTest {
@Test
public void testDropModel() throws Exception {
EObject droppedElement = createElement(UMLElementTypes.MODEL, getDiagramView());
- dropFromModelExplorer(droppedElement, containerView, false);
+ dropFromModelExplorer(droppedElement, containerView, true); //Should set the context of the Constraint
}
@Test
public void testDropOperation() throws Exception {
EObject intermediateContainer = createElement(SysMLElementTypes.BLOCK, getDiagramView());
EObject droppedElement = createElement(UMLElementTypes.OPERATION, intermediateContainer);
- dropFromModelExplorer(droppedElement, containerView, false);
+ dropFromModelExplorer(droppedElement, containerView, true); //Should set the context of the Constraint
}
@Test
public void testDropPackage() throws Exception {
EObject droppedElement = createElement(UMLElementTypes.PACKAGE, getDiagramView());
- dropFromModelExplorer(droppedElement, containerView, false);
+ dropFromModelExplorer(droppedElement, containerView, true); //Should set the context of the Constraint
}
@Test
@@ -197,7 +197,7 @@ public class TestNodeDropOnConstraint extends AbstractTest {
public void testDropReception() throws Exception {
EObject intermediateContainer = createElement(SysMLElementTypes.BLOCK, getDiagramView());
EObject droppedElement = createElement(UMLElementTypes.RECEPTION, intermediateContainer);
- dropFromModelExplorer(droppedElement, containerView, false);
+ dropFromModelExplorer(droppedElement, containerView, true); //Should set the context of the Constraint
}
@Test
diff --git a/tests/junit/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.blockdefinition.tests/src/org/eclipse/papyrus/sysml/diagram/blockdefinition/tests/dnd/inherited/TestNodeDropOnConstraintCN.java b/tests/junit/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.blockdefinition.tests/src/org/eclipse/papyrus/sysml/diagram/blockdefinition/tests/dnd/inherited/TestNodeDropOnConstraintCN.java
index 69a5896b709..ca6bbde9536 100644
--- a/tests/junit/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.blockdefinition.tests/src/org/eclipse/papyrus/sysml/diagram/blockdefinition/tests/dnd/inherited/TestNodeDropOnConstraintCN.java
+++ b/tests/junit/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.blockdefinition.tests/src/org/eclipse/papyrus/sysml/diagram/blockdefinition/tests/dnd/inherited/TestNodeDropOnConstraintCN.java
@@ -7,7 +7,7 @@
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
- *
+ *
* CEA LIST - Initial API and implementation
*
*****************************************************************************/
@@ -150,20 +150,20 @@ public class TestNodeDropOnConstraintCN extends AbstractTest {
@Test
public void testDropModel() throws Exception {
EObject droppedElement = createElement(UMLElementTypes.MODEL, getDiagramView());
- dropFromModelExplorer(droppedElement, containerView, false);
+ dropFromModelExplorer(droppedElement, containerView, true); //Should set the context of the Constraint
}
@Test
public void testDropOperation() throws Exception {
EObject intermediateContainer = createElement(SysMLElementTypes.BLOCK, getDiagramView());
EObject droppedElement = createElement(UMLElementTypes.OPERATION, intermediateContainer);
- dropFromModelExplorer(droppedElement, containerView, false);
+ dropFromModelExplorer(droppedElement, containerView, true); //Should set the context of the Constraint
}
@Test
public void testDropPackage() throws Exception {
EObject droppedElement = createElement(UMLElementTypes.PACKAGE, getDiagramView());
- dropFromModelExplorer(droppedElement, containerView, false);
+ dropFromModelExplorer(droppedElement, containerView, true); //Should set the context of the Constraint
}
@Test
@@ -197,7 +197,7 @@ public class TestNodeDropOnConstraintCN extends AbstractTest {
public void testDropReception() throws Exception {
EObject intermediateContainer = createElement(SysMLElementTypes.BLOCK, getDiagramView());
EObject droppedElement = createElement(UMLElementTypes.RECEPTION, intermediateContainer);
- dropFromModelExplorer(droppedElement, containerView, false);
+ dropFromModelExplorer(droppedElement, containerView, true); //Should set the context of the Constraint
}
@Test

Back to the top