db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c..@apache.org
Subject svn commit: r190001 - /incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/transactions/Rollback.java
Date Fri, 10 Jun 2005 18:31:11 GMT
Author: clr
Date: Fri Jun 10 11:31:11 2005
New Revision: 190001

URL: http://svn.apache.org/viewcvs?rev=190001&view=rev
Log:
added transaction around access to persistent field

Modified:
    incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/transactions/Rollback.java

Modified: incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/transactions/Rollback.java
URL: http://svn.apache.org/viewcvs/incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/transactions/Rollback.java?rev=190001&r1=190000&r2=190001&view=diff
==============================================================================
--- incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/transactions/Rollback.java (original)
+++ incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/transactions/Rollback.java Fri
Jun 10 11:31:11 2005
@@ -131,7 +131,9 @@
                 fail(ASSERTION_FAILED,
                      "P-NEW instance should transition to HOLLOW or P-NONTX and then it should
not be dirty, JDOHelper.isDirty returns true.");
             }
+            tx.begin();
             int x = p1.getX();
+            tx.commit();
             if (x != 1) {
                 fail(ASSERTION_FAILED,
                      "tx.rollback should rollback change of ip1.x, expected 1, got " + x);



Mime
View raw message