private static String EVICT_THREAD_NAME_PREFIX = EvictionThreadCountTest.class.getSimpleName() + "-thread";
@Override
protected EmbeddedCacheManager createCacheManager() throws Exception {
GlobalConfigurationBuilder globalCfg = new GlobalConfigurationBuilder();
globalCfg.evictionThreadPool().threadFactory(new DefaultThreadFactory(null, 1, EVICT_THREAD_NAME_PREFIX, null, null));
return TestCacheManagerFactory.createCacheManager(globalCfg, new ConfigurationBuilder());
}
public void testDefineMultipleCachesWithEviction() {
for (int i = 0; i < 50; i++) {