chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject svn commit: r926070 - /incubator/chemistry/trunk/opencmis/opencmis-test/opencmis-test-util/src/main/java/org/apache/opencmis/util/repository/ObjectGenerator.java
Date Mon, 22 Mar 2010 13:26:21 GMT
Author: jens
Date: Mon Mar 22 13:26:20 2010
New Revision: 926070

URL: http://svn.apache.org/viewvc?rev=926070&view=rev
Log:
Fix bug in ObjectGenerator to generate string instead of id for a name

Modified:
    incubator/chemistry/trunk/opencmis/opencmis-test/opencmis-test-util/src/main/java/org/apache/opencmis/util/repository/ObjectGenerator.java

Modified: incubator/chemistry/trunk/opencmis/opencmis-test/opencmis-test-util/src/main/java/org/apache/opencmis/util/repository/ObjectGenerator.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/trunk/opencmis/opencmis-test/opencmis-test-util/src/main/java/org/apache/opencmis/util/repository/ObjectGenerator.java?rev=926070&r1=926069&r2=926070&view=diff
==============================================================================
--- incubator/chemistry/trunk/opencmis/opencmis-test/opencmis-test-util/src/main/java/org/apache/opencmis/util/repository/ObjectGenerator.java
(original)
+++ incubator/chemistry/trunk/opencmis/opencmis-test/opencmis-test-util/src/main/java/org/apache/opencmis/util/repository/ObjectGenerator.java
Mon Mar 22 13:26:20 2010
@@ -294,7 +294,7 @@ public class ObjectGenerator {
 
   private PropertiesData createFolderProperties(int no, int level) {
     List<PropertyData<?>> properties = new ArrayList<PropertyData<?>>();
-    properties.add(fFactory.createPropertyIdData(PropertyIds.CMIS_NAME, generateFolderNameValue(no,
level)));
+    properties.add(fFactory.createPropertyStringData(PropertyIds.CMIS_NAME, generateFolderNameValue(no,
level)));
     properties.add(fFactory.createPropertyIdData(PropertyIds.CMIS_OBJECT_TYPE_ID, fFolderTypeId));
     // Generate some property values for custom attributes
     for (String stringPropId : fStringPropertyIdsToSetForFolder) {
@@ -306,7 +306,7 @@ public class ObjectGenerator {
 
   private PropertiesData createDocumentProperties(int no, int level) {
     List<PropertyData<?>> properties = new ArrayList<PropertyData<?>>();
-    properties.add(fFactory.createPropertyIdData(PropertyIds.CMIS_NAME, generateDocNameValue(no,
level)));
+    properties.add(fFactory.createPropertyStringData(PropertyIds.CMIS_NAME, generateDocNameValue(no,
level)));
     properties.add(fFactory.createPropertyIdData(PropertyIds.CMIS_OBJECT_TYPE_ID, fDocTypeId));
     // Generate some property values for custom attributes
     for (String stringPropId : fStringPropertyIdsToSetForDocument) {



Mime
View raw message