db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c..@apache.org
Subject svn commit: r188678 - /incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/api/persistencemanagerfactory/SetNonTransactionalWrite.java
Date Tue, 07 Jun 2005 03:28:10 GMT
Author: clr
Date: Mon Jun  6 20:28:10 2005
New Revision: 188678

URL: http://svn.apache.org/viewcvs?rev=188678&view=rev
Log:
add check to see if NontransactionalWrite is supported

Modified:
    incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/api/persistencemanagerfactory/SetNonTransactionalWrite.java

Modified: incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/api/persistencemanagerfactory/SetNonTransactionalWrite.java
URL: http://svn.apache.org/viewcvs/incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/api/persistencemanagerfactory/SetNonTransactionalWrite.java?rev=188678&r1=188677&r2=188678&view=diff
==============================================================================
--- incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/api/persistencemanagerfactory/SetNonTransactionalWrite.java
(original)
+++ incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/api/persistencemanagerfactory/SetNonTransactionalWrite.java
Mon Jun  6 20:28:10 2005
@@ -75,6 +75,12 @@
 
     /** set NonTransactionalWrite to true or false and use getNonTransactionalWrite value
to verify */ 
     public void test () {
+        if (!isNontransactionalWriteSupported()) {
+            if (debug)
+                logger.debug("\n SetNonTransactionalWrite() passed: this implementation does
not support NontransactionalWrite.");
+            return;
+        }
+       
         Properties props = loadProperties(PMFProperties);
         pmfClass = props.getProperty(PMFCLASS);  
         url      = props.getProperty(URL);



Mime
View raw message