public class CheckoutTest extends AbstractVersionTest
nonVersionableNode, nonVersionableNodeType, propertyValue, versionableNode, versionableNodeType
isReadOnly, jcrBaseVersion, jcrCopiedFrom, jcrCreated, jcrFrozenNode, jcrFrozenUuid, jcrIsCheckedOut, jcrlockIsDeep, jcrLockOwner, jcrMergeFailed, jcrMixinTypes, jcrPredecessors, jcrPrimaryType, jcrRootVersion, jcrSuccessors, jcrSystem, jcrUUID, jcrVersionHistory, mixLockable, mixReferenceable, mixShareable, mixSimpleVersionable, mixTitle, mixVersionable, nodeName1, nodeName2, nodeName3, nodeName4, NS_JCR_URI, NS_MIX_URI, NS_NT_URI, NS_SV_URI, ntActivity, ntBase, ntFrozenNode, ntQuery, ntUnstructured, ntVersion, ntVersionHistory, ntVersionLabels, propertyName1, propertyName2, superuser, testNodeType, testNodeTypeNoChildren, testNodeTypeTestRoot, testPath, testRoot, testRootNode, vf, workspaceName
Constructor and Description |
---|
CheckoutTest() |
Modifier and Type | Method and Description |
---|---|
protected void |
setUp() |
void |
testCheckoutCopiesBaseValueToPredecessorProperty()
Test if Node.checkout() copies the node's jcr:baseVersion to node's
jcr:predecessors property (no save required).
|
void |
testCheckoutCopiesBaseValueToPredecessorPropertyJcr2()
Test if VersionManager.checkout(P), with P denoting the absolute path
of a versionable node, copies the node's jcr:baseVersion to the node's
jcr:predecessors property (no save required).
|
void |
testCheckoutNonVersionableNode()
Test calling Node.checkout() on a non-versionable node.
|
void |
testCheckoutNonVersionableNodeJcr2()
Test calling VersionManager.checkout(P) with P denoting the absolute
path of a non-versionable node.
|
void |
testCheckoutTwiceDoesNotThrow()
Test if Node.checkout() doesn't throw any exception if the versionable
node has been checked out before.
|
void |
testCheckoutTwiceDoesNotThrowJcr2()
Test if VersionManager.checkout(P) doesn't throw any exception if P
denotes the absolute path of a versionable node that has been checked
out before.
|
void |
testIsCheckedOut()
Test if Node.isCheckedOut() returns true, if the versionable node has
been checked out before.
|
void |
testIsCheckedOutJcr2()
Test if VersionManager.isCheckedOut(P) returns true if P is the
absolute path of a versionable node that has been checked out before.
|
void |
testIsCheckedOutNonVersionableNode()
Test calling Node.isCheckedOut() on a non-versionable.
|
void |
testIsCheckedOutNonVersionableNodeJcr2()
Test calling VersionManager.isCheckedOut(P) with P denoting the
absolute path of a non-versionable node.
|
createVersionableNode, getNumberOfVersions, tearDown
checkSupportedOption, cleanUp, cleanUpTestRoot, createRandomString, ensureCanSetProperty, ensureCanSetProperty, ensureCanSetProperty, ensureKnowsNodeType, ensureLockingSupported, ensureMixinType, ensureMultipleWorkspacesSupported, getHelper, getJcrValue, getLocalName, getNonExistingWorkspaceName, getPrefix, getProperty, getProperty, getQualifiedName, getSize, isSupported, needsMixin, run
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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, runBare, runTest, setName, toString
protected void setUp() throws Exception
setUp
in class AbstractVersionTest
Exception
public void testIsCheckedOut() throws RepositoryException
RepositoryException
public void testIsCheckedOutJcr2() throws RepositoryException
RepositoryException
public void testIsCheckedOutNonVersionableNode() throws RepositoryException
RepositoryException
public void testIsCheckedOutNonVersionableNodeJcr2() throws RepositoryException
RepositoryException
public void testCheckoutNonVersionableNode() throws RepositoryException
RepositoryException
public void testCheckoutNonVersionableNodeJcr2() throws RepositoryException
RepositoryException
public void testCheckoutTwiceDoesNotThrow() throws RepositoryException
RepositoryException
public void testCheckoutTwiceDoesNotThrowJcr2() throws RepositoryException
RepositoryException
public void testCheckoutCopiesBaseValueToPredecessorProperty() throws RepositoryException
RepositoryException
public void testCheckoutCopiesBaseValueToPredecessorPropertyJcr2() throws RepositoryException
RepositoryException
Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.