jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1492101 - /jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/RepositoryTest.java
Date Wed, 12 Jun 2013 07:57:56 GMT
Author: mduerig
Date: Wed Jun 12 07:57:56 2013
New Revision: 1492101

URL: http://svn.apache.org/r1492101
Log:
OAK-864: MicroKernelException when moving a node to its own descendant
test case for Session.move

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=1492101&r1=1492100&r2=1492101&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 Jun 12 07:57:56 2013
@@ -1571,6 +1571,19 @@ public class RepositoryTest extends Abst
         assertTrue(node.hasNode("target/moved"));
     }
 
+    @Test(expected = RepositoryException.class)
+    @Ignore
+    public void moveToDescendant() throws RepositoryException {
+        Session session = getAdminSession();
+
+        Node node = getNode(TEST_PATH);
+        Node source = node.addNode("s");
+        session.save();
+
+        session.refresh(true);
+        session.move(TEST_PATH + "/s", TEST_PATH + "/s/t");
+    }
+
     @Test
     public void moveReferenceable() throws RepositoryException {
         Session session = getAdminSession();



Mime
View raw message