chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject svn commit: r1444705 - /chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/impl/AbstractSessionTest.java
Date Mon, 11 Feb 2013 10:03:25 GMT
Author: fmui
Date: Mon Feb 11 10:03:25 2013
New Revision: 1444705

URL: http://svn.apache.org/r1444705
Log:
TCK: test for orderable attribute of multi-value properties

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=1444705&r1=1444704&r2=1444705&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
Mon Feb 11 10:03:25 2013
@@ -1987,7 +1987,7 @@ public abstract class AbstractSessionTes
 
                     // cmis:secondaryObjectTypeIds
                     cpd = new CmisPropertyDefintion(PropertyIds.SECONDARY_OBJECT_TYPE_IDS,
null, PropertyType.ID,
-                            Cardinality.MULTI, null, null, null);
+                            Cardinality.MULTI, null, null, false);
                     addResult(results, cpd.check(type));
 
                     if (BaseTypeId.CMIS_DOCUMENT.equals(type.getBaseTypeId())) {
@@ -2081,7 +2081,7 @@ public abstract class AbstractSessionTes
 
                     // cmis:allowedChildObjectTypeIds
                     cpd = new CmisPropertyDefintion(PropertyIds.ALLOWED_CHILD_OBJECT_TYPE_IDS,
false, PropertyType.ID,
-                            Cardinality.MULTI, Updatability.READONLY, null, null);
+                            Cardinality.MULTI, Updatability.READONLY, null, false);
                     addResult(results, cpd.check(type));
                 } else if (BaseTypeId.CMIS_RELATIONSHIP.equals(type.getBaseTypeId())) {
                     // cmis:sourceId
@@ -2988,7 +2988,7 @@ public abstract class AbstractSessionTes
             this.cardinality = cardinality;
             this.updatability = updatability;
             this.queryable = queryable;
-            this.orderable = orderable;
+            this.orderable = (cardinality == Cardinality.MULTI ? Boolean.FALSE : orderable);
         }
 
         public CmisTestResult check(TypeDefinition type) {



Mime
View raw message