public abstract class AbstractLockTest extends AbstractJCRTest
AbstractLockTest
...Modifier and Type | Field and Description |
---|---|
protected Node |
childNode |
protected Lock |
lock |
protected Node |
lockedNode |
protected LockManager |
lockMgr |
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 |
---|
AbstractLockTest() |
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 LockManager lockMgr
protected Node lockedNode
protected Node childNode
protected Lock lock
protected void setUp() throws Exception
setUp
in class AbstractJCRTest
Exception
protected void tearDown() throws Exception
tearDown
in class AbstractJCRTest
Exception
protected abstract boolean isSessionScoped()
protected abstract boolean isDeep()
protected void assertLockable(Node n) throws RepositoryException, NotExecutableException
protected long getTimeoutHint() throws RepositoryException
RepositoryException
protected String getLockOwner() throws RepositoryException
RepositoryException
protected static LockManager getLockManager(Session session) throws RepositoryException
RepositoryException
public void testIsDeep()
Lock.isDeep()
.public void testIsLive() throws RepositoryException
Lock.isLive()
.RepositoryException
public void testRefresh() throws RepositoryException
Lock.refresh()
on a released lock.RepositoryException
public void testRefreshNotLive() throws Exception
Lock.refresh()
on a released lock.Exception
public void testLockHoldingNode() throws RepositoryException
Lock.getNode()
.RepositoryException
- If an exception occurs.public void testNodeIsLocked() throws RepositoryException
LockManager.isLocked(String)
and Node.isLocked()
.RepositoryException
- If an exception occurs.public void testNodeHoldsLocked() throws RepositoryException
RepositoryException
- If an exception occurs.public void testLockVisibility() throws RepositoryException
RepositoryException
public void testIsSessionScoped()
public void testIsLockOwningSession() throws RepositoryException
RepositoryException
- If an exception occurs.public void testGetSecondsRemaining() throws RepositoryException
RepositoryException
public void testGetSecondsRemainingAfterUnlock() throws RepositoryException
RepositoryException
public void testLockExpiration() throws RepositoryException, NotExecutableException
public void testOwnerHint() throws RepositoryException, NotExecutableException
public void testUnlock() throws RepositoryException
RepositoryException
public void testUnlockByOtherSession() throws RepositoryException, NotExecutableException
LockManager.unlock(String)
for a session that is not
lock owner.public void testIsLockedChild() throws RepositoryException
RepositoryException
public void testIsLockedNewChild() throws RepositoryException
RepositoryException
public void testHoldsLockChild() throws RepositoryException
RepositoryException
public void testHoldsLockNewChild() throws RepositoryException
RepositoryException
public void testGetLockOnChild() throws RepositoryException
RepositoryException
public void testGetLockOnNewChild() throws RepositoryException
RepositoryException
public void testRemoveMixLockableFromLockedNode() throws RepositoryException, NotExecutableException
Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.