Class CheckinTest

  • All Implemented Interfaces:
    junit.framework.Test

    public class CheckinTest
    extends AbstractVersionTest
    CheckinTest covers tests related to Node.checkin() on simple versionable nodes.
    • 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
      • 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
      • 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