org.apache.jackrabbit.test.api.version
Class CheckinTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.apache.jackrabbit.test.JUnitTest
              extended byorg.apache.jackrabbit.test.AbstractJCRTest
                  extended byorg.apache.jackrabbit.test.api.version.AbstractVersionTest
                      extended byorg.apache.jackrabbit.test.api.version.CheckinTest
All Implemented Interfaces:
junit.framework.Test

public class CheckinTest
extends AbstractVersionTest

CheckinTest covers tests related to Node.checkin().


Field Summary
 
Fields inherited from class org.apache.jackrabbit.test.api.version.AbstractVersionTest
nonVersionableNode, nonVersionableNodeType, propertyValue, versionableNode, versionableNodeType
 
Fields inherited from class org.apache.jackrabbit.test.AbstractJCRTest
helper, isReadOnly, jcrBaseVersion, jcrCreated, jcrFrozenNode, jcrlockIsDeep, jcrLockOwner, jcrMergeFailed, jcrMixinTypes, jcrPredecessors, jcrPrimaryType, jcrRootVersion, jcrSuccessors, jcrSystem, jcrUUID, jcrVersionHistory, mixLockable, mixReferenceable, mixVersionable, nodeName1, nodeName2, nodeName3, nodeName4, NS_JCR_URI, NS_MIX_URI, NS_NT_URI, NS_SV_URI, ntBase, ntFrozenNode, ntQuery, ntVersion, ntVersionHistory, ntVersionLabels, propertyName1, propertyName2, superuser, testNodeType, testPath, testRoot, testRootNode, workspaceName
 
Fields inherited from class org.apache.jackrabbit.test.JUnitTest
log
 
Constructor Summary
CheckinTest()
           
 
Method Summary
protected  void setUp()
           
 void testBaseVersionAfterCheckin()
          Test if versionable node N's jcr:baseVersion property is set to refer to the new version after checkin.
 void testCheckinCreatesNewVersion()
          Test if Node.checkin() adds another version to the VersionHistory
 void testCheckinNonVersionableNode()
          Test calling Node.checkin() on a non-versionable node.
 void testCheckinRemovesPredecessorProperty()
          Test if the node's jcr:predecessors property contains an empty value array after checkin.
 void testCheckinWithPendingChanges()
          Test if Node.checkin() throws InvalidItemStateException if the node has unsaved changes pending.
 void testIsCheckedOut()
          Test if Node.isCheckedOut() return false after calling Node.checkin()
 void testIsNotCheckedOut()
          Test if Node.isCheckedOut() returns false after Node.checkin().
 void testMultipleCheckinHasNoEffect()
          Test if Node.checkin() on a checked-in node has no effect.
 void testPredecessorIsCopiedToNewVersion()
          Test if the nodes jcr:predecessors property is copied to the new version on Node.checkin().
 
Methods inherited from class org.apache.jackrabbit.test.api.version.AbstractVersionTest
createVersionableNode, getNumberOfVersions, tearDown
 
Methods inherited from class org.apache.jackrabbit.test.AbstractJCRTest
createRandomString, getNonExistingWorkspaceName, getProperty, getSize, run
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CheckinTest

public CheckinTest()
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class AbstractVersionTest
Throws:
java.lang.Exception

testIsCheckedOut

public void testIsCheckedOut()
                      throws javax.jcr.RepositoryException
Test if Node.isCheckedOut() return false after calling Node.checkin()

Throws:
javax.jcr.RepositoryException

testCheckinRemovesPredecessorProperty

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

Throws:
javax.jcr.RepositoryException

testPredecessorIsCopiedToNewVersion

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

Throws:
javax.jcr.RepositoryException

testMultipleCheckinHasNoEffect

public void testMultipleCheckinHasNoEffect()
                                    throws javax.jcr.RepositoryException
Test if Node.checkin() on a checked-in node has no effect.

Throws:
javax.jcr.RepositoryException

testBaseVersionAfterCheckin

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

Throws:
javax.jcr.RepositoryException

testCheckinWithPendingChanges

public void testCheckinWithPendingChanges()
                                   throws javax.jcr.RepositoryException
Test if Node.checkin() throws InvalidItemStateException if the node has unsaved changes pending.

Throws:
javax.jcr.RepositoryException

testIsNotCheckedOut

public void testIsNotCheckedOut()
                         throws javax.jcr.RepositoryException
Test if Node.isCheckedOut() returns false after Node.checkin().

Throws:
javax.jcr.RepositoryException

testCheckinCreatesNewVersion

public void testCheckinCreatesNewVersion()
                                  throws javax.jcr.RepositoryException
Test if Node.checkin() adds another version to the VersionHistory

Throws:
javax.jcr.RepositoryException

testCheckinNonVersionableNode

public void testCheckinNonVersionableNode()
                                   throws javax.jcr.RepositoryException
Test calling Node.checkin() on a non-versionable node.

Throws:
javax.jcr.RepositoryException


Copyright © -2005 . All Rights Reserved.