c.put(key, "dummy"); // should time out
assert false : "Should have been locked!";
} catch (TimeoutException e) {
// ignoring timeout exception
} finally {
tm.rollback();
}
}
private void assertNotLocked(Cache<String, String> c, String key) throws SystemException, NotSupportedException {
TransactionManager tm = TestingUtil.getTransactionManager(c);