db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c..@apache.org
Subject svn commit: r189668 - in /incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/extents: CloseOfExtentIteratorIsIteratorSpecific.java InstancesDeletedPriorToIterationNotReturned.java InstancesPersistedPriorToIterationReturned.java IteratorMutatingMethods.java
Date Wed, 08 Jun 2005 23:41:11 GMT
Author: clr
Date: Wed Jun  8 16:41:10 2005
New Revision: 189668

URL: http://svn.apache.org/viewcvs?rev=189668&view=rev
Log:
JDO-60 added begin and commit around iterator accesses

Modified:
    incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/extents/CloseOfExtentIteratorIsIteratorSpecific.java
    incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/extents/InstancesDeletedPriorToIterationNotReturned.java
    incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/extents/InstancesPersistedPriorToIterationReturned.java
    incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/extents/IteratorMutatingMethods.java

Modified: incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/extents/CloseOfExtentIteratorIsIteratorSpecific.java
URL: http://svn.apache.org/viewcvs/incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/extents/CloseOfExtentIteratorIsIteratorSpecific.java?rev=189668&r1=189667&r2=189668&view=diff
==============================================================================
--- incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/extents/CloseOfExtentIteratorIsIteratorSpecific.java
(original)
+++ incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/extents/CloseOfExtentIteratorIsIteratorSpecific.java
Wed Jun  8 16:41:10 2005
@@ -58,6 +58,7 @@
     /** */
     public void test() {
         Extent ex = getExtent();
+        beginTransaction();
         Iterator it1 = ex.iterator();
         ex.close(it1);
         int count = countIterator(ex.iterator());
@@ -68,6 +69,7 @@
         Query q = getPM().newQuery(ex);
         Collection c = (Collection)q.execute();
         int count2 = countIterator(c.iterator());
+        commitTransaction();
         if (count2 != 2) {
             fail(ASSERTION_FAILED,
                  "in query after closing iterator; counted " + count + " instances; should
be 2");

Modified: incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/extents/InstancesDeletedPriorToIterationNotReturned.java
URL: http://svn.apache.org/viewcvs/incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/extents/InstancesDeletedPriorToIterationNotReturned.java?rev=189668&r1=189667&r2=189668&view=diff
==============================================================================
--- incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/extents/InstancesDeletedPriorToIterationNotReturned.java
(original)
+++ incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/extents/InstancesDeletedPriorToIterationNotReturned.java
Wed Jun  8 16:41:10 2005
@@ -64,9 +64,11 @@
             Iterator it2 = ex.iterator();
             int count = countIterator(it2);
             rollbackTransaction();
-    
+
+            beginTransaction();
             Iterator it3 = ex.iterator();
             int count3 = countIterator(it3);
+            commitTransaction();
     
             if (count != 1) {
                 fail(ASSERTION_FAILED,

Modified: incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/extents/InstancesPersistedPriorToIterationReturned.java
URL: http://svn.apache.org/viewcvs/incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/extents/InstancesPersistedPriorToIterationReturned.java?rev=189668&r1=189667&r2=189668&view=diff
==============================================================================
--- incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/extents/InstancesPersistedPriorToIterationReturned.java
(original)
+++ incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/extents/InstancesPersistedPriorToIterationReturned.java
Wed Jun  8 16:41:10 2005
@@ -64,9 +64,11 @@
             Iterator it = ex.iterator();
             int count = countIterator(it);
             rollbackTransaction();
-    
+
+            beginTransaction();
             Iterator it2 = ex.iterator();
             int count2 = countIterator(it2);
+            commitTransaction();
     
             if (count != 3) {
                 fail(ASSERTION_FAILED,

Modified: incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/extents/IteratorMutatingMethods.java
URL: http://svn.apache.org/viewcvs/incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/extents/IteratorMutatingMethods.java?rev=189668&r1=189667&r2=189668&view=diff
==============================================================================
--- incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/extents/IteratorMutatingMethods.java
(original)
+++ incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/extents/IteratorMutatingMethods.java
Wed Jun  8 16:41:10 2005
@@ -54,6 +54,7 @@
 
     /** */
     public void test() {
+        beginTransaction();
         Extent ex = getExtent();
         Iterator it = ex.iterator();
         it.next();
@@ -68,5 +69,6 @@
         } 
         finally {
         }
+        commitTransaction();
     }
 }



Mime
View raw message