public void testPutIfAbsentLockCleanup() { assertNoLocks(cache); cache.put("key", "value"); assertNoLocks(cache); // This call should fail. cache.putForExternalRead("key", "value2"); assertNoLocks(cache); assertEquals("value", cache.get("key")); }
private void assertNoTransactionsAndLocks() { assertNoTransactions(); TestingUtil.assertNoLocks(cache(0)); TestingUtil.assertNoLocks(cache(1)); } }