/** Test 2 */ public void testUpgradeReadLock() { assertTrue(lockManager.readLock(tx1, obj, testIsoLevel)); assertTrue(lockManager.upgradeLock(tx1, obj, testIsoLevel)); }
/** Test 11 */ public void testUpgradeWithMultipleReadersOn1() { assertTrue(lockManager.readLock(tx1, obj, testIsoLevel)); assertTrue(lockManager.readLock(tx2, obj, testIsoLevel)); assertTrue(lockManager.upgradeLock(tx1, obj, testIsoLevel)); }
/** Test 16 */ public void testReleaseUpgradeLock() { assertTrue(lockManager.upgradeLock(tx1, obj, testIsoLevel)); assertTrue(lockManager.releaseLock(tx1, obj)); assertTrue(lockManager.writeLock(tx2, obj, testIsoLevel)); }
/** Test 7 */ public void testUpgradeWithExistingReader() { assertTrue(lockManager.readLock(tx1, obj, testIsoLevel)); assertTrue(lockManager.upgradeLock(tx2, obj, testIsoLevel)); }