Index: src/main/java/org/apache/jackrabbit/test/api/NodeUUIDTest.java =================================================================== --- src/main/java/org/apache/jackrabbit/test/api/NodeUUIDTest.java (revision 520964) +++ src/main/java/org/apache/jackrabbit/test/api/NodeUUIDTest.java (working copy) @@ -23,6 +23,7 @@ import javax.jcr.Node; import javax.jcr.Session; import javax.jcr.ReferentialIntegrityException; +import javax.jcr.InvalidItemStateException; import javax.jcr.nodetype.NoSuchNodeTypeException; /** @@ -86,13 +87,15 @@ /** * Moves a referencable node using {@link javax.jcr.Session#move(String, - * String)} with one session and saves afterward changes made with a second + * String)} with one session and saves afterward changes made with a second * session to the moved node using {@link Node#save()}.

* Procedure: This should work since the modified node is identified - * by its UUID, not by position in repository.

Prerequisites: This should work (since the modified node is identified + * by its UUID, not by position in repository) or throw an + * InvalidItemStateException if 'move' is reported to the second + * session as a sequence of remove and add events.

Prerequisites: - * This should work since the modified node is identified by its UUID, not by position in repository. + * This should work (since the modified node is identified by its UUID, not by position in repository) + * or throw an InvalidItemStateException if 'move' is reported + * to the second session as a sequence of remove and add events. *

Prerequisites: *