jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1225541 - /jackrabbit/sandbox/jackrabbit-microkernel/src/test/java/org/apache/jackrabbit/RepositoryTest.java
Date Thu, 29 Dec 2011 14:22:11 GMT
Author: mduerig
Date: Thu Dec 29 14:22:11 2011
New Revision: 1225541

URL: http://svn.apache.org/viewvc?rev=1225541&view=rev
Log:
Microkernel based prototype of JCR implementation (WIP)
- test

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

Modified: jackrabbit/sandbox/jackrabbit-microkernel/src/test/java/org/apache/jackrabbit/RepositoryTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jackrabbit-microkernel/src/test/java/org/apache/jackrabbit/RepositoryTest.java?rev=1225541&r1=1225540&r2=1225541&view=diff
==============================================================================
--- jackrabbit/sandbox/jackrabbit-microkernel/src/test/java/org/apache/jackrabbit/RepositoryTest.java
(original)
+++ jackrabbit/sandbox/jackrabbit-microkernel/src/test/java/org/apache/jackrabbit/RepositoryTest.java
Thu Dec 29 14:22:11 2011
@@ -1564,6 +1564,7 @@ public class RepositoryTest {
         
         Node n1 = session.getNode(TEST_PATH);
         Node n2 = session.getNode(TEST_PATH);
+        assertTrue(n1.isSame(n2));
 
         Node c1 = n1.addNode("c1");
         n1.setProperty("p1", "v1");
@@ -1573,6 +1574,9 @@ public class RepositoryTest {
         n2.setProperty("p2", "v2");
         c2.setProperty("pc2", "vc2");
 
+        assertTrue(c1.isSame(n2.getNode("c1")));
+        assertTrue(c2.isSame(n1.getNode("c2")));
+
         assertTrue(n1.hasNode("c1"));
         assertTrue(n1.hasNode("c2"));
         assertTrue(n1.hasProperty("p1"));



Mime
View raw message