jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thom...@apache.org
Subject svn commit: r1143806 - /jackrabbit/sandbox/spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/RepositoryTest.java
Date Thu, 07 Jul 2011 13:07:43 GMT
Author: thomasm
Date: Thu Jul  7 13:07:43 2011
New Revision: 1143806

URL: http://svn.apache.org/viewvc?rev=1143806&view=rev
Log:
Can not create new node just below the root node.

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=1143806&r1=1143805&r2=1143806&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
Thu Jul  7 13:07:43 2011
@@ -260,6 +260,16 @@ public class RepositoryTest {
     }
 
     @Test
+    public void addNodeToRootNode() throws RepositoryException {
+        Session session = getSession();
+        Node root = session.getRootNode();
+        String newNode = "newNodeBelowRoot";
+        assertFalse(root.hasNode(newNode));
+        root.addNode(newNode);
+        session.save();
+    }
+
+    @Test
     public void addStringProperty() throws RepositoryException {
         Node parentNode = getNode(testPath);
         addProperty(parentNode, "string", getSession().getValueFactory().createValue("string
value"));



Mime
View raw message