jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From resc...@apache.org
Subject svn commit: r794293 - /jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/query/GetSupportedQueryLanguagesTest.java
Date Wed, 15 Jul 2009 14:58:52 GMT
Author: reschke
Date: Wed Jul 15 14:58:52 2009
New Revision: 794293

URL: http://svn.apache.org/viewvc?rev=794293&view=rev
Log:
JCR-2085: Query.XPATH is optional now, but Query.JCR_SQL2 is required.

Modified:
    jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/query/GetSupportedQueryLanguagesTest.java

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/query/GetSupportedQueryLanguagesTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/query/GetSupportedQueryLanguagesTest.java?rev=794293&r1=794292&r2=794293&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/query/GetSupportedQueryLanguagesTest.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/query/GetSupportedQueryLanguagesTest.java
Wed Jul 15 14:58:52 2009
@@ -59,15 +59,15 @@
     }
 
     /**
-     * Tests if all implementations return {@link Query#XPATH} with
+     * Tests if all implementations return {@link Query#JCR_SQL2} with
      * {@link QueryManager#getSupportedQueryLanguages()}. Tests if repositores
      * that have the SQL descriptor set in the repository return {@link Query#SQL}.
      */
     public void testGetSupportedQueryLanguages() throws RepositoryException {
         List langs = Arrays.asList(session.getWorkspace().getQueryManager().getSupportedQueryLanguages());
         // all repositories must support XPath
-        assertTrue("XPath not retured with QueryManager.getSupportedQueryLanguages()",
-                langs.contains(Query.XPATH));
+        assertTrue("JCR_SQL2 not retured with QueryManager.getSupportedQueryLanguages()",
+                langs.contains(Query.JCR_SQL2));
 
         // if repository descriptor for sql is present also sql must be returned
         if (isSupported(Repository.OPTION_QUERY_SQL_SUPPORTED)) {



Mime
View raw message