Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorashatalin2008-07-16 13:20:04 -0400
committerashatalin2008-07-16 13:20:04 -0400
commitf877030048dc5c697029fe5dae20091982513fde (patch)
tree4cb4dcdb984e068a99ade1f11e077a06b576622e
parent34e569ce9de79989e68fcb56adce8680776821d1 (diff)
downloadorg.eclipse.gmf-tooling-f877030048dc5c697029fe5dae20091982513fde.tar.gz
org.eclipse.gmf-tooling-f877030048dc5c697029fe5dae20091982513fde.tar.xz
org.eclipse.gmf-tooling-f877030048dc5c697029fe5dae20091982513fde.zip
Additional assert added.
-rw-r--r--tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/rt/EditHelpersTest.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/rt/EditHelpersTest.java b/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/rt/EditHelpersTest.java
index bd1f925c5..957aba7a0 100644
--- a/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/rt/EditHelpersTest.java
+++ b/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/rt/EditHelpersTest.java
@@ -96,6 +96,7 @@ public class EditHelpersTest extends AbstractDiagramEditorTest {
}
public void testSingleEditHelperAdviceNode() {
+ assertTrue(getSetup().getGenModel().getNodeA().getElementType() instanceof MetamodelType);
Command command = getSetNewTopLeveNodeNameCommand(getSetup().getGenModel().getNodeA(), getSetup().getDomainModel().getNodeA().getNameAttr().getName());
Collection<IUndoableOperation> allMarkerCommands = getAllMarkerCommands(command);
Collection<IUndoableOperation> beforeCommands = getBeforeCommands(allMarkerCommands);
@@ -109,6 +110,7 @@ public class EditHelpersTest extends AbstractDiagramEditorTest {
}
public void testTwoEditHelperAdvicesNode() {
+ assertTrue(getSetup().getGenModel().getNodeB().getElementType() instanceof SpecializationType);
Command command = getSetNewTopLeveNodeNameCommand(getSetup().getGenModel().getNodeB(), getSetup().getDomainModel().getNodeB().getNameAttr().getName());
Collection<IUndoableOperation> allMarkerCommands = getAllMarkerCommands(command);
Collection<IUndoableOperation> beforeCommands = getBeforeCommands(allMarkerCommands);

Back to the top