Permalink
Browse files

Fixed concurrency test

  • Loading branch information...
tzaeschke committed May 28, 2017
1 parent 8160bd2 commit 8344d83aa38a5dcf13f5d620f590137f81c0370f
Showing with 19 additions and 19 deletions.
  1. +8 −8 .classpath
  2. +11 −11 tst/org/zoodb/test/jdo/Test_025_SingleSessionConcurrency.java
View
@@ -1,35 +1,35 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry including="**/*.java" kind="src" output="target/test-classes" path="tst">
<classpathentry kind="src" output="target/classes" path="src">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry excluding="**" kind="src" output="target/classes" path="resources">
<classpathentry including="**/*.java" kind="src" output="target/test-classes" path="tst">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry exported="true" kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<classpathentry kind="src" output="target/classes" path="examples">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
<classpathentry excluding="**" kind="src" output="target/classes" path="resources">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" output="target/classes" path="examples">
<classpathentry exported="true" kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" output="target/classes" path="src">
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
@@ -508,12 +508,12 @@ public void testPmAPI() {
PersistenceManager pm = TestTools.openPM();
pm.currentTransaction().begin();
assertFalse(pm.getMultithreaded());
pm.setMultithreaded(true);
assertTrue(pm.getMultithreaded());
pm.setMultithreaded(false);
assertFalse(pm.getMultithreaded());
pm.setMultithreaded(true);
pm.currentTransaction().rollback();
TestTools.closePM();
@@ -524,13 +524,6 @@ public void testPmfAPI() {
PersistenceManager pm = TestTools.openPM();
PersistenceManagerFactory pmf = pm.getPersistenceManagerFactory();
pm.close();
assertFalse(pmf.getMultithreaded());
pm = pmf.getPersistenceManager();
assertFalse(pm.getMultithreaded());
pm.close();
pmf.setMultithreaded(true);
assertTrue(pmf.getMultithreaded());
pm = pmf.getPersistenceManager();
@@ -539,10 +532,17 @@ public void testPmfAPI() {
pmf.setMultithreaded(false);
assertFalse(pmf.getMultithreaded());
pm = pmf.getPersistenceManager();
assertFalse(pm.getMultithreaded());
pm.close();
pmf.setMultithreaded(true);
assertTrue(pmf.getMultithreaded());
pm = pmf.getPersistenceManager();
assertTrue(pm.getMultithreaded());
pm.close();
pmf.close();
}

0 comments on commit 8344d83

Please sign in to comment.