Package org.fcrepo.kernel.impl.lock
Class InMemoryResourceLockManagerTest
java.lang.Object
org.fcrepo.kernel.impl.lock.InMemoryResourceLockManagerTest
- Author:
- pwinckles
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidvoidvoidvoidvoidvoidvoidvoidvoidsetup()voidvoidvoidvoidvoidvoidvoidvoidvoid
-
Constructor Details
-
InMemoryResourceLockManagerTest
public InMemoryResourceLockManagerTest()
-
-
Method Details
-
beforeClass
-
afterClass
-
setup
-
shouldLockResourceWhenNotAlreadyLockedExclusive
-
shouldLockResourceWhenNotAlreadyLockedNonExclusive
-
sameTxShouldBeAbleToReacquireLockItAlreadyHoldsExclusive
-
sameTxShouldBeAbleToReacquireLockItAlreadyHoldsNonExclusive
-
shouldFailToAcquireLockWhenHeldByAnotherTxExclusive
-
shouldFailToAcquireLockWhenHeldByAnotherTxSecondExclusive
-
shouldSucceedToAcquireNonExclusiveLockWhenHeldByAnotherTxNonExclusive
-
shouldAcquireLockAfterReleasedByAnotherTx1
-
shouldAcquireLockAfterReleasedByAnotherTx2
-
shouldAcquireLockAfterReleasedByAnotherTx3
-
shouldAcquireLockAfterReleasedByAnotherTx4
-
concurrentRequestsFromSameTxShouldBothSucceedWhenLockAvailable
-
concurrentExclusiveRequestsFromDifferentTxesOnlyOneShouldSucceed
-
concurrentOneExclusiveRequestsFromDifferentTxesOnlyOneShouldSucceed
-
concurrentNonexclusiveRequestsFromDifferentTxesBothShouldSucceed
-
releasingAlreadyReleasedLocksShouldDoNothing
-