chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject svn commit: r1694062 - /chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/impl/AbstractSessionTest.java
Date Tue, 04 Aug 2015 13:26:23 GMT
Author: fmui
Date: Tue Aug  4 13:26:23 2015
New Revision: 1694062

URL: http://svn.apache.org/r1694062
Log:
TCK: fixed allowable action check for folder children

Modified:
    chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/impl/AbstractSessionTest.java

Modified: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/impl/AbstractSessionTest.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/impl/AbstractSessionTest.java?rev=1694062&r1=1694061&r2=1694062&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/impl/AbstractSessionTest.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/impl/AbstractSessionTest.java
Tue Aug  4 13:26:23 2015
@@ -2266,12 +2266,12 @@ public abstract class AbstractSessionTes
                 }
             }
 
-            f = createResult(WARNING, "Child has no CAN_GET_OBJECT_PARENTS allowable action!
ID: " + child.getId());
-            addResult(results, assertAllowableAction(child, Action.CAN_GET_OBJECT_PARENTS,
null, f));
-
             if (child instanceof Folder) {
                 f = createResult(WARNING, "Child has no CAN_GET_FOLDER_PARENT allowable action!
ID: " + child.getId());
                 addResult(results, assertAllowableAction(child, Action.CAN_GET_FOLDER_PARENT,
null, f));
+            } else {
+                f = createResult(WARNING, "Child has no CAN_GET_OBJECT_PARENTS allowable
action! ID: " + child.getId());
+                addResult(results, assertAllowableAction(child, Action.CAN_GET_OBJECT_PARENTS,
null, f));
             }
         }
     }



Mime
View raw message