Assert.assertFalse(statisticInterceptor.getCacheStatisticManager().hasPendingTransactions());
}
public void testPutIfAbsent() {
assertEmpty(KEY_1, KEY_2);
ExtendedStatisticInterceptor statisticInterceptor = getExtendedStatistic(cache);
cache.put(KEY_1, VALUE_1);
assertCacheValue(KEY_1, VALUE_1);
cache.putIfAbsent(KEY_1, VALUE_2);
assertCacheValue(KEY_1, VALUE_1);
cache.put(KEY_1, VALUE_3);
assertCacheValue(KEY_1, VALUE_3);
cache.putIfAbsent(KEY_1, VALUE_4);
assertCacheValue(KEY_1, VALUE_3);
cache.putIfAbsent(KEY_2, VALUE_1);
assertCacheValue(KEY_2, VALUE_1);
assertNoTransactions();
Assert.assertFalse(statisticInterceptor.getCacheStatisticManager().hasPendingTransactions());
}