db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c..@apache.org
Subject svn commit: r164331 - /incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/extents/ExtentTest.java
Date Sat, 23 Apr 2005 04:33:46 GMT
Author: clr
Date: Fri Apr 22 21:33:45 2005
New Revision: 164331

URL: http://svn.apache.org/viewcvs?rev=164331&view=rev
Log:
JDO-25 checkPM must run inside a transaction

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

Modified: incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/extents/ExtentTest.java
URL: http://svn.apache.org/viewcvs/incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/extents/ExtentTest.java?rev=164331&r1=164330&r2=164331&view=diff
==============================================================================
--- incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/extents/ExtentTest.java (original)
+++ incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/extents/ExtentTest.java Fri Apr
22 21:33:45 2005
@@ -65,8 +65,10 @@
     /** */
     protected void checkPM() {
         try {
+            beginTransaction();
             Extent ex = getPM().getExtent(Company.class, false);
             int count = countIterator(ex.iterator());
+            commitTransaction();
             if (count == 1) {
                 if (debug) logger.debug ("Found company");
                 return;



Mime
View raw message