Assigned cache manager name in order to avoid EhCache assertion failure in case of multiple tests executed on the same VM

master
Juergen Hoeller 12 years ago
parent 0d23a9d4a6
commit b78fa2715a
  1. 1
      spring-context-support/src/test/java/org/springframework/cache/ehcache/EhCacheSupportTests.java

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

Loading…
Cancel
Save