public class LockTest extends AbstractJCRTest
LockTest contains the test cases for the lock support in
the JCR specification.
testroot must allow child nodes of type nodetype
nodetype nodetype which is lockable or allows to add mix:lockable.
The node must also allow child nodes with the same node type as itself.
nodename1 name of a lockable child node of type nodetype.
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 |
|---|
LockTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
testAddRemoveLockToken()
Test lock token functionality
|
void |
testCheckedIn()
Test if it is possible to lock and unlock a checked-in node.
|
void |
testCheckedInUnlock()
Tests if a locked, checked-in node can be unlocked
|
void |
testGetLock()
Test getLock
|
void |
testGetLockOwner()
Test if getLockOwner() returns the same value as returned by
Session.getUserId at the time that the lock was placed
|
void |
testGetLockOwnerProperty()
Test if getLockOwner() returns the same value as returned by
Session.getUserId at the time that the lock was placed
|
void |
testGetNode()
Test to get the lock holding node of a node
|
void |
testIsDeep()
Test Lock.isDeep()
|
void |
testIsSessionScoped()
Test Lock.isSessionScoped()
|
void |
testLockTransfer()
Test locks may be transferred to other session
|
void |
testLogout()
Test locks are released when session logs out
|
void |
testMoveLocked()
Tests if move preserves lock state (JIRA issue JCR-207).
|
void |
testNodeLocked()
Test session scope: other session may not access nodes that are
locked.
|
void |
testOpenScopedLocks()
Test open-scoped locks
|
void |
testParentChildDeepLock()
Test parent/child lock
|
void |
testParentChildLock()
Test parent/child lock
|
void |
testRefresh()
Test refresh
|
void |
testRefreshNotLive()
Test refresh
|
void |
testReorder()
Tests if locks are maintained when child nodes are reordered
|
void |
testReorder2()
Tests if locks are maintained when child nodes are reordered
|
void |
testShallowLock()
Test if a shallow lock does not lock the child nodes of the locked node.
|
void |
testUnlockSameNameSibling()
Tests if unlocking the first of two locked same-name sibling nodes does
not unlock the second (JIRA issue JCR-284).
|
checkSupportedOption, cleanUp, cleanUpTestRoot, createRandomString, ensureCanSetProperty, ensureCanSetProperty, ensureCanSetProperty, ensureKnowsNodeType, ensureLockingSupported, ensureMixinType, ensureMultipleWorkspacesSupported, getHelper, getJcrValue, getLocalName, getNonExistingWorkspaceName, getPrefix, getProperty, getProperty, getQualifiedName, getSize, isSupported, needsMixin, run, setUp, tearDownassertEquals, 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, toStringpublic void testAddRemoveLockToken()
throws Exception
Exceptionpublic void testNodeLocked()
throws Exception
Exceptionpublic void testGetNode()
throws Exception
Exceptionpublic void testGetLockOwnerProperty()
throws Exception
Exceptionpublic void testGetLockOwner()
throws Exception
Exceptionpublic void testShallowLock()
throws Exception
Exceptionpublic void testCheckedIn()
throws NotExecutableException,
RepositoryException
public void testParentChildLock()
throws Exception
Exceptionpublic void testParentChildDeepLock()
throws Exception
Exceptionpublic void testIsDeep()
throws RepositoryException,
NotExecutableException
public void testIsSessionScoped()
throws RepositoryException,
NotExecutableException
public void testLogout()
throws Exception
Exceptionpublic void testLockTransfer()
throws Exception
Exceptionpublic void testOpenScopedLocks()
throws Exception
Exceptionpublic void testCheckedInUnlock()
throws Exception
Exceptionpublic void testReorder()
throws Exception
Exceptionpublic void testReorder2()
throws Exception
Exceptionpublic void testMoveLocked()
throws Exception
Exceptionpublic void testUnlockSameNameSibling()
throws RepositoryException,
NotExecutableException
Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.