Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormtaal2009-02-13 17:35:50 +0000
committermtaal2009-02-13 17:35:50 +0000
commitacb745cf6c921d53e85aaf82dc8214c6b774d62d (patch)
tree0bce6d4914f5efa98637d09832b9bff9f06f3b6b /tests/org.eclipse.emf.teneo.eclipselink.examples.library.orm.tests
parenta5624649754581e7e1554b2f98b61a86e767c9fe (diff)
downloadorg.eclipse.emf.teneo-acb745cf6c921d53e85aaf82dc8214c6b774d62d.tar.gz
org.eclipse.emf.teneo-acb745cf6c921d53e85aaf82dc8214c6b774d62d.tar.xz
org.eclipse.emf.teneo-acb745cf6c921d53e85aaf82dc8214c6b774d62d.zip
Turned on ddl-generation in the persistence.xml
Set dependency from org.eclipse.emf.teneo.eclipselink.examples.library to the org.apache.derby to solve issue that EL could not find the derby driver class Changed the LibraryXMIPersistenceTest test to use a file location which works for linux (works also on the build server)
Diffstat (limited to 'tests/org.eclipse.emf.teneo.eclipselink.examples.library.orm.tests')
-rw-r--r--tests/org.eclipse.emf.teneo.eclipselink.examples.library.orm.tests/src/org/eclipse/emf/teneo/eclipselink/examples/library/orm/tests/LibraryXMIPersistenceTest.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/org.eclipse.emf.teneo.eclipselink.examples.library.orm.tests/src/org/eclipse/emf/teneo/eclipselink/examples/library/orm/tests/LibraryXMIPersistenceTest.java b/tests/org.eclipse.emf.teneo.eclipselink.examples.library.orm.tests/src/org/eclipse/emf/teneo/eclipselink/examples/library/orm/tests/LibraryXMIPersistenceTest.java
index 01d5a575e..34c61bebe 100644
--- a/tests/org.eclipse.emf.teneo.eclipselink.examples.library.orm.tests/src/org/eclipse/emf/teneo/eclipselink/examples/library/orm/tests/LibraryXMIPersistenceTest.java
+++ b/tests/org.eclipse.emf.teneo.eclipselink.examples.library.orm.tests/src/org/eclipse/emf/teneo/eclipselink/examples/library/orm/tests/LibraryXMIPersistenceTest.java
@@ -23,6 +23,8 @@ import org.eclipse.emf.teneo.eclipselink.examples.library.Writer;
public class LibraryXMIPersistenceTest extends LibraryJPATest {
+ private static final String TEMP_FILE = "file:///tmp/temp.library";
+
public LibraryXMIPersistenceTest(String name) {
super(name);
}
@@ -56,7 +58,7 @@ public class LibraryXMIPersistenceTest extends LibraryJPATest {
library.getBooks().put(book.getTitle(), book);
library.getWriters().add(writer);
- saveToXMIFile(library, "file://c:/temp/LibraryXMIPersistenceTestBefore.library");
+ saveToXMIFile(library, TEMP_FILE);
commitTransaction();
// verify
@@ -82,7 +84,7 @@ public class LibraryXMIPersistenceTest extends LibraryJPATest {
// Start the writing to XMI
- saveToXMIFile(actualLibrary, "file://c:/temp/LibraryXMIPersistenceTestAfter.library");
+ saveToXMIFile(actualLibrary, TEMP_FILE);
}

Back to the top