Class CheckinTest

    • Constructor Detail

      • CheckinTest

        public CheckinTest()
    • Method Detail

      • testIsCheckedOutJcr2

        public void testIsCheckedOutJcr2()
                                  throws RepositoryException
        Test if VersionManager.isCheckedOut(P) returns false if P is the absolute path of a checked-in versionable node.
        Throws:
        RepositoryException
      • testCheckinRemovesPredecessorProperty

        public void testCheckinRemovesPredecessorProperty()
                                                   throws RepositoryException
        Test if the node's jcr:predecessors property contains an empty value array after checkin.
        Throws:
        RepositoryException
      • testCheckinRemovesPredecessorPropertyJcr2

        public void testCheckinRemovesPredecessorPropertyJcr2()
                                                       throws RepositoryException
        Test if the node's jcr:predecessors property contains an empty value array after checkin.
        Throws:
        RepositoryException
      • testPredecessorIsCopiedToNewVersion

        public void testPredecessorIsCopiedToNewVersion()
                                                 throws RepositoryException
        Test if the nodes jcr:predecessors property is copied to the new version on Node.checkin().
        Throws:
        RepositoryException
      • testPredecessorIsCopiedToNewVersionJcr2

        public void testPredecessorIsCopiedToNewVersionJcr2()
                                                     throws RepositoryException
        Test if the nodes jcr:predecessors property is copied to the new version on checkin.
        Throws:
        RepositoryException
      • testMultipleCheckinHasNoEffect

        public void testMultipleCheckinHasNoEffect()
                                            throws RepositoryException
        Test if Node.checkin() on a checked-in node has no effect.
        Throws:
        RepositoryException
      • testMultipleCheckinHasNoEffectJcr2

        public void testMultipleCheckinHasNoEffectJcr2()
                                                throws RepositoryException
        Test if VersionManager.checkin(P) has no effect if the path P resolves to a checked-in node.
        Throws:
        RepositoryException
      • testBaseVersionAfterCheckin

        public void testBaseVersionAfterCheckin()
                                         throws RepositoryException
        Test if versionable node N's jcr:baseVersion property is set to refer to the new version after checkin.
        Throws:
        RepositoryException
      • testBaseVersionAfterCheckinJcr2

        public void testBaseVersionAfterCheckinJcr2()
                                             throws RepositoryException
        Test if versionable node N's jcr:baseVersion property is set to refer to the new version after checkin.
        Throws:
        RepositoryException
      • testCheckinWithPendingChanges

        public void testCheckinWithPendingChanges()
                                           throws RepositoryException
        Test if Node.checkin() throws InvalidItemStateException if the node has unsaved changes pending.
        Throws:
        RepositoryException
      • testCheckinWithPendingChangesJcr2

        public void testCheckinWithPendingChangesJcr2()
                                               throws RepositoryException
        Test if VersionManager.checkin(P) throws InvalidItemStateException if the path P resolves to a node that has unsaved changes pending.
        Throws:
        RepositoryException
      • testIsNotCheckedOutJcr2

        public void testIsNotCheckedOutJcr2()
                                     throws RepositoryException
        Test if VersionManager.isCheckedOut(P) returns false after calling VersionManager.checkin(P).
        Throws:
        RepositoryException
      • testCheckinCreatesNewVersion

        public void testCheckinCreatesNewVersion()
                                          throws RepositoryException
        Test if Node.checkin() adds another version to the VersionHistory
        Throws:
        RepositoryException
      • testCheckinCreatesNewVersionJcr2

        public void testCheckinCreatesNewVersionJcr2()
                                              throws RepositoryException
        Test if VersionManager.checkin(String) adds another version to the VersionHistory
        Throws:
        RepositoryException
      • testCheckinNonVersionableNodeJcr2

        public void testCheckinNonVersionableNodeJcr2()
                                               throws RepositoryException
        Test calling VersionManager.checkin(P) with the path P resolving to a non-versionable node.
        Throws:
        RepositoryException