jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r929517 - /jackrabbit/trunk/jackrabbit-jcr2spi/src/test/java/org/apache/jackrabbit/jcr2spi/MoveReferenceableTest.java
Date Wed, 31 Mar 2010 12:56:08 GMT
Author: angela
Date: Wed Mar 31 12:56:08 2010
New Revision: 929517

URL: http://svn.apache.org/viewvc?rev=929517&view=rev
Log:
tests

Modified:
    jackrabbit/trunk/jackrabbit-jcr2spi/src/test/java/org/apache/jackrabbit/jcr2spi/MoveReferenceableTest.java

Modified: jackrabbit/trunk/jackrabbit-jcr2spi/src/test/java/org/apache/jackrabbit/jcr2spi/MoveReferenceableTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr2spi/src/test/java/org/apache/jackrabbit/jcr2spi/MoveReferenceableTest.java?rev=929517&r1=929516&r2=929517&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr2spi/src/test/java/org/apache/jackrabbit/jcr2spi/MoveReferenceableTest.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr2spi/src/test/java/org/apache/jackrabbit/jcr2spi/MoveReferenceableTest.java
Wed Mar 31 12:56:08 2010
@@ -99,4 +99,24 @@ public class MoveReferenceableTest exten
         Node n = superuser.getNodeByUUID(uuid);
         assertTrue("After successful moving a referenceable node node, accessing the node
by uuid must return the same node.", n.isSame(moveNode));
     }
+
+    /**
+     * Move a versionable (referenceable) node twice
+     * 
+     * @throws RepositoryException
+     * @see <a href="https://issues.apache.org/jira/browse/JCR-2572">JCR-2572</a>
+     */
+    public void testMoveTwice() throws RepositoryException {
+        moveNode.addMixin(mixVersionable);
+        superuser.save();
+        
+        // move the node
+        doMove(moveNode.getPath(), destinationPath);
+        superuser.save();
+
+        // move second time
+        String destinationPath2 = destParentNode.getPath() + "/" + nodeName3;
+        doMove(destinationPath, destinationPath2);
+        superuser.save();
+    }
 }
\ No newline at end of file



Mime
View raw message