db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c..@apache.org
Subject svn commit: r686413 - /db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/api/persistencemanagerfactory/FlushThrowsIfReadOnly.java
Date Fri, 15 Aug 2008 22:53:00 GMT
Author: clr
Date: Fri Aug 15 15:53:00 2008
New Revision: 686413

URL: http://svn.apache.org/viewvc?rev=686413&view=rev
Log:
JDO-597 Make sure oid class is loaded

Modified:
    db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/api/persistencemanagerfactory/FlushThrowsIfReadOnly.java

Modified: db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/api/persistencemanagerfactory/FlushThrowsIfReadOnly.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/api/persistencemanagerfactory/FlushThrowsIfReadOnly.java?rev=686413&r1=686412&r2=686413&view=diff
==============================================================================
--- db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/api/persistencemanagerfactory/FlushThrowsIfReadOnly.java
(original)
+++ db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/api/persistencemanagerfactory/FlushThrowsIfReadOnly.java
Fri Aug 15 15:53:00 2008
@@ -114,6 +114,7 @@
     public void testUpdate() {
         //Try to update and flush the transaction
         pm = pmf2.getPersistenceManager();
+        pm.getExtent(Company.class); // make sure that oid class is loaded
         Transaction tx = pm.currentTransaction();
         tx.begin();
         Company comp = (Company)pm.getObjectById(oid);
@@ -140,6 +141,7 @@
     public void testDeletePersistent() {
         //Try to deletePersistent and flush the transaction
         pm = pmf2.getPersistenceManager();
+        pm.getExtent(Company.class); // make sure that oid class is loaded
         Transaction tx = pm.currentTransaction();
         tx.begin();
         Company comp = (Company)pm.getObjectById(oid);



Mime
View raw message