Class NodeMovedTest

    • Constructor Detail

      • NodeMovedTest

        public NodeMovedTest()
    • Method Detail

      • testMoveWithRemove

        public void testMoveWithRemove()
                                throws RepositoryException
        Tests if a node moved triggers the correct events when the former parent node is removed at the same time.
        Throws:
        RepositoryException
      • checkNodeMoved

        protected void checkNodeMoved​(Event[] events,
                                      String from,
                                      String to)
                               throws RepositoryException
        TODO: move to base class once JSR 283 is final Checks Events for paths. All relPaths are relative to AbstractJCRTest.testRoot.
        Parameters:
        events - the Events.
        from - the source path where the node was moved from.
        to - the destination path where the node was moved to.
        Throws:
        RepositoryException - if an error occurs while retrieving the nodes from event instances.
      • checkInfoEntry

        protected void checkInfoEntry​(Map<?,​?> info,
                                      String key,
                                      String expected)
        TODO: move to base class once JSR 283 is final Checks if the info map contains the given key with the expected value.
        Parameters:
        info - the event info map.
        key - the name of the key.
        expected - the expected value.