db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c..@apache.org
Subject svn commit: r179275 - /incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/mapping/CompletenessTest.java
Date Tue, 31 May 2005 21:16:20 GMT
Author: clr
Date: Tue May 31 14:16:18 2005
New Revision: 179275

URL: http://svn.apache.org/viewcvs?rev=179275&view=rev
Log:
added begin/commit around access to persistent data

Modified:
    incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/mapping/CompletenessTest.java

Modified: incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/mapping/CompletenessTest.java
URL: http://svn.apache.org/viewcvs/incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/mapping/CompletenessTest.java?rev=179275&r1=179274&r2=179275&view=diff
==============================================================================
--- incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/mapping/CompletenessTest.java (original)
+++ incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/mapping/CompletenessTest.java Tue
May 31 14:16:18 2005
@@ -79,10 +79,12 @@
         Company companyExpected = reader.getCompany("company1");
 
         getPM();
+        pm.currentTransaction().begin();
         // compare persisted and new
         if (!companyExpected.deepCompareFields(
             (Company)pm.getObjectById(rootOid), new EqualityHelper())) {
             fail("Persistent company not equal to expected company");
         }
+        pm.currentTransaction().commit();
     }
 }



Mime
View raw message