diff options
author | Martin Taal | 2012-05-18 16:02:12 +0000 |
---|---|---|
committer | Martin Taal | 2012-05-18 16:02:12 +0000 |
commit | 0af5fd778ecb05b024212d59053d2b84f5e9d7aa (patch) | |
tree | 5066a60e54e5b88b9c88f4a7546a0ffe206977a3 /tests | |
parent | 7c538772ac49d40f87ad022c5cb9c35224fbcc76 (diff) | |
download | org.eclipse.emf.teneo-0af5fd778ecb05b024212d59053d2b84f5e9d7aa.tar.gz org.eclipse.emf.teneo-0af5fd778ecb05b024212d59053d2b84f5e9d7aa.tar.xz org.eclipse.emf.teneo-0af5fd778ecb05b024212d59053d2b84f5e9d7aa.zip |
Updated testcases for Hibernate 4.0
Diffstat (limited to 'tests')
4 files changed, 6 insertions, 2 deletions
diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/AllTests.launch b/tests/org.eclipse.emf.teneo.hibernate.test/AllTests.launch index 2aa3c9e31..15e9594c0 100755 --- a/tests/org.eclipse.emf.teneo.hibernate.test/AllTests.launch +++ b/tests/org.eclipse.emf.teneo.hibernate.test/AllTests.launch @@ -13,5 +13,5 @@ <stringAttribute key="org.eclipse.jdt.junit.TEST_KIND" value="org.eclipse.jdt.junit.loader.junit3"/> <stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.eclipse.emf.teneo.hibernate.test.AllTests"/> <stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="org.eclipse.emf.teneo.hibernate.test"/> -<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Xmx756m"/> +<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Xmx1000m"/> </launchConfiguration> diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/META-INF/MANIFEST.MF b/tests/org.eclipse.emf.teneo.hibernate.test/META-INF/MANIFEST.MF index 26895a072..8a9c9a9cd 100755 --- a/tests/org.eclipse.emf.teneo.hibernate.test/META-INF/MANIFEST.MF +++ b/tests/org.eclipse.emf.teneo.hibernate.test/META-INF/MANIFEST.MF @@ -37,4 +37,5 @@ Import-Package: com.mysql.jdbc;version="[5.1.0,6.0.0)";resolution:=optional, org.hibernate.mapping;version="[4.0.0,5.0.0)";resolution:=optional, org.hibernate.proxy;version="[4.0.0,5.0.0)";resolution:=optional, org.hibernate.type;version="[4.0.0,5.0.0)";resolution:=optional, + org.hibernate.cache.internal;version="[4.0.0,5.0.0)";resolution:=optional, org.hibernate.usertype;version="[4.0.0,5.0.0)";resolution:=optional diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/src/org/eclipse/emf/teneo/hibernate/test/HibernateTestbed.java b/tests/org.eclipse.emf.teneo.hibernate.test/src/org/eclipse/emf/teneo/hibernate/test/HibernateTestbed.java index 3e3425830..b87e8c8be 100755 --- a/tests/org.eclipse.emf.teneo.hibernate.test/src/org/eclipse/emf/teneo/hibernate/test/HibernateTestbed.java +++ b/tests/org.eclipse.emf.teneo.hibernate.test/src/org/eclipse/emf/teneo/hibernate/test/HibernateTestbed.java @@ -165,7 +165,7 @@ public class HibernateTestbed extends Testbed { } mappingFile.createNewFile(); final FileWriter fileWriter = new FileWriter(mappingFile); - + fileWriter.write(mappingXML); fileWriter.close(); } diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/src/org/eclipse/emf/teneo/hibernate/test/stores/HibernateTestStore.java b/tests/org.eclipse.emf.teneo.hibernate.test/src/org/eclipse/emf/teneo/hibernate/test/stores/HibernateTestStore.java index e2539d575..8ef56e7ab 100755 --- a/tests/org.eclipse.emf.teneo.hibernate.test/src/org/eclipse/emf/teneo/hibernate/test/stores/HibernateTestStore.java +++ b/tests/org.eclipse.emf.teneo.hibernate.test/src/org/eclipse/emf/teneo/hibernate/test/stores/HibernateTestStore.java @@ -50,6 +50,7 @@ import org.eclipse.emf.teneo.util.AssertUtil; import org.eclipse.emf.teneo.util.EcoreDataTypes; import org.hibernate.FlushMode; import org.hibernate.Session; +import org.hibernate.cache.internal.NoCachingRegionFactory; import org.hibernate.cfg.Environment; /** @@ -138,6 +139,8 @@ public class HibernateTestStore extends AbstractTestStore { props.setProperty(Environment.PASS, dbadapter.getDbPwd()); props.setProperty(Environment.DIALECT, dbadapter.getDialect()); props.setProperty(Environment.BYTECODE_PROVIDER, "cglib"); + props.setProperty(Environment.USE_SECOND_LEVEL_CACHE, "false"); + props.setProperty(Environment.GENERATE_STATISTICS, "false"); return props; } |