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
-
-
-
Constructor Detail
-
InMemoryResourceLockManagerTest
public InMemoryResourceLockManagerTest()
-
-
Method Detail
-
beforeClass
public static void beforeClass()
-
afterClass
public static void afterClass()
-
setup
public void setup()
-
shouldLockResourceWhenNotAlreadyLockedExclusive
public void shouldLockResourceWhenNotAlreadyLockedExclusive()
-
shouldLockResourceWhenNotAlreadyLockedNonExclusive
public void shouldLockResourceWhenNotAlreadyLockedNonExclusive()
-
sameTxShouldBeAbleToReacquireLockItAlreadyHoldsExclusive
public void sameTxShouldBeAbleToReacquireLockItAlreadyHoldsExclusive()
-
sameTxShouldBeAbleToReacquireLockItAlreadyHoldsNonExclusive
public void sameTxShouldBeAbleToReacquireLockItAlreadyHoldsNonExclusive()
-
shouldFailToAcquireLockWhenHeldByAnotherTxExclusive
public void shouldFailToAcquireLockWhenHeldByAnotherTxExclusive()
-
shouldFailToAcquireLockWhenHeldByAnotherTxSecondExclusive
public void shouldFailToAcquireLockWhenHeldByAnotherTxSecondExclusive()
-
shouldSucceedToAcquireNonExclusiveLockWhenHeldByAnotherTxNonExclusive
public void shouldSucceedToAcquireNonExclusiveLockWhenHeldByAnotherTxNonExclusive()
-
shouldAcquireLockAfterReleasedByAnotherTx1
public void shouldAcquireLockAfterReleasedByAnotherTx1()
-
shouldAcquireLockAfterReleasedByAnotherTx2
public void shouldAcquireLockAfterReleasedByAnotherTx2()
-
shouldAcquireLockAfterReleasedByAnotherTx3
public void shouldAcquireLockAfterReleasedByAnotherTx3()
-
shouldAcquireLockAfterReleasedByAnotherTx4
public void shouldAcquireLockAfterReleasedByAnotherTx4()
-
concurrentRequestsFromSameTxShouldBothSucceedWhenLockAvailable
public void concurrentRequestsFromSameTxShouldBothSucceedWhenLockAvailable() throws ExecutionException, InterruptedException
-
concurrentExclusiveRequestsFromDifferentTxesOnlyOneShouldSucceed
public void concurrentExclusiveRequestsFromDifferentTxesOnlyOneShouldSucceed() throws ExecutionException, InterruptedException
-
concurrentOneExclusiveRequestsFromDifferentTxesOnlyOneShouldSucceed
public void concurrentOneExclusiveRequestsFromDifferentTxesOnlyOneShouldSucceed() throws ExecutionException, InterruptedException
-
concurrentNonexclusiveRequestsFromDifferentTxesBothShouldSucceed
public void concurrentNonexclusiveRequestsFromDifferentTxesBothShouldSucceed() throws ExecutionException, InterruptedException
-
releasingAlreadyReleasedLocksShouldDoNothing
public void releasingAlreadyReleasedLocksShouldDoNothing()
-
-