|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.sasl.distributed.lock.impl.DefaultLockSessionTest
public class DefaultLockSessionTest
Test cases for the DefaultLockSession
class.
Constructor Summary | |
---|---|
DefaultLockSessionTest()
|
Method Summary | |
---|---|
void |
setUp()
|
void |
testBeginLockSequence()
Test cases for the beginLockSequence(String) method. |
void |
testClear()
Test cases for the clear() method. |
void |
testDetach()
Test cases for the detach(IMutex) method. |
void |
testGetCurrentLockSequence()
Test cases for the getCurrentLockSequence() method. |
void |
testGetLockSessionFactory()
Test cases for the getLockSessionFactory() method. |
void |
testGetMutex()
Test cases for the getMutex(Object) method. |
void |
testIsActive()
Test cases for the isActive() and isInvalid() methods. |
void |
testIsLocalLockHeldByASequenceAndIsLockKeyOwnedByASequence()
Test cases for the isLocalLockHeldByASequence(Object) and
isLockKeyOwnedByASequence(Object) methods. |
void |
testLock()
Test cases for the lock(Object) . |
void |
testLockInterruptibly()
Test cases for the lockInterruptibly(Object) method. |
void |
testRelease()
Test cases for the release() method. |
void |
testSupportesNestedLockSequences()
Test cases for the supportsNestedLockSequences() method. |
void |
testThreadCheckForSession()
Tests if all public vulnerable methods of DefaultLockSession validate if the current thread equals the owner thread, if thread checking is enabled. |
void |
testTryLockNoArguments()
Test cases for tryLock(Object) method. |
void |
testTryLockWithArguments()
Test cases for tryLock(Object, long, TimeUnit) method. |
void |
testUnlock()
Test cases for unlock(Object) method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultLockSessionTest()
Method Detail |
---|
public void setUp()
public void testGetLockSessionFactory() throws Exception
getLockSessionFactory()
method.
Exception
public void testSupportesNestedLockSequences() throws Exception
supportsNestedLockSequences()
method.
Exception
public void testGetCurrentLockSequence() throws Exception
getCurrentLockSequence()
method.
Exception
public void testRelease() throws Exception
release()
method.
Exception
public void testBeginLockSequence() throws Exception
beginLockSequence(String)
method.
Exception
public void testClear() throws Exception
clear()
method.
Exception
public void testThreadCheckForSession() throws Exception
DefaultLockSession
validate if the current thread equals the owner thread, if thread checking is enabled.
Exception
public void testIsLocalLockHeldByASequenceAndIsLockKeyOwnedByASequence() throws Exception
isLocalLockHeldByASequence(Object)
and
isLockKeyOwnedByASequence(Object)
methods.
Exception
public void testIsActive() throws Exception
isActive()
and isInvalid()
methods.
Exception
public void testLock() throws Exception
lock(Object)
.
Exception
public void testTryLockNoArguments() throws Exception
tryLock(Object)
method.
Exception
public void testTryLockWithArguments() throws Exception
tryLock(Object, long, TimeUnit)
method.
Exception
public void testUnlock() throws Exception
unlock(Object)
method.
Exception
public void testLockInterruptibly() throws Exception
lockInterruptibly(Object)
method.
Exception
public void testDetach() throws Exception
detach(IMutex)
method.
Exception
public void testGetMutex() throws Exception
getMutex(Object)
method.
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |