jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r1390383 - /jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/RepositoryTest.java
Date Wed, 26 Sep 2012 10:31:31 GMT
Author: angela
Date: Wed Sep 26 10:31:31 2012
New Revision: 1390383

URL: http://svn.apache.org/viewvc?rev=1390383&view=rev
Log:
OAK-343 (adding test-case, currently ignored)

Modified:
    jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/RepositoryTest.java

Modified: jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/RepositoryTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/RepositoryTest.java?rev=1390383&r1=1390382&r2=1390383&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/RepositoryTest.java
(original)
+++ jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/RepositoryTest.java
Wed Sep 26 10:31:31 2012
@@ -187,6 +187,22 @@ public class RepositoryTest extends Abst
         assertTrue(node.isSame(node2));
     }
 
+    @Ignore //OAK-343
+    @Test
+    public void getNodeByUUID() throws RepositoryException {
+        Node node = getNode("/foo").addNode("boo");
+        node.addMixin(JcrConstants.MIX_REFERENCEABLE);
+
+        assertTrue(node.isNodeType(JcrConstants.MIX_REFERENCEABLE));
+        String uuid = node.getUUID();
+        assertNotNull(uuid);
+        assertEquals(uuid, node.getIdentifier());
+
+        Node nAgain = node.getSession().getNodeByUUID(uuid);
+        assertTrue(nAgain.isSame(node));
+        assertTrue(nAgain.isSame(node.getSession().getNodeByIdentifier(uuid)));
+    }
+
     @Test
     public void getNodeFromNode() throws RepositoryException {
         Node root = getNode("/");



Mime
View raw message