Class WorkspaceCloneSameNameSibsTest

  • All Implemented Interfaces:
    junit.framework.Test

    public class WorkspaceCloneSameNameSibsTest
    extends AbstractJCRTest
    WorkspaceCloneSameNameSibsTest contains tests for cloning nodes as same name siblings between 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

      • WorkspaceCloneSameNameSibsTest

        public WorkspaceCloneSameNameSibsTest()
    • Method Detail

      • testCloneNodesOrderingSupportedByParent

        public void testCloneNodesOrderingSupportedByParent()
                                                     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
      • testCloneNodesNodeExistsAtDestPath

        public void testCloneNodesNodeExistsAtDestPath()
                                                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