You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@chemistry.apache.org by dc...@apache.org on 2009/10/22 22:46:03 UTC

svn commit: r828843 - in /incubator/chemistry/trunk/chemistry/chemistry-tck-atompub/src/main: java/org/apache/chemistry/abdera/ext/ java/org/apache/chemistry/tck/atompub/test/custom/ java/org/apache/chemistry/tck/atompub/test/spec/ resources/org/apache...

Author: dcaruana
Date: Thu Oct 22 20:46:02 2009
New Revision: 828843

URL: http://svn.apache.org/viewvc?rev=828843&view=rev
Log:
AtomPub TCK updates
- Add tests for getObjectById, getObjectByPath URI templates
- Tighten tests for content streams
- Minor adjustments to custom type tests
- Abdera CMIS extension: add getPath() to CMISObject

Modified:
    incubator/chemistry/trunk/chemistry/chemistry-tck-atompub/src/main/java/org/apache/chemistry/abdera/ext/CMISObject.java
    incubator/chemistry/trunk/chemistry/chemistry-tck-atompub/src/main/java/org/apache/chemistry/tck/atompub/test/custom/CMISCustomTypeTest.java
    incubator/chemistry/trunk/chemistry/chemistry-tck-atompub/src/main/java/org/apache/chemistry/tck/atompub/test/spec/ContentStreamTest.java
    incubator/chemistry/trunk/chemistry/chemistry-tck-atompub/src/main/java/org/apache/chemistry/tck/atompub/test/spec/GetTest.java
    incubator/chemistry/trunk/chemistry/chemistry-tck-atompub/src/main/resources/org/apache/chemistry/tck/atompub/templates/custom/createcustomdocument.atomentry.xml
    incubator/chemistry/trunk/chemistry/chemistry-tck-atompub/src/main/resources/org/apache/chemistry/tck/atompub/templates/custom/createcustomfolder.atomentry.xml

