mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-25 08:19:01 +00:00
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:
Vendored
+1
@@ -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