summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbkolb2007-10-12 10:17:47 (EDT)
committerbkolb2007-10-12 10:17:47 (EDT)
commita8a6b9e3aab401c5ac592c67cddce1e15a663c97 (patch)
tree2910031ca860a38ea2d00dd5073f76eda7118de3
parente4688af7027156b2dbec7d2037ce6d2e4e9856c2 (diff)
downloadorg.eclipse.mwe-a8a6b9e3aab401c5ac592c67cddce1e15a663c97.zip
org.eclipse.mwe-a8a6b9e3aab401c5ac592c67cddce1e15a663c97.tar.gz
org.eclipse.mwe-a8a6b9e3aab401c5ac592c67cddce1e15a663c97.tar.bz2
fixed test in standalone env
-rw-r--r--tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/tests/util/ReaderTest.java2
-rw-r--r--tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/tests/util/WriterTest.java2
-rw-r--r--tests/org.eclipse.emf.mwe.tests/src/test.ecore27
-rw-r--r--tests/org.eclipse.emf.mwe.tests/testmodel.xmi4
4 files changed, 33 insertions, 2 deletions
diff --git a/tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/tests/util/ReaderTest.java b/tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/tests/util/ReaderTest.java
index 3e24f68..8229370 100644
--- a/tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/tests/util/ReaderTest.java
+++ b/tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/tests/util/ReaderTest.java
@@ -17,7 +17,7 @@ public class ReaderTest extends TestCase {
Reader r = new Reader();
r.setFirstElementOnly(true);
r.setModelSlot("x");
- r.setUri("platform:/resource/org.openarchitectureware.core.emftools.tests/testmodel.xmi");
+ r.setUri("platform:/resource/org.eclipse.emf.mwe.tests/testmodel.xmi");
new StandaloneSetup().setPlatformUri(new File("..").getAbsolutePath());
WorkflowContext ctx = new WorkflowContextDefaultImpl();
diff --git a/tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/tests/util/WriterTest.java b/tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/tests/util/WriterTest.java
index 570987d..5931b77 100644
--- a/tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/tests/util/WriterTest.java
+++ b/tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/tests/util/WriterTest.java
@@ -20,7 +20,7 @@ import org.eclipse.emf.mwe.utils.Writer;
public class WriterTest extends TestCase {
private String relative = "testmodel.ecore";
- private String tempfile = "platform:/resource/org.openarchitectureware.core.emftools.tests/"+relative;
+ private String tempfile = "platform:/resource/org.eclipse.emf.mwe.tests/"+relative;
diff --git a/tests/org.eclipse.emf.mwe.tests/src/test.ecore b/tests/org.eclipse.emf.mwe.tests/src/test.ecore
new file mode 100644
index 0000000..45a8df1
--- /dev/null
+++ b/tests/org.eclipse.emf.mwe.tests/src/test.ecore
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ecore:EPackage xmi:version="2.0"
+ xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="test"
+ nsURI="http://www.openarchitectureware.org/mm/test" nsPrefix="test">
+ <eClassifiers xsi:type="ecore:EClass" name="AClass" eSuperTypes="#//nested/BaseType">
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="enum" eType="#//MyEnum"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="refToGenModel" eType="ecore:EClass http://www.eclipse.org/emf/2002/GenModel#//GenParameter"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="Action" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="anOtherAction" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EEnum" name="MyEnum">
+ <eLiterals name="ONE"/>
+ <eLiterals name="TWO" value="1"/>
+ </eClassifiers>
+ <eSubpackages name="nested" nsURI="http://www.openarchitectureware.org/mm/test/nested"
+ nsPrefix="nested">
+ <eClassifiers xsi:type="ecore:EClass" name="BaseType">
+ <eStructuralFeatures xsi:type="ecore:EReference" name="container" eType="#//nested/BaseType"
+ eOpposite="#//nested/BaseType/children"/>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="children" upperBound="-1"
+ eType="#//nested/BaseType" containment="true" eOpposite="#//nested/BaseType/container"/>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="stuff" eType="ecore:EClass ref/referee.ecore#//Stuff"/>
+ </eClassifiers>
+ </eSubpackages>
+</ecore:EPackage>
diff --git a/tests/org.eclipse.emf.mwe.tests/testmodel.xmi b/tests/org.eclipse.emf.mwe.tests/testmodel.xmi
new file mode 100644
index 0000000..3e810f1
--- /dev/null
+++ b/tests/org.eclipse.emf.mwe.tests/testmodel.xmi
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="ASCII"?>
+<nested:BaseType xmi:version="2.0"
+ xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:nested="http://www.openarchitectureware.org/mm/test/nested" xsi:schemaLocation="http://www.openarchitectureware.org/mm/test/nested src/test.ecore#//nested"/>