Class WorkspaceCopySameNameSibsTest

  • All Implemented Interfaces:
    junit.framework.Test

    public class WorkspaceCopySameNameSibsTest
    extends AbstractJCRTest
    WorkspaceCopySameNameSibsTest contains tests for copying nodes as same name siblings in one workspace.
    • Field Detail

      • PROP_SAME_NAME_SIBS_TRUE_NODE_TYPE

        protected final String PROP_SAME_NAME_SIBS_TRUE_NODE_TYPE
        Node type with sameNameSibs=true NodeDef
        See Also:
        Constant Field Values
      • PROP_SAME_NAME_SIBS_FALSE_NODE_TYPE

        protected final String PROP_SAME_NAME_SIBS_FALSE_NODE_TYPE
        Node type with sameNameSibs=false NodeDef
        See Also:
        Constant Field Values
      • sameNameSibsTrueNodeType

        protected NodeType sameNameSibsTrueNodeType
        A node type where same-name siblings are allowed
      • sameNameSibsFalseNodeType

        protected NodeType sameNameSibsFalseNodeType
        A node type where NO same-name siblings allowed
      • superuserW2

        protected Session superuserW2
        The superuser session for the non default workspace
      • rwSessionW2

        protected Session rwSessionW2
        A read-write session for the non default workspace
      • node1W2

        protected Node node1W2
        A referenceable node in default workspace
      • node2W2

        protected Node node2W2
        A non-referenceable node in default workspace
      • node1

        protected Node node1
        A referenceable node in default workspace
      • node2

        protected Node node2
        A non-referenceable node in default workspace
    • Constructor Detail

      • WorkspaceCopySameNameSibsTest

        public WorkspaceCopySameNameSibsTest()
    • Method Detail

      • testCopyNodesOrderingSupportedByParent

        public void testCopyNodesOrderingSupportedByParent()
                                                    throws RepositoryException
        If ordering is supported by the node type of the parent node of the new location, then the newly moved node is appended to the end of the child node list.
        Throws:
        RepositoryException
      • testCopyNodesNodeExistsAtDestPath

        public void testCopyNodesNodeExistsAtDestPath()
                                               throws RepositoryException
        An ItemExistsException is thrown if a node or property already exists at destAbsPath.
        • sameNameSibsFalseNodeType name of a node type that does not allows same name siblings.
        • nodeName3 name of a child node that does not allow same name siblings..
        Throws:
        RepositoryException
      • testCopyNodesNodeExistsAtDestPath2

        public void testCopyNodesNodeExistsAtDestPath2()
                                                throws RepositoryException
        NO ItemExistsException is thrown if a node already exists at destAbsPath and the node allows same-name-siblings.
        • sameNameSibsTrueNodeType name of a node type that allows same name siblings.
        • nodeName3 name of a child node that allows children with same name.
        Throws:
        RepositoryException