assertAttributeValue("ConcurrencyLevel", CONCURRENCY_LEVEL);
}
public void testNumberOfLocksHeld() throws Exception {
DummyTransactionManager tm = (DummyTransactionManager) TestingUtil.extractComponent(cache, TransactionManager.class);
tm.begin();
cache.put("key", "value");
tm.getTransaction().runPrepare();
assertAttributeValue("NumberOfLocksHeld", 1);
tm.getTransaction().runCommitTx();
assertAttributeValue("NumberOfLocksHeld", 0);