jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From resc...@apache.org
Subject svn commit: r772621 - /jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/SessionReadMethodsTest.java
Date Thu, 07 May 2009 11:49:40 GMT
Author: reschke
Date: Thu May  7 11:49:40 2009
New Revision: 772621

URL: http://svn.apache.org/viewvc?rev=772621&view=rev
Log:
JCR-2059: add TCK test for getNodeByIdentifier

Modified:
    jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/SessionReadMethodsTest.java

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/SessionReadMethodsTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/SessionReadMethodsTest.java?rev=772621&r1=772620&r2=772621&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/SessionReadMethodsTest.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/SessionReadMethodsTest.java
Thu May  7 11:49:40 2009
@@ -129,6 +129,19 @@
     }
 
     /**
+     * Tests session.getNodeByIdentifier()
+     * 
+     * @since JCR 2.0
+     */
+    public void testGetNodeByIdentifier() throws RepositoryException, NotExecutableException
{
+        String identifier = testRootNode.getIdentifier();
+        Node node = session.getNodeByIdentifier(identifier);
+        assertTrue("Node retrieved with session.getNodeByIdentifier is not the same " +
+                "as the node having the given identifier.",
+                testRootNode.isSame(node));
+    }
+
+    /**
      * Tests if getAttribute(String name) returns not null if the requested
      * attribute is existing
      */



Mime
View raw message