Class WorkspaceRestoreTest

    • Constructor Detail

      • WorkspaceRestoreTest

        public WorkspaceRestoreTest()
    • Method Detail

      • testWorkspaceRestoreWithPendingChanges

        public void testWorkspaceRestoreWithPendingChanges()
                                                    throws RepositoryException
        Test if InvalidItemStateException is thrown if the session affected by Workspace.restore(Version[], boolean) has pending changes.
        Throws:
        RepositoryException
      • testWorkspaceRestoreWithPendingChangesJcr2

        public void testWorkspaceRestoreWithPendingChangesJcr2()
                                                        throws RepositoryException
        Test if InvalidItemStateException is thrown if the session affected by VersionManager.restore(Version[], boolean) has pending changes.
        Throws:
        RepositoryException
      • testWorkspaceRestoreHasCorrespondingNode

        public void testWorkspaceRestoreHasCorrespondingNode()
                                                      throws RepositoryException
        Test if VersionException is thrown if the specified version array does not contain a version that has a corresponding node in this workspace.
        Throws:
        RepositoryException
      • testWorkspaceRestoreHasCorrespondingNodeJcr2

        public void testWorkspaceRestoreHasCorrespondingNodeJcr2()
                                                          throws RepositoryException
        Test if VersionException is thrown if the specified version array does not contain a version that has a corresponding node in this workspace.
        Throws:
        RepositoryException
      • testWorkspaceRestoreWithParent

        public void testWorkspaceRestoreWithParent()
                                            throws RepositoryException
        Test if Workspace.restore(Version[], boolean) succeeds if the following two preconditions are fulfilled:
        • For every version V in S that corresponds to a missing node in the workspace, there must also be a parent of V in S.
        • S must contain at least one version that corresponds to an existing node in the workspace.
        Throws:
        RepositoryException
      • testWorkspaceRestoreWithParentJcr2

        public void testWorkspaceRestoreWithParentJcr2()
                                                throws RepositoryException
        Test if VersionManager.restore(Version[], boolean) succeeds if the following two preconditions are fulfilled:
        • For every version V in S that corresponds to a missing node in the workspace, there must also be a parent of V in S.
        • S must contain at least one version that corresponds to an existing node in the workspace.
        Throws:
        RepositoryException
      • testWorkspaceRestoreOnCheckedInNode

        public void testWorkspaceRestoreOnCheckedInNode()
                                                 throws RepositoryException
        Test if workspace-restoring a node works on checked-in node.
        Throws:
        RepositoryException
      • testWorkspaceRestoreOnCheckedInNodeJcr2

        public void testWorkspaceRestoreOnCheckedInNodeJcr2()
                                                     throws RepositoryException
        Test if workspace-restoring a node works on checked-in node.
        Throws:
        RepositoryException
      • testWorkspaceRestoreOnCheckedOutNode

        public void testWorkspaceRestoreOnCheckedOutNode()
                                                  throws RepositoryException
        Test if workspace-restoring a node works on checked-out node.
        Throws:
        RepositoryException
      • testWorkspaceRestoreOnCheckedOutNodeJcr2

        public void testWorkspaceRestoreOnCheckedOutNodeJcr2()
                                                      throws RepositoryException
        Test if workspace-restoring a node works on checked-out node.
        Throws:
        RepositoryException