Class SessionUUIDTest

  • All Implemented Interfaces:

    public class SessionUUIDTest
    extends AbstractJCRTest
    SessionUUIDTest contains all tests for the Session class that require a UUID (and therefore are optional).
    • Constructor Detail

      • SessionUUIDTest

        public SessionUUIDTest()
    • Method Detail

      • testSaveMovedRefNode

        public void testSaveMovedRefNode()
                                  throws RepositoryException,
        Moves a referencable node using Session.move(String, String) with one session and saves afterward changes made with a second session to the moved node using


        • Creates node 1 and node 2 with session 1
        • Gets reference to node 1 using session 2
        • Session 1 moves node 1 under node 2, saves changes
        • Session 2 modifes node 1, saves
        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.

        • javax.jcr.tck.SessionUUIDTest.nodetype2 must have the mixin type mix:referenceable assigned.
        • javax.jcr.tck.SessionUUIDTest.testSaveMovedRefNode.propertyname1 name of a property that can be modified in nodetype2 for testing