Package org.fcrepo.kernel.impl.lock
Class InMemoryResourceLockManagerTest
- java.lang.Object
-
- org.fcrepo.kernel.impl.lock.InMemoryResourceLockManagerTest
-
public class InMemoryResourceLockManagerTest extends Object
- Author:
- pwinckles
-
-
Constructor Summary
Constructors Constructor Description InMemoryResourceLockManagerTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidafterClass()static voidbeforeClass()voidconcurrentRequestsFromDifferentTxesOnlyOneShouldSucceed()voidconcurrentRequestsFromSameTxShouldBothSucceedWhenLockAvailable()voidreleasingAlreadyReleasedLocksShouldDoNothing()voidsameTxShouldBeAbleToReacquireLockItAlreadyHolds()voidsetup()voidshouldAcquireLockAfterReleasedByAnotherTx()voidshouldFailToAcquireLockWhenHeldByAnotherTx()voidshouldLockResourceWhenNotAlreadyLocked()
-
-
-
Constructor Detail
-
InMemoryResourceLockManagerTest
public InMemoryResourceLockManagerTest()
-
-
Method Detail
-
beforeClass
public static void beforeClass()
-
afterClass
public static void afterClass()
-
setup
public void setup()
-
shouldLockResourceWhenNotAlreadyLocked
public void shouldLockResourceWhenNotAlreadyLocked()
-
sameTxShouldBeAbleToReacquireLockItAlreadyHolds
public void sameTxShouldBeAbleToReacquireLockItAlreadyHolds()
-
shouldFailToAcquireLockWhenHeldByAnotherTx
public void shouldFailToAcquireLockWhenHeldByAnotherTx()
-
shouldAcquireLockAfterReleasedByAnotherTx
public void shouldAcquireLockAfterReleasedByAnotherTx()
-
concurrentRequestsFromSameTxShouldBothSucceedWhenLockAvailable
public void concurrentRequestsFromSameTxShouldBothSucceedWhenLockAvailable() throws ExecutionException, InterruptedException
-
concurrentRequestsFromDifferentTxesOnlyOneShouldSucceed
public void concurrentRequestsFromDifferentTxesOnlyOneShouldSucceed() throws ExecutionException, InterruptedException
-
releasingAlreadyReleasedLocksShouldDoNothing
public void releasingAlreadyReleasedLocksShouldDoNothing()
-
-