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