jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r1443895 - /jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/MoveTest.java
Date Fri, 08 Feb 2013 09:14:55 GMT
Author: angela
Date: Fri Feb  8 09:14:55 2013
New Revision: 1443895

URL: http://svn.apache.org/r1443895
Log:
OAK-606, OAK-607: moving referenceable nodes

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

Modified: jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/MoveTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/MoveTest.java?rev=1443895&r1=1443894&r2=1443895&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/MoveTest.java
(original)
+++ jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/MoveTest.java
Fri Feb  8 09:14:55 2013
@@ -18,6 +18,7 @@ package org.apache.jackrabbit.oak.jcr;
 
 import javax.jcr.Node;
 
+import org.apache.jackrabbit.JcrConstants;
 import org.apache.jackrabbit.test.AbstractJCRTest;
 import org.junit.Ignore;
 import org.junit.Test;
@@ -73,6 +74,19 @@ public class MoveTest extends AbstractJC
         assertEquals(destPath, node1.getPath());
     }
 
+    @Ignore("OAK-606")
+    public void testMoveReferenceable() throws Exception {
+        Node node1 = testRootNode.addNode(nodeName1);
+        node1.addMixin(JcrConstants.MIX_REFERENCEABLE);
+        Node node2 = testRootNode.addNode(nodeName2);
+        superuser.save();
+
+        String destPath = node2.getPath() + '/' + nodeName1;
+        move(node1.getPath(), destPath, true);
+
+        assertEquals(destPath, node1.getPath());
+    }
+
     @Ignore("OAK-607")
     @Test
     public void testMoveNewNode() throws Exception {
@@ -87,4 +101,21 @@ public class MoveTest extends AbstractJC
         superuser.save();
         assertEquals(destPath, node1.getPath());
     }
+
+    @Ignore("OAK-607")
+    @Test
+    public void testMoveNewReferenceable() throws Exception {
+        Node node1 = testRootNode.addNode(nodeName1);
+        node1.addMixin(JcrConstants.MIX_REFERENCEABLE);
+        assertTrue(node1.isNodeType(JcrConstants.MIX_REFERENCEABLE));
+        Node node2 = testRootNode.addNode(nodeName2);
+
+        String destPath = node2.getPath() + '/' + nodeName1;
+        move(node1.getPath(), destPath, false);
+
+        assertEquals(destPath, node1.getPath());
+
+        superuser.save();
+        assertEquals(destPath, node1.getPath());
+    }
 }
\ No newline at end of file



Mime
View raw message