Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authoratikhomirov2006-02-08 00:17:12 +0000
committeratikhomirov2006-02-08 00:17:12 +0000
commit0d0c0b4846f3e783b11c5c9500dfac74101fc4da (patch)
tree08fe2091806d07890eedd544ba748ac184b144b8 /tests
parent494e574af7ed018deca3a51b0b1e6ccd7a9a5cee (diff)
downloadorg.eclipse.gmf-tooling-0d0c0b4846f3e783b11c5c9500dfac74101fc4da.tar.gz
org.eclipse.gmf-tooling-0d0c0b4846f3e783b11c5c9500dfac74101fc4da.tar.xz
org.eclipse.gmf-tooling-0d0c0b4846f3e783b11c5c9500dfac74101fc4da.zip
major refactoring of .gmfgen - new top-level entity introduced, erroneous domainMetaModel feature removed (was deprecated for a while)
moving towards support of domain models defined in different packages - each GenElement uses it's own genPackage.packageInterfaceName
Diffstat (limited to 'tests')
-rw-r--r--tests/org.eclipse.gmf.tests/models/library/library.gmfgen14
-rw-r--r--tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/gen/HandcodedImplTest.java2
-rw-r--r--tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/rt/AuditRulesTest.java2
-rw-r--r--tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/setup/DiaGenFileSetup.java4
-rw-r--r--tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/setup/DiaGenSetup.java11
-rw-r--r--tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/setup/GenProjectBaseSetup.java17
-rw-r--r--tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/setup/RTSetup.java4
-rw-r--r--tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/setup/SessionSetup.java2
-rw-r--r--tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/tr/GenModelTransformerTest.java16
9 files changed, 42 insertions, 30 deletions
diff --git a/tests/org.eclipse.gmf.tests/models/library/library.gmfgen b/tests/org.eclipse.gmf.tests/models/library/library.gmfgen
index d5fdf858e..7246c5522 100644
--- a/tests/org.eclipse.gmf.tests/models/library/library.gmfgen
+++ b/tests/org.eclipse.gmf.tests/models/library/library.gmfgen
@@ -1,10 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
-<gmfgen:GenDiagram xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:gmfgen="http://www.eclipse.org/gmf/2005/GenModel" visualID="79" editPartClassName="LibraryEditPart" itemSemanticEditPolicyClassName="LibraryItemSemanticEditPolicy" notationViewFactoryClassName="LibraryViewFactory" canonicalEditPolicyClassName="LibraryCanonicalEditPolicy">
+<gmfgen:GenEditorGenerator xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:gmfgen="http://www.eclipse.org/gmf/2005/GenModel">
+ <domainGenModel href="library.genmodel#/"/>
+<diagram visualID="79" editPartClassName="LibraryEditPart" itemSemanticEditPolicyClassName="LibraryItemSemanticEditPolicy" notationViewFactoryClassName="LibraryViewFactory" canonicalEditPolicyClassName="LibraryCanonicalEditPolicy">
<diagramRunTimeClass href="../../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Diagram"/>
<viewmap xsi:type="gmfgen:FigureViewmap" figureQualifiedClassName="org.eclipse.draw2d.FreeformLayer"/>
- <domainMetaModel href="library.genmodel#//library"/>
<domainDiagramElement href="library.genmodel#//library/Library"/>
- <childNodes visualID="2001" editPartClassName="ReviewEditPart" itemSemanticEditPolicyClassName="ReviewItemSemanticEditPolicy" notationViewFactoryClassName="ReviewViewFactory" canonicalEditPolicyClassName="ReviewCanonicalEditPolicy" graphicalNodeEditPolicyClassName="ReviewGraphicalNodeEditPolicy" containers="//@compartments.0">
+ <childNodes visualID="2001" editPartClassName="ReviewEditPart" itemSemanticEditPolicyClassName="ReviewItemSemanticEditPolicy" notationViewFactoryClassName="ReviewViewFactory" canonicalEditPolicyClassName="ReviewCanonicalEditPolicy" graphicalNodeEditPolicyClassName="ReviewGraphicalNodeEditPolicy" containers="//@diagram/@compartments.0">
<diagramRunTimeClass href="../../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
<viewmap xsi:type="gmfgen:InnerClassViewmap" className="LabelFigure" classBody="&#xD;&#xA;&#xD;&#xA;/**&#xD;&#xA; * @generated&#xD;&#xA; */&#xD;&#xA;public class LabelFigure extends org.eclipse.draw2d.Label {&#xD;&#xA;&#xD;&#xA;&#x9;/**&#xD;&#xA;&#x9; * @generated&#xD;&#xA;&#x9; */&#xD;&#xA;&#x9;public LabelFigure() {&#xD;&#xA;&#x9;&#x9;super();&#xD;&#xA;&#x9;}&#xD;&#xA;&#xD;&#xA;}&#xD;&#xA;"/>
<modelFacet>
@@ -36,7 +37,7 @@
</modelFacet>
</labels>
</topLevelNodes>
- <topLevelNodes visualID="1002" editPartClassName="BookEditPart" itemSemanticEditPolicyClassName="BookItemSemanticEditPolicy" notationViewFactoryClassName="BookViewFactory" canonicalEditPolicyClassName="BookCanonicalEditPolicy" compartments="//@compartments.0" graphicalNodeEditPolicyClassName="BookGraphicalNodeEditPolicy">
+ <topLevelNodes visualID="1002" editPartClassName="BookEditPart" itemSemanticEditPolicyClassName="BookItemSemanticEditPolicy" notationViewFactoryClassName="BookViewFactory" canonicalEditPolicyClassName="BookCanonicalEditPolicy" compartments="//@diagram/@compartments.0" graphicalNodeEditPolicyClassName="BookGraphicalNodeEditPolicy">
<diagramRunTimeClass href="../../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
<viewmap xsi:type="gmfgen:InnerClassViewmap" className="NodeRectangle" classBody="&#xD;&#xA;/**&#xD;&#xA; * @generated&#xD;&#xA; */&#xD;&#xA;public class NodeRectangle extends org.eclipse.draw2d.RectangleFigure {&#xD;&#xA;&#xD;&#xA;&#x9;/**&#xD;&#xA;&#x9; * @generated&#xD;&#xA;&#x9; */&#xD;&#xA;&#x9;public NodeRectangle() {&#xD;&#xA;&#xD;&#xA;&#x9;}&#xD;&#xA;&#xD;&#xA;}"/>
<modelFacet>
@@ -76,9 +77,10 @@
<metaFeature href="library.genmodel#//library/Book/author"/>
</modelFacet>
</links>
- <compartments visualID="5001" editPartClassName="Book_CompartmentEditPart" itemSemanticEditPolicyClassName="Book_CompartmentItemSemanticEditPolicy" notationViewFactoryClassName="Book_CompartmentViewFactory" childNodes="//@childNodes.0" canonicalEditPolicyClassName="Book_CompartmentCanonicalEditPolicy" title="Compartment" node="//@topLevelNodes.1">
+ <compartments visualID="5001" editPartClassName="Book_CompartmentEditPart" itemSemanticEditPolicyClassName="Book_CompartmentItemSemanticEditPolicy" notationViewFactoryClassName="Book_CompartmentViewFactory" childNodes="//@diagram/@childNodes.0" canonicalEditPolicyClassName="Book_CompartmentCanonicalEditPolicy" title="Compartment" node="//@topLevelNodes.1">
<diagramRunTimeClass href="../../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
<viewmap xsi:type="gmfgen:FigureViewmap" figureQualifiedClassName="XXX"/>
</compartments>
+</diagram>
<plugin name="library Plugin"/>
-</gmfgen:GenDiagram>
+</gmfgen:GenEditorGenerator> \ No newline at end of file
diff --git a/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/gen/HandcodedImplTest.java b/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/gen/HandcodedImplTest.java
index 39ebbc8d2..a303b6d88 100644
--- a/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/gen/HandcodedImplTest.java
+++ b/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/gen/HandcodedImplTest.java
@@ -161,7 +161,7 @@ public class HandcodedImplTest extends ConfiguredTestCase {
} else {
state.add("Palette:Factory");
}
- GenPlugin genPlugin = genDiagram.getPlugin();
+ GenPlugin genPlugin = genDiagram.getEditorGen().getPlugin();
checkClassName(state, "GenPlugin:Activator", genPlugin.getActivatorClassName(), genPlugin.getActivatorQualifiedClassName());
for (GenCommonBaseIterator entities = new GenCommonBaseIterator(genDiagram); entities.hasNext();) {
diff --git a/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/rt/AuditRulesTest.java b/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/rt/AuditRulesTest.java
index 08b77b8ae..42372c5b2 100644
--- a/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/rt/AuditRulesTest.java
+++ b/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/rt/AuditRulesTest.java
@@ -65,7 +65,7 @@ public class AuditRulesTest extends RuntimeDiagramTestBase {
this.audits = mapping.getAudits();
assertNotNull("Requires mapping with audit rules", audits); //$NON-NLS-1$
final GenDiagram genDiagram = getSetup().getGenModel().getGenDiagram();
- auditAssert = new AuditAssert(genDiagram.getPlugin().getID(), genDiagram.getDomainMetaModel());
+ auditAssert = new AuditAssert(genDiagram.getEditorGen().getPlugin().getID(), genDiagram.getDomainDiagramElement().getGenPackage());
}
public void testAuditConstraints() throws Exception {
diff --git a/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/setup/DiaGenFileSetup.java b/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/setup/DiaGenFileSetup.java
index f1c4fa289..efd4e0558 100644
--- a/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/setup/DiaGenFileSetup.java
+++ b/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/setup/DiaGenFileSetup.java
@@ -19,6 +19,7 @@ import org.eclipse.emf.ecore.resource.ResourceSet;
import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl;
import org.eclipse.gmf.codegen.gmfgen.FeatureModelFacet;
import org.eclipse.gmf.codegen.gmfgen.GenDiagram;
+import org.eclipse.gmf.codegen.gmfgen.GenEditorGenerator;
import org.eclipse.gmf.codegen.gmfgen.GenLink;
import org.eclipse.gmf.codegen.gmfgen.GenNode;
import org.eclipse.gmf.codegen.gmfgen.TypeModelFacet;
@@ -41,7 +42,8 @@ public class DiaGenFileSetup implements DiaGenSource {
public DiaGenFileSetup init(URI sourceURI) {
ResourceSet srcResSet = new ResourceSetImpl();
Resource srcRes = srcResSet.getResource(sourceURI, true);
- myGenDiagram = (GenDiagram) srcRes.getContents().get(0);
+ GenEditorGenerator editorGen = (GenEditorGenerator) srcRes.getContents().get(0);
+ myGenDiagram = editorGen.getDiagram();
// FIXME somehow select particular link - protected find()
for (Iterator it = myGenDiagram.getLinks().iterator(); it.hasNext();) {
GenLink next = (GenLink) it.next();
diff --git a/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/setup/DiaGenSetup.java b/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/setup/DiaGenSetup.java
index 8961890a7..d7152c4fe 100644
--- a/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/setup/DiaGenSetup.java
+++ b/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/setup/DiaGenSetup.java
@@ -30,6 +30,7 @@ import org.eclipse.gmf.codegen.gmfgen.FeatureLabelModelFacet;
import org.eclipse.gmf.codegen.gmfgen.FigureViewmap;
import org.eclipse.gmf.codegen.gmfgen.GMFGenFactory;
import org.eclipse.gmf.codegen.gmfgen.GenDiagram;
+import org.eclipse.gmf.codegen.gmfgen.GenEditorGenerator;
import org.eclipse.gmf.codegen.gmfgen.GenLink;
import org.eclipse.gmf.codegen.gmfgen.GenNode;
import org.eclipse.gmf.codegen.gmfgen.GenNodeLabel;
@@ -65,13 +66,15 @@ public class DiaGenSetup implements DiaGenSource {
assert runtimeModel != null;
final GenModelMatcher gmm = new GenModelMatcher(Utils.createGenModel(domainSource.getModel(), pluginID));
myGenDiagram = GMFGenFactory.eINSTANCE.createGenDiagram();
+ GenEditorGenerator genBurden = GMFGenFactory.eINSTANCE.createGenEditorGenerator();
myGenDiagram.setDomainDiagramElement(gmm.findGenClass(domainSource.getDiagramElement()));
- myGenDiagram.setDomainMetaModel(gmm.findGenPackage(domainSource.getModel()));
+ genBurden.setDomainGenModel(myGenDiagram.getDomainDiagramElement().getGenModel());
myGenDiagram.setDiagramRunTimeClass(Utils.findGenClass(runtimeModel, NotationPackage.eINSTANCE.getDiagram()));
myGenDiagram.setPalette(createPalette());
myGenDiagram.setViewmap(createDiagramViewmap());
myGenDiagram.setVisualID(99);
- myGenDiagram.setPlugin(GMFGenFactory.eINSTANCE.createGenPlugin());
+ genBurden.setDiagram(myGenDiagram);
+ genBurden.setPlugin(GMFGenFactory.eINSTANCE.createGenPlugin());
myNodeA = GMFGenFactory.eINSTANCE.createGenTopLevelNode();
myNodeA.setDiagramRunTimeClass(Utils.findGenClass(runtimeModel, NotationPackage.eINSTANCE.getNode()));
@@ -151,7 +154,7 @@ public class DiaGenSetup implements DiaGenSource {
Assert.assertTrue("Need (fake) genModel for transformation to work", gmaStatus.isOK());
t.setEMFGenModel(gma.model());
t.transform(mapSource.getMapping());
- myGenDiagram = t.getResult();
+ myGenDiagram = t.getResult().getDiagram();
uniquenessDispenser.forget();
NamingStrategy epns = namingMediator.getEditPart();
final String aNodeEPName = epns.get(mapSource.getNodeA());
@@ -184,7 +187,7 @@ public class DiaGenSetup implements DiaGenSource {
}
private void confineInResource() {
- new ResourceImpl(URI.createURI("uri://org.eclipse.gmf/tests/DiaGenSetup")).getContents().add(myGenDiagram);
+ new ResourceImpl(URI.createURI("uri://org.eclipse.gmf/tests/DiaGenSetup")).getContents().add(myGenDiagram.getEditorGen());
}
public final GenDiagram getGenDiagram() {
diff --git a/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/setup/GenProjectBaseSetup.java b/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/setup/GenProjectBaseSetup.java
index 4ac694e9d..ff764a5d3 100644
--- a/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/setup/GenProjectBaseSetup.java
+++ b/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/setup/GenProjectBaseSetup.java
@@ -24,6 +24,7 @@ import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.NullProgressMonitor;
+import org.eclipse.emf.codegen.ecore.genmodel.GenModel;
import org.eclipse.gmf.codegen.gmfgen.GenDiagram;
import org.eclipse.gmf.codegen.util.Generator;
import org.eclipse.gmf.tests.CompileUtil;
@@ -43,18 +44,20 @@ public class GenProjectBaseSetup {
projectsToInit.clear(); // just in case
compileUtil = new CompileUtil();
final GenDiagram d = diaGenSource.getGenDiagram();
- d.getEMFGenModel().setCanGenerate(true);
- d.getEMFGenModel().generate(new NullProgressMonitor());
- projectsToInit.add(d.getEMFGenModel().getModelPluginID());
- d.getEMFGenModel().generateEdit(new NullProgressMonitor());
- projectsToInit.add(d.getEMFGenModel().getEditPluginID());
+ final GenModel domainGenModel = d.getEditorGen().getDomainGenModel();
+ domainGenModel.setCanGenerate(true);
+ domainGenModel.generate(new NullProgressMonitor());
+ projectsToInit.add(domainGenModel.getModelPluginID());
+ domainGenModel.generateEdit(new NullProgressMonitor());
+ projectsToInit.add(domainGenModel.getEditPluginID());
Generator generator = new Generator(d);
generator.run();
hookGeneratorStatus(generator.getRunStatus());
- rtWorkspace.updateClassPath(ResourcesPlugin.getWorkspace().getRoot().getProject(d.getPlugin().getID()));
+ final String gmfEditorId = d.getEditorGen().getPlugin().getID();
+ rtWorkspace.updateClassPath(ResourcesPlugin.getWorkspace().getRoot().getProject(gmfEditorId));
- projectsToInit.add(d.getPlugin().getID());
+ projectsToInit.add(gmfEditorId);
for (Iterator it = projectsToInit.iterator(); it.hasNext();) {
String pluginID = (String) it.next();
IProject p = ResourcesPlugin.getWorkspace().getRoot().getProject(pluginID);
diff --git a/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/setup/RTSetup.java b/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/setup/RTSetup.java
index 2ef3a29c5..45a4c1e0b 100644
--- a/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/setup/RTSetup.java
+++ b/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/setup/RTSetup.java
@@ -89,7 +89,7 @@ public class RTSetup implements RTSource {
b.setHeight(0);
myNode.setLayoutConstraint(b);
- myCanvas.setType(genSource.getGenDiagram().getEMFGenModel().getModelName());
+ myCanvas.setType(genSource.getGenDiagram().getEditorGen().getDomainGenModel().getModelName());
affixVisualID(myCanvas, genSource.getGenDiagram());
affixVisualID(myNode, genSource.getNodeA());
@@ -122,7 +122,7 @@ public class RTSetup implements RTSource {
private void affixVisualID(View view, GenCommonBase genBase) {
EAnnotation annotation = EcoreFactory.eINSTANCE.createEAnnotation();
annotation.setSource("ViewIdentifier");
- annotation.getDetails().put("modelID", String.valueOf(genBase.getDiagram().getEMFGenModel().getModelName()));
+ annotation.getDetails().put("modelID", String.valueOf(genBase.getDiagram().getEditorGen().getDomainGenModel().getModelName()));
annotation.getDetails().put("visualID", String.valueOf(genBase.getVisualID()));
view.getEAnnotations().add(annotation);
}
diff --git a/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/setup/SessionSetup.java b/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/setup/SessionSetup.java
index 6ebcc1c79..5bde08f6c 100644
--- a/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/setup/SessionSetup.java
+++ b/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/setup/SessionSetup.java
@@ -115,7 +115,7 @@ public class SessionSetup implements TestConfiguration {
}
public void cleanup() throws Exception {
- System.err.println("SessionSetup:uses:" + myUses);
+ System.err.println(getClass().getSimpleName() + ":uses:" + myUses);
if (myProject != null) {
myProject.uninstall();
}
diff --git a/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/tr/GenModelTransformerTest.java b/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/tr/GenModelTransformerTest.java
index 03fca30c7..e56a4898b 100644
--- a/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/tr/GenModelTransformerTest.java
+++ b/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/tr/GenModelTransformerTest.java
@@ -17,7 +17,7 @@ import org.eclipse.emf.common.util.EList;
import org.eclipse.gmf.bridge.genmodel.DiagramGenModelTransformer;
import org.eclipse.gmf.bridge.genmodel.DiagramRunTimeModelHelper;
import org.eclipse.gmf.codegen.gmfgen.GenCommonBase;
-import org.eclipse.gmf.codegen.gmfgen.GenDiagram;
+import org.eclipse.gmf.codegen.gmfgen.GenEditorGenerator;
import org.eclipse.gmf.codegen.gmfgen.GenLink;
import org.eclipse.gmf.codegen.gmfgen.GenNode;
import org.eclipse.gmf.codegen.gmfgen.LinkEntry;
@@ -35,7 +35,7 @@ import org.eclipse.gmf.tests.Utils;
public abstract class GenModelTransformerTest extends AbstractMappingTransformerTest {
private NamingStrategy myNamingStrategy;
- private GenDiagram transfromationResult;
+ private GenEditorGenerator transfromationResult;
public GenModelTransformerTest(String name) {
super(name);
@@ -57,21 +57,23 @@ public abstract class GenModelTransformerTest extends AbstractMappingTransformer
}
public void testGenModelTransform() {
- assertNotNull("GenDiagram is expected as result of mapping transformation", transfromationResult);
- assertNotNull("Diagram filename extension not set", transfromationResult.getDiagramFileExtension());
+ assertNotNull("GenEditorGenerator is expected as result of mapping transformation", transfromationResult);
+ assertNotNull("GenDiagram is expected to be set...", transfromationResult.getDiagram());
+ assertNotNull("... as well as GenPlugin is expected to be set", transfromationResult.getPlugin());
+ assertNotNull("Diagram filename extension not set", transfromationResult.getDiagram().getDiagramFileExtension());
// FIXME add more
- GenNode genNode = (GenNode) findGenBaseElement(transfromationResult.getTopLevelNodes(), getEditPartNameStrategy().get(getNodeMapping()));
+ GenNode genNode = (GenNode) findGenBaseElement(transfromationResult.getDiagram().getTopLevelNodes(), getEditPartNameStrategy().get(getNodeMapping()));
assertNotNull("Result model contains no GenNode for nodeMapping", genNode);
// FIXME add more
- GenLink genLink = (GenLink) findGenBaseElement(transfromationResult.getLinks(), getEditPartNameStrategy().get(getLinkMapping()));
+ GenLink genLink = (GenLink) findGenBaseElement(transfromationResult.getDiagram().getLinks(), getEditPartNameStrategy().get(getLinkMapping()));
assertNotNull("Result model contains no GenLink for linkMapping", genLink);
// FIXME add more
}
public void testCreatedPalette() {
- Palette palette = transfromationResult.getPalette();
+ Palette palette = transfromationResult.getDiagram().getPalette();
for (Iterator itN = getMapping().getNodes().iterator(); itN.hasNext();) {
NodeMapping nodeMapping = (NodeMapping) (itN.next());
assertEquals(nodeMapping.getTool() != null ? 1 : 0, countUses(nodeMapping, palette));

Back to the top