chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject svn commit: r1407224 - /chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/tests/query/QueryRootFolderTest.java
Date Thu, 08 Nov 2012 19:20:09 GMT
Author: fmui
Date: Thu Nov  8 19:20:09 2012
New Revision: 1407224

URL: http://svn.apache.org/viewvc?rev=1407224&view=rev
Log:
CMIS-601: check in query TCK test if root folder type is queryable

Modified:
    chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/tests/query/QueryRootFolderTest.java

Modified: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/tests/query/QueryRootFolderTest.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/tests/query/QueryRootFolderTest.java?rev=1407224&r1=1407223&r2=1407224&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/tests/query/QueryRootFolderTest.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/tests/query/QueryRootFolderTest.java
Thu Nov  8 19:20:09 2012
@@ -46,8 +46,13 @@ public class QueryRootFolderTest extends
     @Override
     public void run(Session session) {
         if (supportsQuery(session) && !isFulltextOnly(session)) {
-            queryById(session);
-            queryByDate(session);
+            if (Boolean.TRUE.equals(session.getRootFolder().getType().isQueryable())) {
+                queryById(session);
+                queryByDate(session);
+            } else {
+                addResult(createResult(SKIPPED, "Root folder type (" + session.getRootFolder().getType().getId()
+                        + ") is not queryable. Test Skipped!"));
+            }
         } else {
             addResult(createResult(SKIPPED, "Metadata query not supported. Test Skipped!"));
         }



Mime
View raw message