Assigned cache manager name in order to avoid EhCache assertion failure in case of multiple tests executed on the same VM
This commit is contained in:
@@ -90,6 +90,7 @@ public class EhCacheSupportTests extends TestCase {
|
||||
if (useCacheManagerFb) {
|
||||
cacheManagerFb = new EhCacheManagerFactoryBean();
|
||||
cacheManagerFb.setConfigLocation(new ClassPathResource("testEhcache.xml", getClass()));
|
||||
cacheManagerFb.setCacheManagerName("cache");
|
||||
cacheManagerFb.afterPropertiesSet();
|
||||
cacheManagerFbInitialized = true;
|
||||
cacheFb.setCacheManager(cacheManagerFb.getObject());
|
||||
|
||||
Reference in New Issue
Block a user