db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c..@apache.org
Subject svn commit: r694860 - /db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/JDO_Test.java
Date Sat, 13 Sep 2008 00:42:19 GMT
Author: clr
Date: Fri Sep 12 17:42:19 2008
New Revision: 694860

URL: http://svn.apache.org/viewvc?rev=694860&view=rev
Log:
JDO-590 Add helper method boolean isSupported(String) to JDO_Test

Modified:
    db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/JDO_Test.java

Modified: db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/JDO_Test.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/JDO_Test.java?rev=694860&r1=694859&r2=694860&view=diff
==============================================================================
--- db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/JDO_Test.java (original)
+++ db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/JDO_Test.java Fri Sep 12 17:42:19 2008
@@ -858,7 +858,12 @@
         return getPMF().supportedOptions().contains(
             "javax.jdo.option.GetDataStoreConnection");
     }
-    
+
+    /** Reports whether a feature is supported */
+    public boolean isSupported(String option) {
+        return getPMF().supportedOptions().contains(option);
+    }
+
     /**
      * Determine if a class is loadable in the current environment.
      */



Mime
View raw message