jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1151524 - /jackrabbit/sandbox/spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/RepositoryTest.java
Date Wed, 27 Jul 2011 16:16:40 GMT
Author: mduerig
Date: Wed Jul 27 16:16:39 2011
New Revision: 1151524

URL: http://svn.apache.org/viewvc?rev=1151524&view=rev
Log:
spi2microkernel (WIP)
- test: node name with { character 

Modified:
    jackrabbit/sandbox/spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/RepositoryTest.java

Modified: jackrabbit/sandbox/spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/RepositoryTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/RepositoryTest.java?rev=1151524&r1=1151523&r2=1151524&view=diff
==============================================================================
--- jackrabbit/sandbox/spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/RepositoryTest.java
(original)
+++ jackrabbit/sandbox/spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/RepositoryTest.java
Wed Jul 27 16:16:39 2011
@@ -272,6 +272,27 @@ public class RepositoryTest {
     }
 
     @Test
+    public void addNodeWithSpecialChars() throws RepositoryException {
+        Session session = getSession();
+        String nodeName = "foo{";
+
+        String newNode = testPath + '/' + nodeName;
+        assertFalse(session.nodeExists(newNode));
+
+        Node node = getNode(testPath);
+        node.addNode(nodeName);
+        session.save();
+
+        Session session2 = getRepository().login();
+        try {
+            assertTrue(session2.nodeExists(newNode));
+        }
+        finally {
+            session2.logout();
+        }
+    }
+
+    @Test
     public void addNodeWithNodeType() throws RepositoryException {
         Session session = getSession();
 



Mime
View raw message