|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.apache.jackrabbit.test.JUnitTest
org.apache.jackrabbit.test.AbstractJCRTest
org.apache.jackrabbit.test.api.lock.LockTest
public class LockTest
LockTest
contains the test cases for the lock support in
the JCR specification.
Field Summary |
---|
Fields inherited from class org.apache.jackrabbit.test.AbstractJCRTest |
---|
isReadOnly, jcrBaseVersion, jcrCopiedFrom, jcrCreated, jcrFrozenNode, jcrFrozenUuid, jcrIsCheckedOut, jcrlockIsDeep, jcrLockOwner, jcrMergeFailed, jcrMixinTypes, jcrPredecessors, jcrPrimaryType, jcrRootVersion, jcrSuccessors, jcrSystem, jcrUUID, jcrVersionHistory, mixLockable, mixReferenceable, mixShareable, mixSimpleVersionable, mixVersionable, nodeName1, nodeName2, nodeName3, nodeName4, NS_JCR_URI, NS_MIX_URI, NS_NT_URI, NS_SV_URI, ntBase, ntFrozenNode, ntQuery, ntUnstructured, ntVersion, ntVersionHistory, ntVersionLabels, propertyName1, propertyName2, superuser, testNodeType, testNodeTypeNoChildren, testPath, testRoot, testRootNode, vf, workspaceName |
Fields inherited from class org.apache.jackrabbit.test.JUnitTest |
---|
log |
Constructor Summary | |
---|---|
LockTest()
|
Method Summary | |
---|---|
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). |
Methods inherited from class org.apache.jackrabbit.test.AbstractJCRTest |
---|
checkSupportedOption, cleanUp, cleanUpTestRoot, createRandomString, ensureCanSetProperty, ensureCanSetProperty, ensureCanSetProperty, ensureKnowsNodeType, ensureMixinType, ensureMultipleWorkspacesSupported, getHelper, getJcrValue, getLocalName, getNonExistingWorkspaceName, getProperty, getProperty, getSize, isSupported, needsMixin, run, setUp, tearDown |
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 |
---|
public LockTest()
Method Detail |
---|
public void testAddRemoveLockToken() throws Exception
Exception
public void testNodeLocked() throws Exception
Exception
public void testGetNode() throws Exception
Exception
public void testGetLockOwnerProperty() throws Exception
Exception
public void testGetLockOwner() throws Exception
Exception
public void testShallowLock() throws Exception
Exception
public void testCheckedIn() throws NotExecutableException, RepositoryException
NotExecutableException
RepositoryException
public void testParentChildLock() throws Exception
Exception
public void testParentChildDeepLock() throws Exception
Exception
public void testIsDeep() throws RepositoryException, NotExecutableException
RepositoryException
NotExecutableException
public void testIsSessionScoped() throws RepositoryException, NotExecutableException
RepositoryException
NotExecutableException
public void testLogout() throws Exception
Exception
public void testLockTransfer() throws Exception
Exception
public void testOpenScopedLocks() throws Exception
Exception
public void testRefresh() throws Exception
Exception
public void testRefreshNotLive() throws Exception
Exception
public void testGetLock() throws Exception
Exception
public void testCheckedInUnlock() throws Exception
Exception
public void testReorder() throws Exception
Exception
public void testReorder2() throws Exception
Exception
public void testMoveLocked() throws Exception
Exception
public void testUnlockSameNameSibling() throws RepositoryException, NotExecutableException
RepositoryException
NotExecutableException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |