diff options
Diffstat (limited to 'tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz.tests/test/org/eclipse/papyrus/uml/diagram/clazz/test/canonical/TestClassDiagramAssociationLinkSemantic.java')
-rw-r--r-- | tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz.tests/test/org/eclipse/papyrus/uml/diagram/clazz/test/canonical/TestClassDiagramAssociationLinkSemantic.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz.tests/test/org/eclipse/papyrus/uml/diagram/clazz/test/canonical/TestClassDiagramAssociationLinkSemantic.java b/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz.tests/test/org/eclipse/papyrus/uml/diagram/clazz/test/canonical/TestClassDiagramAssociationLinkSemantic.java index f4a87633d15..78acf6384bc 100644 --- a/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz.tests/test/org/eclipse/papyrus/uml/diagram/clazz/test/canonical/TestClassDiagramAssociationLinkSemantic.java +++ b/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz.tests/test/org/eclipse/papyrus/uml/diagram/clazz/test/canonical/TestClassDiagramAssociationLinkSemantic.java @@ -49,19 +49,19 @@ public class TestClassDiagramAssociationLinkSemantic extends AbstractPapyrusTest @Test public void testAssociationLink() { - IGraphicalEditPart source = createChild(UMLElementTypes.Class_2008, getDiagramEditPart(), 0); - IGraphicalEditPart target = createChild(UMLElementTypes.Class_2008, getDiagramEditPart(), 1); + IGraphicalEditPart source = createChild(UMLElementTypes.Class_Shape, getDiagramEditPart(), 0); + IGraphicalEditPart target = createChild(UMLElementTypes.Class_Shape, getDiagramEditPart(), 1); Association association = createAssociation(source, target); checkAssociationSemantic(source, target, association); } @Test public void testAssociationLinkReorient() { - IGraphicalEditPart source = createChild(UMLElementTypes.Class_2008, getDiagramEditPart(), 0); - IGraphicalEditPart target = createChild(UMLElementTypes.Class_2008, getDiagramEditPart(), 1); + IGraphicalEditPart source = createChild(UMLElementTypes.Class_Shape, getDiagramEditPart(), 0); + IGraphicalEditPart target = createChild(UMLElementTypes.Class_Shape, getDiagramEditPart(), 1); Association association = createAssociation(source, target); checkAssociationSemantic(source, target, association); - IGraphicalEditPart newSource = createChild(UMLElementTypes.Class_2008, getDiagramEditPart(), 2); + IGraphicalEditPart newSource = createChild(UMLElementTypes.Class_Shape, getDiagramEditPart(), 2); IElementEditService service = ElementEditServiceUtils.getCommandProvider(association); ReorientRelationshipRequest req = new ReorientRelationshipRequest(getEditingDomain(), association, newSource.resolveSemanticElement(), source.resolveSemanticElement(), ReorientRequest.REORIENT_SOURCE); ICommand cmd = service.getEditCommand(req); @@ -116,7 +116,7 @@ public class TestClassDiagramAssociationLinkSemantic extends AbstractPapyrusTest } private Association createAssociation(IGraphicalEditPart source, IGraphicalEditPart target) { - createLink(UMLElementTypes.Association_4001, source, target); + createLink(UMLElementTypes.Association_Edge, source, target); return findAssociation(source); } |