Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorNicolas FAUVERGUE2016-01-14 07:35:45 -0500
committerGerrit Code Review @ Eclipse.org2016-01-19 08:52:02 -0500
commit0c319059d51e024d4d789ceb0a8b5f2441738ddd (patch)
tree5d05b6f93199453072349ba4e360792cc481b1e7 /tests
parent784bec8db326aad37949d58acce9221f1ef22e4a (diff)
downloadorg.eclipse.papyrus-0c319059d51e024d4d789ceb0a8b5f2441738ddd.tar.gz
org.eclipse.papyrus-0c319059d51e024d4d789ceb0a8b5f2441738ddd.tar.xz
org.eclipse.papyrus-0c319059d51e024d4d789ceb0a8b5f2441738ddd.zip
Bug 484185: [Table] EOperation must be managed in table
https://bugs.eclipse.org/bugs/show_bug.cgi?id=484185 Correction of "org.eclipse.papyrus.uml.nattable.generic.tests.bugs.AddElementsOnConnectedTableTest.testAddElements " which adding features and now operations. Change-Id: I6b450e691e4f384f163c30be9ff6e6d1b9d10a7c Signed-off-by: Nicolas FAUVERGUE <nicolas.fauvergue@all4tec.net>
Diffstat (limited to 'tests')
-rw-r--r--tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.generic.tests/src/org/eclipse/papyrus/uml/nattable/generic/tests/bugs/AddElementsOnConnectedTableTest.java24
1 files changed, 12 insertions, 12 deletions
diff --git a/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.generic.tests/src/org/eclipse/papyrus/uml/nattable/generic/tests/bugs/AddElementsOnConnectedTableTest.java b/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.generic.tests/src/org/eclipse/papyrus/uml/nattable/generic/tests/bugs/AddElementsOnConnectedTableTest.java
index 6509064d363..009ccd0c3c0 100644
--- a/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.generic.tests/src/org/eclipse/papyrus/uml/nattable/generic/tests/bugs/AddElementsOnConnectedTableTest.java
+++ b/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.generic.tests/src/org/eclipse/papyrus/uml/nattable/generic/tests/bugs/AddElementsOnConnectedTableTest.java
@@ -50,14 +50,14 @@ public class AddElementsOnConnectedTableTest extends AbstractPapyrusTest {
private static final String TABLE_NAME = "GenericTable0"; //$NON-NLS-1$
/**
- * The number of class features.
+ * The number of class features and operations.
*/
- private static final int NB_CLASS_FEATURES = 51;
+ private static final int NB_CLASS_FEATURES_AND_OPERATIONS = 166;
/**
- * The number of interface features.
+ * The number of interface features and operations.
*/
- private static final int NB_INTERFACE_FEATURES = 6;
+ private static final int NB_INTERFACE_FEATURES_AND_OPERATIONS = 9;
/**
* The number of empty axis (equals to 0).
@@ -131,7 +131,7 @@ public class AddElementsOnConnectedTableTest extends AbstractPapyrusTest {
rowElements = currentManager.getRowElementsList();
Assert.assertEquals("The rows must contain the created class", 1, rowElements.size()); //$NON-NLS-1$
columnElements = currentManager.getColumnElementsList();
- Assert.assertEquals("The columns must contain the class structural features", NB_CLASS_FEATURES, columnElements.size()); //$NON-NLS-1$
+ Assert.assertEquals("The columns must contain the class structural features", NB_CLASS_FEATURES_AND_OPERATIONS, columnElements.size()); //$NON-NLS-1$
// Undo the creation of the class
editingDomain.getCommandStack().undo();
@@ -151,7 +151,7 @@ public class AddElementsOnConnectedTableTest extends AbstractPapyrusTest {
rowElements = currentManager.getRowElementsList();
Assert.assertEquals("The rows must contain the created class", 1, rowElements.size()); //$NON-NLS-1$
columnElements = currentManager.getColumnElementsList();
- Assert.assertEquals("The columns must contain the class structural features", NB_CLASS_FEATURES, columnElements.size()); //$NON-NLS-1$
+ Assert.assertEquals("The columns must contain the class structural features", NB_CLASS_FEATURES_AND_OPERATIONS, columnElements.size()); //$NON-NLS-1$
// Create an other class
@@ -161,7 +161,7 @@ public class AddElementsOnConnectedTableTest extends AbstractPapyrusTest {
rowElements = currentManager.getRowElementsList();
Assert.assertEquals("The rows must contain the created class and the existing class", 2, rowElements.size()); //$NON-NLS-1$
columnElements = currentManager.getColumnElementsList();
- Assert.assertEquals("The columns must contain the class structural features (without doubloon)", NB_CLASS_FEATURES, columnElements.size()); //$NON-NLS-1$
+ Assert.assertEquals("The columns must contain the class structural features (without doubloon)", NB_CLASS_FEATURES_AND_OPERATIONS, columnElements.size()); //$NON-NLS-1$
// Undo the creation of the class
editingDomain.getCommandStack().undo();
@@ -171,7 +171,7 @@ public class AddElementsOnConnectedTableTest extends AbstractPapyrusTest {
rowElements = currentManager.getRowElementsList();
Assert.assertEquals("The rows must contain the existing class", 1, rowElements.size()); //$NON-NLS-1$
columnElements = currentManager.getColumnElementsList();
- Assert.assertEquals("The columns must contain the class structural features", NB_CLASS_FEATURES, columnElements.size()); //$NON-NLS-1$
+ Assert.assertEquals("The columns must contain the class structural features", NB_CLASS_FEATURES_AND_OPERATIONS, columnElements.size()); //$NON-NLS-1$
// Redo the creation of the class
editingDomain.getCommandStack().redo();
@@ -181,7 +181,7 @@ public class AddElementsOnConnectedTableTest extends AbstractPapyrusTest {
rowElements = currentManager.getRowElementsList();
Assert.assertEquals("The rows must contain the created class and the existing class", 2, rowElements.size()); //$NON-NLS-1$
columnElements = currentManager.getColumnElementsList();
- Assert.assertEquals("The columns must contain the class structural features (without doubloon)", NB_CLASS_FEATURES, columnElements.size()); //$NON-NLS-1$
+ Assert.assertEquals("The columns must contain the class structural features (without doubloon)", NB_CLASS_FEATURES_AND_OPERATIONS, columnElements.size()); //$NON-NLS-1$
// Create an interface
@@ -191,7 +191,7 @@ public class AddElementsOnConnectedTableTest extends AbstractPapyrusTest {
rowElements = currentManager.getRowElementsList();
Assert.assertEquals("The rows must contain the created interface and the existing classes", 3, rowElements.size()); //$NON-NLS-1$
columnElements = currentManager.getColumnElementsList();
- Assert.assertEquals("The columns must contain the class and interface structural features (without doubloon)", NB_CLASS_FEATURES + NB_INTERFACE_FEATURES, columnElements.size()); //$NON-NLS-1$
+ Assert.assertEquals("The columns must contain the class and interface structural features (without doubloon)", NB_CLASS_FEATURES_AND_OPERATIONS + NB_INTERFACE_FEATURES_AND_OPERATIONS, columnElements.size()); //$NON-NLS-1$
// Undo the creation of the class
editingDomain.getCommandStack().undo();
@@ -201,7 +201,7 @@ public class AddElementsOnConnectedTableTest extends AbstractPapyrusTest {
rowElements = currentManager.getRowElementsList();
Assert.assertEquals("The rows must contain the created class and the existing class", 2, rowElements.size()); //$NON-NLS-1$
columnElements = currentManager.getColumnElementsList();
- Assert.assertEquals("The columns must contain the class structural features (without doubloon)", NB_CLASS_FEATURES, columnElements.size()); //$NON-NLS-1$
+ Assert.assertEquals("The columns must contain the class structural features (without doubloon)", NB_CLASS_FEATURES_AND_OPERATIONS, columnElements.size()); //$NON-NLS-1$
// Redo the creation of the class
editingDomain.getCommandStack().redo();
@@ -211,7 +211,7 @@ public class AddElementsOnConnectedTableTest extends AbstractPapyrusTest {
rowElements = currentManager.getRowElementsList();
Assert.assertEquals("The rows must contain the created interface and the existing classes", 3, rowElements.size()); //$NON-NLS-1$
columnElements = currentManager.getColumnElementsList();
- Assert.assertEquals("The columns must contain the class and interface structural features (without doubloon)", NB_CLASS_FEATURES + NB_INTERFACE_FEATURES, columnElements.size()); //$NON-NLS-1$
+ Assert.assertEquals("The columns must contain the class and interface structural features (without doubloon)", NB_CLASS_FEATURES_AND_OPERATIONS + NB_INTERFACE_FEATURES_AND_OPERATIONS, columnElements.size()); //$NON-NLS-1$
}
/**

Back to the top