Modified: incubator/chemistry/trunk/chemistry/chemistry-tck-atompub/src/main/java/org/apache/chemistry/abdera/ext/CMISObject.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/trunk/chemistry/chemistry-tck-atompub/src/main/java/org/apache/chemistry/abdera/ext/CMISObject.java?rev=828843&r1=828842&r2=828843&view=diff
==============================================================================
--- incubator/chemistry/trunk/chemistry/chemistry-tck-atompub/src/main/java/org/apache/chemistry/abdera/ext/CMISObject.java (original)
+++ incubator/chemistry/trunk/chemistry/chemistry-tck-atompub/src/main/java/org/apache/chemistry/abdera/ext/CMISObject.java Thu Oct 22 20:46:02 2009
@@ -265,6 +265,15 @@
     }
 
     /**
+     * Path (Folder)
+     *  
+     * @return path
+     */
+    public CMISProperty getPath() {
+        return getProperties().find(CMISConstants.PROP_PATH);
+    }
+
+    /**
      * Source Id (Relationship)
      * 
      * @return source id property
@@ -281,4 +290,5 @@
     public CMISProperty getTargetId() {
         return getProperties().find(CMISConstants.PROP_TARGET_ID);
     }
+    
 }

Modified: incubator/chemistry/trunk/chemistry/chemistry-tck-atompub/src/main/java/org/apache/chemistry/tck/atompub/test/custom/CMISCustomTypeTest.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/trunk/chemistry/chemistry-tck-atompub/src/main/java/org/apache/chemistry/tck/atompub/test/custom/CMISCustomTypeTest.java?rev=828843&r1=828842&r2=828843&view=diff
==============================================================================
--- incubator/chemistry/trunk/chemistry/chemistry-tck-atompub/src/main/java/org/apache/chemistry/tck/atompub/test/custom/CMISCustomTypeTest.java (original)
+++ incubator/chemistry/trunk/chemistry/chemistry-tck-atompub/src/main/java/org/apache/chemistry/tck/atompub/test/custom/CMISCustomTypeTest.java Thu Oct 22 20:46:02 2009
@@ -32,7 +32,6 @@
 import org.apache.chemistry.abdera.ext.CMISProperty;
 import org.apache.chemistry.tck.atompub.http.DeleteRequest;
 import org.apache.chemistry.tck.atompub.http.GetRequest;
-import org.apache.chemistry.tck.atompub.http.PatchRequest;
 import org.apache.chemistry.tck.atompub.http.PostRequest;
 import org.apache.chemistry.tck.atompub.http.PutRequest;
 import org.apache.chemistry.tck.atompub.http.Response;
@@ -54,14 +53,13 @@
         Feed children = client.getFeed(childrenLink.getHref());
         assertNotNull(children);
         int entriesBefore = children.getEntries().size();
-        Entry folder = client.createFolder(children.getSelfLink().getHref(), "testCreateCustomFolder",
-                "/org/apache/chemistry/tck/atompub/test/createcustomfolder.atomentry.xml");
+        Entry folder = client.createFolder(children.getSelfLink().getHref(), "testCreateCustomFolder", "custom/createcustomfolder.atomentry.xml");
         Feed feedFolderAfter = client.getFeed(childrenLink.getHref());
         int entriesAfter = feedFolderAfter.getEntries().size();
         assertEquals(entriesBefore + 1, entriesAfter);
         Entry entry = feedFolderAfter.getEntry(folder.getId().toString());
         CMISObject object = entry.getExtension(CMISConstants.OBJECT);
-        assertEquals("F/cmiscustom:folder", object.getObjectTypeId().getStringValue());
+        assertEquals("F:cmiscustom:folder", object.getObjectTypeId().getStringValue());
         CMISProperty customProp = object.getProperties().find("cmiscustom:folderprop_string");
         assertNotNull(customProp);
         assertEquals("custom string", customProp.getStringValue());
@@ -74,14 +72,13 @@
         Feed children = client.getFeed(childrenLink.getHref());
         assertNotNull(children);
         int entriesBefore = children.getEntries().size();
-        Entry document = client.createDocument(children.getSelfLink().getHref(), "testCreateCustomDocument",
-                "/org/apache/chemistry/tck/atompub/test/createcustomdocument.atomentry.xml");
+        Entry document = client.createDocument(children.getSelfLink().getHref(), "testCreateCustomDocument", "custom/createcustomdocument.atomentry.xml");
         Feed feedFolderAfter = client.getFeed(childrenLink.getHref());
         int entriesAfter = feedFolderAfter.getEntries().size();
         assertEquals(entriesBefore + 1, entriesAfter);
         Entry entry = feedFolderAfter.getEntry(document.getId().toString());
         CMISObject object = entry.getExtension(CMISConstants.OBJECT);
-        assertEquals("D/cmiscustom:document", object.getObjectTypeId().getStringValue());
+        assertEquals("D:cmiscustom:document", object.getObjectTypeId().getStringValue());
         CMISProperty customProp = object.getProperties().find("cmiscustom:docprop_string");
         assertNotNull(customProp);
         assertEquals("custom string", customProp.getStringValue());
@@ -94,53 +91,13 @@
         assertEquals(false, multiValues.get(1));
     }
 
-    public void testUpdatePatch() throws Exception {
-        // retrieve test folder for update
-        Entry testFolder = fixture.getTestCaseFolder();
-        Link childrenLink = client.getChildrenLink(testFolder);
-
-        // create document for update
-        Entry document = client.createDocument(childrenLink.getHref(), "testUpdatePatchCustomDocument",
-                "/org/apache/chemistry/tck/atompub/test/createcustomdocument.atomentry.xml");
-        assertNotNull(document);
-
-        // update
-        String updateFile = customTemplates.load("updatecustomdocument.atomentry.xml");
-        // FIXME: Add a decent UID generation policy
-        // String guid = GUID.generate();
-        String guid = System.currentTimeMillis() + "";
-        updateFile = updateFile.replace("${NAME}", guid);
-        Response res = client.executeRequest(new PatchRequest(document.getSelfLink().getHref().toString(), updateFile,
-                CMISConstants.MIMETYPE_ENTRY), 200);
-        assertNotNull(res);
-        Entry updated = model.parseEntry(new StringReader(res.getContentAsString()), null);
-
-        // ensure update occurred
-        assertEquals(document.getId(), updated.getId());
-        assertEquals(document.getPublished(), updated.getPublished());
-        assertEquals("Updated Title " + guid, updated.getTitle());
-        CMISObject object = updated.getExtension(CMISConstants.OBJECT);
-        assertEquals("D/cmiscustom:document", object.getObjectTypeId().getStringValue());
-        CMISProperty customProp = object.getProperties().find("cmiscustom:docprop_string");
-        assertNotNull(customProp);
-        assertEquals("custom " + guid, customProp.getStringValue());
-        CMISProperty multiProp = object.getProperties().find("cmiscustom:docprop_boolean_multi");
-        assertNotNull(multiProp);
-        List<Object> multiValues = multiProp.getNativeValues();
-        assertNotNull(multiValues);
-        assertEquals(2, multiValues.size());
-        assertEquals(false, multiValues.get(0));
-        assertEquals(true, multiValues.get(1));
-    }
-
     public void testUpdatePut() throws Exception {
         // retrieve test folder for update
         Entry testFolder = fixture.getTestCaseFolder();
         Link childrenLink = client.getChildrenLink(testFolder);
 
         // create document for update
-        Entry document = client.createDocument(childrenLink.getHref(), "testUpdatePutCustomDocument",
-                "/org/apache/chemistry/tck/atompub/test/createcustomdocument.atomentry.xml");
+        Entry document = client.createDocument(childrenLink.getHref(), "testUpdatePutCustomDocument", "custom/createcustomdocument.atomentry.xml");
         assertNotNull(document);
 
         // update
@@ -159,7 +116,7 @@
         assertEquals(document.getPublished(), updated.getPublished());
         assertEquals("Updated Title " + guid, updated.getTitle());
         CMISObject object = updated.getExtension(CMISConstants.OBJECT);
-        assertEquals("D/cmiscustom:document", object.getObjectTypeId().getStringValue());
+        assertEquals("D:cmiscustom:document", object.getObjectTypeId().getStringValue());
         CMISProperty customProp = object.getProperties().find("cmiscustom:docprop_string");
         assertNotNull(customProp);
         assertEquals("custom " + guid, customProp.getStringValue());
@@ -180,8 +137,7 @@
         int entriesBefore = children.getEntries().size();
 
         // create document for delete
-        Entry document = client.createDocument(childrenLink.getHref(), "testDeleteCustomDocument",
-                "/org/apache/chemistry/tck/atompub/test/createcustomdocument.atomentry.xml");
+        Entry document = client.createDocument(childrenLink.getHref(), "testDeleteCustomDocument", "custom/createcustomdocument.atomentry.xml");
         Response documentRes = client.executeRequest(new GetRequest(document.getSelfLink().getHref().toString()), 200);
         assertNotNull(documentRes);
 
@@ -219,27 +175,25 @@
         assertNotNull(document1Object);
         String doc2name = "name" + System.currentTimeMillis();
         // Custom documents
-        Entry document2 = client.createDocument(childrenLink.getHref(), doc2name,
-                "/org/apache/chemistry/tck/atompub/test/createcustomdocument.atomentry.xml");
+        Entry document2 = client.createDocument(childrenLink.getHref(), doc2name, "custom/createcustomdocument.atomentry.xml");
         assertNotNull(document2);
         CMISObject document2Object = document2.getExtension(CMISConstants.OBJECT);
         assertNotNull(document2Object);
-        Entry document3 = client.createDocument(childrenLink.getHref(), "banana1",
-                "/org/apache/chemistry/tck/atompub/test/createcustomdocument.atomentry.xml");
+        Entry document3 = client.createDocument(childrenLink.getHref(), "banana1", "custom/createcustomdocument.atomentry.xml");
         assertNotNull(document3);
         CMISObject document3Object = document3.getExtension(CMISConstants.OBJECT);
         assertNotNull(document3Object);
 
         // retrieve query request document
-        String queryDoc = customTemplates.load("query.cmisquery.xml");
+        String queryDoc = templates.load("query.cmisquery.xml");
 
         {
             // construct structured query
-            String query = "SELECT ObjectId, Name, ObjectTypeId, cmiscustom_docprop_string, cmiscustom_docprop_boolean_multi FROM cmiscustom_document "
+            String query = "SELECT cmis:objectId, cmis:name, cmis:objectTypeId, cmiscustom:docprop_string, cmiscustom:docprop_boolean_multi FROM cmiscustom:document "
                     + "WHERE IN_FOLDER('"
                     + testFolderObject.getObjectId().getStringValue()
                     + "') "
-                    + "AND cmiscustom_docprop_string = 'custom string' ";
+                    + "AND cmiscustom:docprop_string = 'custom string' ";
             String queryReq = queryDoc.replace("${STATEMENT}", query);
             queryReq = queryReq.replace("${SKIPCOUNT}", "0");
             queryReq = queryReq.replace("${PAGESIZE}", "5");
@@ -298,11 +252,9 @@
         assertNotNull(childrenLink);
         Feed children = client.getFeed(childrenLink.getHref());
         assertNotNull(children);
-        Entry source = client.createDocument(children.getSelfLink().getHref(), "testSource",
-                "/org/apache/chemistry/tck/atompub/test/createcustomdocument.atomentry.xml");
+        Entry source = client.createDocument(children.getSelfLink().getHref(), "testSource", "custom/createcustomdocument.atomentry.xml");
         assertNotNull(source);
-        Entry target = client.createDocument(children.getSelfLink().getHref(), "testTarget",
-                "/org/apache/chemistry/tck/atompub/test/createcustomdocument.atomentry.xml");
+        Entry target = client.createDocument(children.getSelfLink().getHref(), "testTarget", "custom/createcustomdocument.atomentry.xml");
         assertNotNull(target);
 
         // retrieve relationships feed on source
@@ -317,7 +269,7 @@
         assertNotNull(targetObject);
         String targetId = targetObject.getObjectId().getStringValue();
         assertNotNull(targetId);
-        Entry rel = client.createRelationship(relsLink.getHref(), "R/cmiscustom:assoc", targetId);
+        Entry rel = client.createRelationship(relsLink.getHref(), "R:cmiscustom:assoc", targetId);
         assertNotNull(rel);
 
         // check created relationship
@@ -327,7 +279,7 @@
         assertNotNull(sourceId);
         CMISObject relObject = rel.getExtension(CMISConstants.OBJECT);
         assertNotNull(relObject);
-        assertEquals("R/cmiscustom:assoc", relObject.getObjectTypeId().getStringValue());
+        assertEquals("R:cmiscustom:assoc", relObject.getObjectTypeId().getStringValue());
         assertEquals(sourceId, relObject.getSourceId().getStringValue());
         assertEquals(targetId, relObject.getTargetId().getStringValue());
         assertEquals(source.getSelfLink().getHref(), rel.getLink(CMISConstants.REL_ASSOC_SOURCE).getHref());
@@ -347,11 +299,9 @@
         assertNotNull(childrenLink);
         Feed children = client.getFeed(childrenLink.getHref());
         assertNotNull(children);
-        Entry source = client.createDocument(children.getSelfLink().getHref(), "testSource",
-                "/org/apache/chemistry/tck/atompub/test/createcustomdocument.atomentry.xml");
+        Entry source = client.createDocument(children.getSelfLink().getHref(), "testSource", "custom/createcustomdocument.atomentry.xml");
         assertNotNull(source);
-        Entry target = client.createDocument(children.getSelfLink().getHref(), "testTarget",
-                "/org/apache/chemistry/tck/atompub/test/createcustomdocument.atomentry.xml");
+        Entry target = client.createDocument(children.getSelfLink().getHref(), "testTarget", "custom/createcustomdocument.atomentry.xml");
         assertNotNull(target);
 
         // retrieve relationships feed on source
@@ -363,7 +313,7 @@
         assertNotNull(targetObject);
         String targetId = targetObject.getObjectId().getStringValue();
         assertNotNull(targetId);
-        Entry rel = client.createRelationship(relsLink.getHref(), "R/cmiscustom:assoc", targetId);
+        Entry rel = client.createRelationship(relsLink.getHref(), "R:cmiscustom:assoc", targetId);
         assertNotNull(rel);
 
         // get created relationship
@@ -384,11 +334,9 @@
         assertNotNull(childrenLink);
         Feed children = client.getFeed(childrenLink.getHref());
         assertNotNull(children);
-        Entry source = client.createDocument(children.getSelfLink().getHref(), "testSource",
-                "/org/apache/chemistry/tck/atompub/test/createcustomdocument.atomentry.xml");
+        Entry source = client.createDocument(children.getSelfLink().getHref(), "testSource", "custom/createcustomdocument.atomentry.xml");
         assertNotNull(source);
-        Entry target = client.createDocument(children.getSelfLink().getHref(), "testTarget",
-                "/org/apache/chemistry/tck/atompub/test/createcustomdocument.atomentry.xml");
+        Entry target = client.createDocument(children.getSelfLink().getHref(), "testTarget", "custom/createcustomdocument.atomentry.xml");
         assertNotNull(target);
 
         // retrieve relationships feed on source
@@ -403,7 +351,7 @@
         assertNotNull(targetObject);
         String targetId = targetObject.getObjectId().getStringValue();
         assertNotNull(targetId);
-        Entry rel = client.createRelationship(relsLink.getHref(), "R/cmiscustom:assoc", targetId);
+        Entry rel = client.createRelationship(relsLink.getHref(), "R:cmiscustom:assoc", targetId);
         assertNotNull(rel);
 
         // check relationships for created item

Modified: incubator/chemistry/trunk/chemistry/chemistry-tck-atompub/src/main/java/org/apache/chemistry/tck/atompub/test/spec/ContentStreamTest.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/trunk/chemistry/chemistry-tck-atompub/src/main/java/org/apache/chemistry/tck/atompub/test/spec/ContentStreamTest.java?rev=828843&r1=828842&r2=828843&view=diff
==============================================================================
--- incubator/chemistry/trunk/chemistry/chemistry-tck-atompub/src/main/java/org/apache/chemistry/tck/atompub/test/spec/ContentStreamTest.java (original)
+++ incubator/chemistry/trunk/chemistry/chemistry-tck-atompub/src/main/java/org/apache/chemistry/tck/atompub/test/spec/ContentStreamTest.java Thu Oct 22 20:46:02 2009
@@ -80,7 +80,10 @@
         Response res = client.executeRequest(new DeleteRequest(editMediaLink.getHref().toString()), 204);
         Assert.assertNotNull(res);
 
-        // retrieve deleted content
+        // retrieve document (ensure still exists)
+        client.getEntry(document.getSelfLink().getHref());
+        
+        // attempt to retrieve deleted content (ensure does not exist)
         client.executeRequest(new GetRequest(document.getContentSrc().toString()), 404);
     }
 

Modified: incubator/chemistry/trunk/chemistry/chemistry-tck-atompub/src/main/java/org/apache/chemistry/tck/atompub/test/spec/GetTest.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/trunk/chemistry/chemistry-tck-atompub/src/main/java/org/apache/chemistry/tck/atompub/test/spec/GetTest.java?rev=828843&r1=828842&r2=828843&view=diff
==============================================================================
--- incubator/chemistry/trunk/chemistry/chemistry-tck-atompub/src/main/java/org/apache/chemistry/tck/atompub/test/spec/GetTest.java (original)
+++ incubator/chemistry/trunk/chemistry/chemistry-tck-atompub/src/main/java/org/apache/chemistry/tck/atompub/test/spec/GetTest.java Thu Oct 22 20:46:02 2009
@@ -17,7 +17,14 @@
  */
 package org.apache.chemistry.tck.atompub.test.spec;
 
