chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject svn commit: r1362648 - /chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/ObjectServiceTest.java
Date Tue, 17 Jul 2012 21:10:53 GMT
Author: jens
Date: Tue Jul 17 21:10:52 2012
New Revision: 1362648

URL: http://svn.apache.org/viewvc?rev=1362648&view=rev
Log:
InMemory: add a unit test for special characters in name property

Modified:
    chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/ObjectServiceTest.java

Modified: chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/ObjectServiceTest.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/ObjectServiceTest.java?rev=1362648&r1=1362647&r2=1362648&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/ObjectServiceTest.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/ObjectServiceTest.java
Tue Jul 17 21:10:52 2012
@@ -892,6 +892,24 @@ public class ObjectServiceTest extends A
         assertEquals(id, returnedId);
         log.info("... testGetObjectNoObjectIdInFilter() finished.");
     }
+    
+    @Test
+    public void testSpecialChars() {
+
+            log.info("starting testGetObjectByPath() with specal chars...");
+            log.info("  creating object");
+
+            String docID = createDocument("Hänschen", fRootFolderId, false);
+            log.info("  getting object by path with special chars");
+            try {
+                ObjectData res = fObjSvc.getObjectByPath(fRepositoryId, "/Hänschen", "*",
false, IncludeRelationships.NONE, null, false,
+                        false, null);
+                assertNotNull(res);
+               assertNotNull(res.getId());
+             } catch (Exception e) {
+                fail("getObject() failed with exception: " + e);
+            }
+    }
 
     private static void verifyAllowableActionsDocument(Set<Action> actions, boolean
isVersioned, boolean hasContent) {
         assertTrue(actions.contains(Action.CAN_DELETE_OBJECT));



Mime
View raw message