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

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.jackrabbit.test.JUnitTest
              extended by org.apache.jackrabbit.test.AbstractJCRTest
                  extended by org.apache.jackrabbit.test.api.version.AbstractVersionTest
                      extended by org.apache.jackrabbit.test.api.version.VersionGraphTest
All Implemented Interfaces:
junit.framework.Test

public class VersionGraphTest
extends AbstractVersionTest

VersionGraphTest contains test methods related to version graph issues.


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, jcrFrozenUuid, 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, testNodeTypeNoChildren, testPath, testRoot, testRootNode, workspaceName
 
Fields inherited from class org.apache.jackrabbit.test.JUnitTest
log
 
Constructor Summary
VersionGraphTest()
           
 
Method Summary
 void testGetBaseVersionOnNonVersionableNode()
          Test if UnsupportedRepositoryOperationException is thrown when calling Node.getVersionHistory() on a non-versionable node.
 void testInitialBaseVersionPointsToRootVersion()
          Test that the initial base version after creation of a versionable node points to the root version.
 void testInitialNodePredecessors()
          Test if after creation of a versionable node N the multi-value REFERENCE property jcr:predecessors of N is initialized to contain a single UUID, that of the root version (the same as jcr:baseVersion).
 void testRootVersionHasNoPredecessor()
          Test if the root version does not have any predecessor versions.
 
Methods inherited from class org.apache.jackrabbit.test.api.version.AbstractVersionTest
createVersionableNode, getNumberOfVersions, setUp, tearDown
 
Methods inherited from class org.apache.jackrabbit.test.AbstractJCRTest
cleanUp, cleanUpTestRoot, createRandomString, ensureCanSetProperty, ensureCanSetProperty, ensureCanSetProperty, ensureMultipleWorkspacesSupported, getNonExistingWorkspaceName, getProperty, getSize, isSupported, needsMixin, 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

VersionGraphTest

public VersionGraphTest()
Method Detail

testInitialBaseVersionPointsToRootVersion

public void testInitialBaseVersionPointsToRootVersion()
                                               throws RepositoryException
Test that the initial base version after creation of a versionable node points to the root version.

Throws:
RepositoryException

testInitialNodePredecessors

public void testInitialNodePredecessors()
                                 throws RepositoryException
Test if after creation of a versionable node N the multi-value REFERENCE property jcr:predecessors of N is initialized to contain a single UUID, that of the root version (the same as jcr:baseVersion).

Throws:
RepositoryException

testRootVersionHasNoPredecessor

public void testRootVersionHasNoPredecessor()
                                     throws RepositoryException
Test if the root version does not have any predecessor versions.

Throws:
RepositoryException

testGetBaseVersionOnNonVersionableNode

public void testGetBaseVersionOnNonVersionableNode()
                                            throws RepositoryException
Test if UnsupportedRepositoryOperationException is thrown when calling Node.getVersionHistory() on a non-versionable node.

Throws:
RepositoryException


Copyright © 2004-2008 The Apache Software Foundation. All Rights Reserved.