org.alfresco.repo.domain.locks
Class LockDAOTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.alfresco.repo.domain.locks.LockDAOTest
All Implemented Interfaces:
junit.framework.Test

public class LockDAOTest
extends junit.framework.TestCase

Since:
3.2
See Also:
LockDAO

Field Summary
static java.lang.String NAMESPACE
           
 
Constructor Summary
LockDAOTest()
           
 
Method Summary
 void setUp()
           
 void testExclusiveLockBlockedByShared()
           
 void testGetLockBasic()
           
 void testGetLockFailureBasic()
           
 void testLockExpiry()
           
 void testLockExpiryAndRelease()
          Check that locks grabbed away due to expiry cannot be released
 void testLockRefresh()
           
 void testLockTableScaling()
          Ensure that the lock tables and queries scale
 void testReleaseLockBasic()
           
 void testSharedLockAndRelease()
           
 void testSharedLocks()
           
 void xtestConcurrentLockAcquisition()
          Uses a thread lock to ensure that the lock DAO only allows locks through one at a time.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, 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, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NAMESPACE

public static final java.lang.String NAMESPACE
See Also:
Constant Field Values
Constructor Detail

LockDAOTest

public LockDAOTest()
Method Detail

setUp

public void setUp()
           throws java.lang.Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

testGetLockBasic

public void testGetLockBasic()
                      throws java.lang.Exception
Throws:
java.lang.Exception

testLockTableScaling

public void testLockTableScaling()
                          throws java.lang.Exception
Ensure that the lock tables and queries scale

Throws:
java.lang.Exception

testGetLockFailureBasic

public void testGetLockFailureBasic()
                             throws java.lang.Exception
Throws:
java.lang.Exception

testSharedLocks

public void testSharedLocks()
                     throws java.lang.Exception
Throws:
java.lang.Exception

testExclusiveLockBlockedByShared

public void testExclusiveLockBlockedByShared()
                                      throws java.lang.Exception
Throws:
java.lang.Exception

testReleaseLockBasic

public void testReleaseLockBasic()
                          throws java.lang.Exception
Throws:
java.lang.Exception

testSharedLockAndRelease

public void testSharedLockAndRelease()
                              throws java.lang.Exception
Throws:
java.lang.Exception

testLockExpiry

public void testLockExpiry()
                    throws java.lang.Exception
Throws:
java.lang.Exception

testLockExpiryAndRelease

public void testLockExpiryAndRelease()
                              throws java.lang.Exception
Check that locks grabbed away due to expiry cannot be released

Throws:
java.lang.Exception

testLockRefresh

public void testLockRefresh()
                     throws java.lang.Exception
Throws:
java.lang.Exception

xtestConcurrentLockAcquisition

public void xtestConcurrentLockAcquisition()
                                    throws java.lang.Exception
Uses a thread lock to ensure that the lock DAO only allows locks through one at a time.

Throws:
java.lang.Exception


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.