jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1144350 - /jackrabbit/sandbox/spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/RepositoryTest.java
Date Fri, 08 Jul 2011 15:00:15 GMT
Author: mduerig
Date: Fri Jul  8 15:00:15 2011
New Revision: 1144350

URL: http://svn.apache.org/viewvc?rev=1144350&view=rev
Log:
test: getNodeByIndentifier

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=1144350&r1=1144349&r2=1144350&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
Fri Jul  8 15:00:15 2011
@@ -195,6 +195,14 @@ public class RepositoryTest {
     }
 
     @Test
+    public void getNodeByIdentifier() throws RepositoryException {
+        Node node = getNode("/foo");
+        String id = node.getIdentifier();
+        Node node2 = getSession().getNodeByIdentifier(id);
+        assertTrue(node.isSame(node2));
+    }
+
+    @Test
     public void getNodeFromNode() throws RepositoryException {
         Node root = getNode("/");
         Node node = root.getNode("foo");



Mime
View raw message