summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbkolb2007-10-19 11:27:33 (EDT)
committerbkolb2007-10-19 11:27:33 (EDT)
commitf27301bc8c1773860444119bed9792fe696e2b88 (patch)
tree154ba2bb9ed034c0993eae83b65416d3a328ab66
parentcacba24e012e040545c5f51ec4897775f0a174e5 (diff)
downloadorg.eclipse.mwe-f27301bc8c1773860444119bed9792fe696e2b88.zip
org.eclipse.mwe-f27301bc8c1773860444119bed9792fe696e2b88.tar.gz
org.eclipse.mwe-f27301bc8c1773860444119bed9792fe696e2b88.tar.bz2
added tests for reader and writer
-rw-r--r--tests/org.eclipse.emf.mwe.tests/build.properties3
-rw-r--r--tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/tests/util/AllTests.java4
-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
4 files changed, 6 insertions, 5 deletions
diff --git a/tests/org.eclipse.emf.mwe.tests/build.properties b/tests/org.eclipse.emf.mwe.tests/build.properties
index 50ef82f..6a89dee 100644
--- a/tests/org.eclipse.emf.mwe.tests/build.properties
+++ b/tests/org.eclipse.emf.mwe.tests/build.properties
@@ -11,7 +11,8 @@ bin.includes = plugin.xml,\
about.mappings,\
about.ini,\
about.html,\
- test.xml
+ test.xml,\
+ testmodel.xmi
src.includes = about.html,\
resources/,\
test.xml,\
diff --git a/tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/tests/util/AllTests.java b/tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/tests/util/AllTests.java
index bd9d32d..613dc92 100644
--- a/tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/tests/util/AllTests.java
+++ b/tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/tests/util/AllTests.java
@@ -10,8 +10,8 @@ public class AllTests {
"Test for org.eclipse.emf.mwe.tests.util");
//$JUnit-BEGIN$
suite.addTestSuite(ResourceLoaderFactoryTest.class);
-// suite.addTestSuite(ReaderTest.class);
-// suite.addTestSuite(WriterTest.class);
+ suite.addTestSuite(ReaderTest.class);
+ suite.addTestSuite(WriterTest.class);
//$JUnit-END$
return suite;
}
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 8229370..3d03bf6 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.eclipse.emf.mwe.tests/testmodel.xmi");
+ r.setUri("platform:/plugin/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 5931b77..dce2ead 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.eclipse.emf.mwe.tests/"+relative;
+ private String tempfile = "file:/"+System.getProperty("java.io.tmpdir") +"/"+relative;