+import java.util.HashMap;
+import java.util.Map;
+
+import org.apache.abdera.i18n.iri.IRI;
 import org.apache.abdera.model.Entry;
+import org.apache.chemistry.abdera.ext.CMISConstants;
+import org.apache.chemistry.abdera.ext.CMISObject;
+import org.apache.chemistry.abdera.ext.CMISUriTemplate;
 import org.apache.chemistry.tck.atompub.TCKTest;
 import org.apache.chemistry.tck.atompub.http.GetRequest;
 import org.junit.Assert;
@@ -54,4 +61,55 @@
         client.executeRequest(new GetRequest(folder.getSelfLink().getHref().toString() + guid), 404);
     }
 
+    public void testObjectById() throws Exception
+    {
+        // construct document
+        Entry document = fixture.createTestDocument("testObjectById");
+        Assert.assertNotNull(document);
+        CMISObject documentObject = document.getExtension(CMISConstants.OBJECT);
+        Assert.assertNotNull(documentObject);
+        String objectId = documentObject.getObjectId().getStringValue();
+        Assert.assertNotNull(objectId);
+
+        // formulate get request via id
+        CMISUriTemplate objectByIdTemplate = client.getObjectByIdUriTemplate(client.getWorkspace());
+        Map<String, Object> variables = new HashMap<String, Object>();
+        variables.put("id", objectId);
+        IRI objectByIdRequest = objectByIdTemplate.generateUri(variables);
+        
+        // get document
+        Entry documentById = client.getEntry(objectByIdRequest);
+        Assert.assertNotNull(documentById);
+        CMISObject documentByIdObject = document.getExtension(CMISConstants.OBJECT);
+        Assert.assertNotNull(documentByIdObject);
+        Assert.assertEquals(objectId, documentByIdObject.getObjectId().getStringValue());
+    }
+
+    public void testObjectByPath() throws Exception
+    {
+        // construct folder
+        Entry folder = fixture.createTestFolder("testObjectByPath");
+        Assert.assertNotNull(folder);
+        CMISObject folderObject = folder.getExtension(CMISConstants.OBJECT);
+        Assert.assertNotNull(folderObject);
+        String objectId = folderObject.getObjectId().getStringValue();
+        Assert.assertNotNull(objectId);
+        String path = folderObject.getPath().getStringValue();
+        Assert.assertNotNull(path);
+
+        // formulate get request via id
+        CMISUriTemplate objectByPathTemplate = client.getObjectByPathUriTemplate(client.getWorkspace());
+        Map<String, Object> variables = new HashMap<String, Object>();
+        variables.put("path", path);
+        IRI objectByPathRequest = objectByPathTemplate.generateUri(variables);
+        
+        // get folder
+        Entry folderByPath = client.getEntry(objectByPathRequest);
+        Assert.assertNotNull(folderByPath);
+        CMISObject folderByPathObject = folder.getExtension(CMISConstants.OBJECT);
+        Assert.assertNotNull(folderByPathObject);
+        Assert.assertEquals(path, folderByPathObject.getPath().getStringValue());
+        Assert.assertEquals(objectId, folderByPathObject.getObjectId().getStringValue());
+    }
+    
 }

Modified: incubator/chemistry/trunk/chemistry/chemistry-tck-atompub/src/main/resources/org/apache/chemistry/tck/atompub/templates/custom/createcustomdocument.atomentry.xml
URL: http://svn.apache.org/viewvc/incubator/chemistry/trunk/chemistry/chemistry-tck-atompub/src/main/resources/org/apache/chemistry/tck/atompub/templates/custom/createcustomdocument.atomentry.xml?rev=828843&r1=828842&r2=828843&view=diff
==============================================================================
--- incubator/chemistry/trunk/chemistry/chemistry-tck-atompub/src/main/resources/org/apache/chemistry/tck/atompub/templates/custom/createcustomdocument.atomentry.xml (original)
+++ incubator/chemistry/trunk/chemistry/chemistry-tck-atompub/src/main/resources/org/apache/chemistry/tck/atompub/templates/custom/createcustomdocument.atomentry.xml Thu Oct 22 20:46:02 2009
@@ -6,7 +6,7 @@
   <cmisra:object>
     <cmis:properties>
       <cmis:propertyId propertyDefinitionId="cmis:objectTypeId">
-        <cmis:value>D/cmiscustom:document</cmis:value>
+        <cmis:value>D:cmiscustom:document</cmis:value>
       </cmis:propertyId>
       <cmis:propertyString propertyDefinitionId="cmiscustom:docprop_string">
         <cmis:value>custom string</cmis:value>

Modified: incubator/chemistry/trunk/chemistry/chemistry-tck-atompub/src/main/resources/org/apache/chemistry/tck/atompub/templates/custom/createcustomfolder.atomentry.xml
URL: http://svn.apache.org/viewvc/incubator/chemistry/trunk/chemistry/chemistry-tck-atompub/src/main/resources/org/apache/chemistry/tck/atompub/templates/custom/createcustomfolder.atomentry.xml?rev=828843&r1=828842&r2=828843&view=diff
==============================================================================
--- incubator/chemistry/trunk/chemistry/chemistry-tck-atompub/src/main/resources/org/apache/chemistry/tck/atompub/templates/custom/createcustomfolder.atomentry.xml (original)
+++ incubator/chemistry/trunk/chemistry/chemistry-tck-atompub/src/main/resources/org/apache/chemistry/tck/atompub/templates/custom/createcustomfolder.atomentry.xml Thu Oct 22 20:46:02 2009
@@ -5,7 +5,7 @@
   <cmisra:object>
     <cmis:properties>
       <cmis:propertyId propertyDefinitionId="cmis:objectTypeId">
-        <cmis:value>F/cmiscustom:folder</cmis:value>
+        <cmis:value>F:cmiscustom:folder</cmis:value>
       </cmis:propertyId>
       <cmis:propertyString propertyDefinitionId="cmiscustom:folderprop_string">
         <cmis:value>custom string</cmis:value>