Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorvlorenzo2014-02-05 10:31:45 +0000
committervlorenzo2014-02-05 10:31:45 +0000
commit820b57897582e51aed3ebbe4bf350e6f0602b688 (patch)
tree3bf4c1398f4229cdba9120aa4438ae152c94ca40 /tests
parent1b2ce2f96bd08c8371407c2821fd1100a5da9045 (diff)
downloadorg.eclipse.papyrus-820b57897582e51aed3ebbe4bf350e6f0602b688.tar.gz
org.eclipse.papyrus-820b57897582e51aed3ebbe4bf350e6f0602b688.tar.xz
org.eclipse.papyrus-820b57897582e51aed3ebbe4bf350e6f0602b688.zip
Fix 2 bugs found thanl tests :
- Fix the papyrus class EditorContextSynchronizerAxisManager - Fix the JUnit test testCreationAndDestructionOnRequirement
Diffstat (limited to 'tests')
-rw-r--r--tests/junit/plugins/sysml/nattable/org.eclipse.papyrus.sysml.nattable.requirement.tests/src/org/eclipse/papyrus/sysml/nattable/requirement/tests/tests/TableCreationInSysMLModelTest.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/junit/plugins/sysml/nattable/org.eclipse.papyrus.sysml.nattable.requirement.tests/src/org/eclipse/papyrus/sysml/nattable/requirement/tests/tests/TableCreationInSysMLModelTest.java b/tests/junit/plugins/sysml/nattable/org.eclipse.papyrus.sysml.nattable.requirement.tests/src/org/eclipse/papyrus/sysml/nattable/requirement/tests/tests/TableCreationInSysMLModelTest.java
index f19b501ac65..a613a43cc68 100644
--- a/tests/junit/plugins/sysml/nattable/org.eclipse.papyrus.sysml.nattable.requirement.tests/src/org/eclipse/papyrus/sysml/nattable/requirement/tests/tests/TableCreationInSysMLModelTest.java
+++ b/tests/junit/plugins/sysml/nattable/org.eclipse.papyrus.sysml.nattable.requirement.tests/src/org/eclipse/papyrus/sysml/nattable/requirement/tests/tests/TableCreationInSysMLModelTest.java
@@ -270,7 +270,8 @@ public class TableCreationInSysMLModelTest {
Assert.assertTrue(creationCommand.canExecute());
domain.getCommandStack().execute(new GMFtoEMFCommandWrapper(creationCommand));
- NamedElement requirement = TableCreationInSysMLModelTest.requirement1.getMember("Requirement1"); //$NON-NLS-1$
+ final NamedElement createdElement = (NamedElement)request.getNewElement();
+ NamedElement requirement = TableCreationInSysMLModelTest.requirement1.getMember(createdElement.getName()); //$NON-NLS-1$
Assert.assertNotNull(requirement);
nestedRequirement3 = (Class)requirement;
@@ -293,7 +294,7 @@ public class TableCreationInSysMLModelTest {
Assert.assertTrue(destroyCommand.canExecute());
domain.getCommandStack().execute(new GMFtoEMFCommandWrapper(destroyCommand));
- requirement = TableCreationInSysMLModelTest.requirement1.getMember("Requirement1"); //$NON-NLS-1$
+ requirement = TableCreationInSysMLModelTest.requirement1.getMember(createdElement.getName()); //$NON-NLS-1$
Assert.assertNull(requirement);
nestedRequirement3 = (Class)requirement;

Back to the top