db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c..@apache.org
Subject svn commit: r188687 - /incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/extents/IteratorNextAfterExtentClose.java
Date Tue, 07 Jun 2005 04:31:33 GMT
Author: clr
Date: Mon Jun  6 21:31:30 2005
New Revision: 188687

URL: http://svn.apache.org/viewcvs?rev=188687&view=rev
Log:
added commit/rollback to avoid reading outside transaction

Modified:
    incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/extents/IteratorNextAfterExtentClose.java

Modified: incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/extents/IteratorNextAfterExtentClose.java
URL: http://svn.apache.org/viewcvs/incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/extents/IteratorNextAfterExtentClose.java?rev=188687&r1=188686&r2=188687&view=diff
==============================================================================
--- incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/extents/IteratorNextAfterExtentClose.java
(original)
+++ incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/extents/IteratorNextAfterExtentClose.java
Mon Jun  6 21:31:30 2005
@@ -76,15 +76,17 @@
                 tryNext(it3);
                 rollbackTransaction();
     
+                beginTransaction();
                 Iterator it4 = ex.iterator();
                 int count4 = countIterator(it4);
+                commitTransaction();
+                
                 if (count4 != 2) {
                     fail(ASSERTION_FAILED,
                          "Iterator4 after rollback: " + count4 + "; should be 2");
                 }
             } 
             catch (Exception unexpected) {
-                rollbackTransaction();
                 fail(ASSERTION_FAILED,
                      "unexpected exception " + unexpected);
             }



Mime
View raw message