jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1132952 - /jackrabbit/sandbox/spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/RepositoryTest.java
Date Tue, 07 Jun 2011 10:55:42 GMT
Author: mduerig
Date: Tue Jun  7 10:55:42 2011
New Revision: 1132952

URL: http://svn.apache.org/viewvc?rev=1132952&view=rev
Log:
spi2microkernel prototype (WIP)
write support: addNode

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=1132952&r1=1132951&r2=1132952&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
Tue Jun  7 10:55:42 2011
@@ -202,11 +202,22 @@ public class RepositoryTest {
 
     @Test
     public void addNode() throws RepositoryException {
+        Session session = getSession();
+        assertFalse(session.nodeExists("/bar/new"));
+
         Node node = getNode("/bar");
         node.addNode("new");
         getSession().save();
+
+        Session session2 = getRepository().login();
+        try {
+            assertTrue(session.nodeExists("/bar/new"));
+        }
+        finally {
+            session2.logout();
+        }
     }
-    
+
     //------------------------------------------< private >---
 
     private Repository getRepository() throws RepositoryException {



Mime
View raw message