Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorFanch BONNABESSE2016-08-12 07:59:10 +0000
committerGerrit Code Review @ Eclipse.org2016-08-17 08:24:02 +0000
commit0a22a1df17f4546cac744f098832811068aa08a1 (patch)
tree83956de169d394733c5deb4391b9abc08898714a /tests
parent30fbcd72a321f707bb3598b4cb349428348a48f4 (diff)
downloadorg.eclipse.papyrus-0a22a1df17f4546cac744f098832811068aa08a1.tar.gz
org.eclipse.papyrus-0a22a1df17f4546cac744f098832811068aa08a1.tar.xz
org.eclipse.papyrus-0a22a1df17f4546cac744f098832811068aa08a1.zip
Bug 497289: [Model Explorer] Renaming an element in the model explorer
should not open a modal editor https://bugs.eclipse.org/bugs/show_bug.cgi?id=497289 [JUnit] Update of JUnit Tests. Change-Id: Ib90593db6c995a66eb8bdaff4d17bbaf329339fc Signed-off-by: Fanch BONNABESSE <fanch.bonnabesse@all4tec.net>
Diffstat (limited to 'tests')
-rw-r--r--tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz.tests/test/org/eclipse/papyrus/uml/diagram/clazz/test/canonical/TestEditableClassDiagramTopNode.java24
1 files changed, 19 insertions, 5 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/TestEditableClassDiagramTopNode.java b/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz.tests/test/org/eclipse/papyrus/uml/diagram/clazz/test/canonical/TestEditableClassDiagramTopNode.java
index 86ce41cbf1c..baea4a8f600 100644
--- a/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz.tests/test/org/eclipse/papyrus/uml/diagram/clazz/test/canonical/TestEditableClassDiagramTopNode.java
+++ b/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz.tests/test/org/eclipse/papyrus/uml/diagram/clazz/test/canonical/TestEditableClassDiagramTopNode.java
@@ -1,7 +1,7 @@
/*****************************************************************************
* Copyright (c) 2009, 2015 CEA LIST, Christian W. Damus, and others.
*
- *
+ *
* 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
@@ -10,6 +10,7 @@
* Contributors:
* Patrick Tessier (CEA LIST) Patrick.tessier@cea.fr - Initial API and implementation
* Christian W. Damus - bug 476436
+ * Fanch BONNABESSE (ALL4TEC) fanch.bonnabesse@all4tec.net - Bug 497289
*
*****************************************************************************/
package org.eclipse.papyrus.uml.diagram.clazz.test.canonical;
@@ -55,6 +56,7 @@ public class TestEditableClassDiagramTopNode extends AbstractEditableNodeTest {
* Test to manage component.
*/
@Test
+ @ExpectedDirectEditor(DEFAULT_DIRECT_EDITOR | EXTENDED_DIRECT_EDITOR)
public void testToManageComponent() {
testEdition(UMLElementTypes.Component_Shape);
}
@@ -63,6 +65,7 @@ public class TestEditableClassDiagramTopNode extends AbstractEditableNodeTest {
* Test to manage instance specification.
*/
@Test
+ @ExpectedDirectEditor(DEFAULT_DIRECT_EDITOR | EXTENDED_DIRECT_EDITOR)
public void testToManageInstanceSpecification() {
testEdition(UMLElementTypes.InstanceSpecification_Shape);
}
@@ -71,6 +74,7 @@ public class TestEditableClassDiagramTopNode extends AbstractEditableNodeTest {
* Test to manage signal.
*/
@Test
+ @ExpectedDirectEditor(DEFAULT_DIRECT_EDITOR | EXTENDED_DIRECT_EDITOR)
public void testToManageSignal() {
testEdition(UMLElementTypes.Signal_Shape);
}
@@ -79,6 +83,7 @@ public class TestEditableClassDiagramTopNode extends AbstractEditableNodeTest {
* Test to manage model.
*/
@Test
+ @ExpectedDirectEditor(DEFAULT_DIRECT_EDITOR | EXTENDED_DIRECT_EDITOR)
public void testToManageModel() {
testEdition(UMLElementTypes.Model_Shape);
}
@@ -87,6 +92,7 @@ public class TestEditableClassDiagramTopNode extends AbstractEditableNodeTest {
* Test to manage enumeration.
*/
@Test
+ @ExpectedDirectEditor(DEFAULT_DIRECT_EDITOR | EXTENDED_DIRECT_EDITOR)
public void testToManageEnumeration() {
testEdition(UMLElementTypes.Enumeration_Shape);
}
@@ -95,6 +101,7 @@ public class TestEditableClassDiagramTopNode extends AbstractEditableNodeTest {
* Test to manage i package.
*/
@Test
+ @ExpectedDirectEditor(DEFAULT_DIRECT_EDITOR | EXTENDED_DIRECT_EDITOR)
public void testToManageIPackage() {
testEdition(UMLElementTypes.Package_Shape);
}
@@ -103,6 +110,7 @@ public class TestEditableClassDiagramTopNode extends AbstractEditableNodeTest {
* Test to manage class.
*/
@Test
+ @ExpectedDirectEditor(DEFAULT_DIRECT_EDITOR | EXTENDED_DIRECT_EDITOR)
public void testToManageClass() {
testEdition(UMLElementTypes.Class_Shape);
}
@@ -111,6 +119,7 @@ public class TestEditableClassDiagramTopNode extends AbstractEditableNodeTest {
* Test to manage primitive type.
*/
@Test
+ @ExpectedDirectEditor(DEFAULT_DIRECT_EDITOR | EXTENDED_DIRECT_EDITOR)
public void testToManagePrimitiveType() {
testEdition(UMLElementTypes.PrimitiveType_Shape);
}
@@ -119,6 +128,7 @@ public class TestEditableClassDiagramTopNode extends AbstractEditableNodeTest {
* Test to manage data type.
*/
@Test
+ @ExpectedDirectEditor(DEFAULT_DIRECT_EDITOR | EXTENDED_DIRECT_EDITOR)
public void testToManageDataType() {
testEdition(UMLElementTypes.DataType_Shape);
}
@@ -141,33 +151,37 @@ public class TestEditableClassDiagramTopNode extends AbstractEditableNodeTest {
}
/**
- * Test to manage component.
+ * Test to manage Item.
*/
@Test
+ @ExpectedDirectEditor(DEFAULT_DIRECT_EDITOR | EXTENDED_DIRECT_EDITOR)
public void testToManageInformationItem() {
testEdition(UMLElementTypes.InformationItem_Shape);
}
/**
- * Test to manage component.
+ * Test to manage Interface.
*/
@Test
+ @ExpectedDirectEditor(DEFAULT_DIRECT_EDITOR | EXTENDED_DIRECT_EDITOR)
public void testToManageInterface() {
testEdition(UMLElementTypes.Interface_Shape);
}
/**
- * Test to manage component.
+ * Test to manage TimeObservation.
*/
@Test
+ @ExpectedDirectEditor(DEFAULT_DIRECT_EDITOR | EXTENDED_DIRECT_EDITOR)
public void testToManageTimeObservation() {
testEdition(UMLElementTypes.TimeObservation_Shape);
}
/**
- * Test to manage component.
+ * Test to manage DurationObservation.
*/
@Test
+ @ExpectedDirectEditor(DEFAULT_DIRECT_EDITOR | EXTENDED_DIRECT_EDITOR)
public void testToManageDurationObservation() {
testEdition(UMLElementTypes.DurationObservation_Shape);
}

Back to the top