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:
Juergen Hoeller
2013-03-21 11:12:30 +01:00
parent 0d23a9d4a6
commit b78fa2715a

View File

@@ -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());