withCacheManager(new CacheManagerCallable(TestCacheManagerFactory.fromXml("configs/as7/standalone.xml")) {
@Override
public void call() {
Configuration c = cm.getCacheConfiguration("default");
assert c.clustering().cacheMode().equals(CacheMode.LOCAL);
assert c.locking().isolationLevel().equals(IsolationLevel.NONE);
assert c.locking().lockAcquisitionTimeout() == 30000;
assert c.locking().concurrencyLevel() == 1000;
assert !c.locking().useLockStriping();
assert c.transaction().transactionMode().equals(TransactionMode.NON_TRANSACTIONAL);
assert c.eviction().strategy().equals(EvictionStrategy.LRU);
assert c.eviction().maxEntries() == 1000;
assert c.expiration().lifespan() == 2000;
assert c.expiration().maxIdle() == 1000;
assert c.loaders().passivation();
assert !c.loaders().shared();
assert c.loaders().cacheLoaders().size() == 1;
FileCacheStoreConfiguration fcsc = (FileCacheStoreConfiguration) c.loaders().cacheLoaders().get(0);
assert fcsc.purgeOnStartup();
assert fcsc.location().equals("nc");
assert fcsc.async().enabled();
assert fcsc.async().flushLockTimeout() == 1;
assert fcsc.async().modificationQueueSize() == 1024;
assert fcsc.async().shutdownTimeout() == 25000;
assert fcsc.async().threadPoolSize() == 1;
c = cm.getCacheConfiguration("distsync");
assert c.clustering().cacheMode().equals(CacheMode.DIST_SYNC);
assert c.locking().isolationLevel().equals(IsolationLevel.READ_COMMITTED);
assert c.locking().lockAcquisitionTimeout() == 20000;
assert c.locking().concurrencyLevel() == 500;
assert c.locking().useLockStriping();
assert c.transaction().recovery().enabled();
assert c.eviction().strategy().equals(EvictionStrategy.LIRS);
assert c.eviction().maxEntries() == 1000;
}
});
}