Skip to content

Commit b78fa27

Browse files
committed
Assigned cache manager name in order to avoid EhCache assertion failure in case of multiple tests executed on the same VM
1 parent 0d23a9d commit b78fa27

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

spring-context-support/src/test/java/org/springframework/cache/ehcache/EhCacheSupportTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ private void doTestEhCacheFactoryBean(boolean useCacheManagerFb) throws Exceptio
9090
if (useCacheManagerFb) {
9191
cacheManagerFb = new EhCacheManagerFactoryBean();
9292
cacheManagerFb.setConfigLocation(new ClassPathResource("testEhcache.xml", getClass()));
93+
cacheManagerFb.setCacheManagerName("cache");
9394
cacheManagerFb.afterPropertiesSet();
9495
cacheManagerFbInitialized = true;
9596
cacheFb.setCacheManager(cacheManagerFb.getObject());

0 commit comments

Comments
 (0)