|
|
@ -455,8 +455,7 @@ public class CacheAutoConfigurationTests {
|
|
|
|
"spring.cache.jcache.provider=" + cachingProviderFqn,
|
|
|
|
"spring.cache.jcache.provider=" + cachingProviderFqn,
|
|
|
|
"spring.cache.cacheNames[0]=foo", "spring.cache.cacheNames[1]=bar");
|
|
|
|
"spring.cache.cacheNames[0]=foo", "spring.cache.cacheNames[1]=bar");
|
|
|
|
JCacheCacheManager cacheManager = validateCacheManager(JCacheCacheManager.class);
|
|
|
|
JCacheCacheManager cacheManager = validateCacheManager(JCacheCacheManager.class);
|
|
|
|
assertThat(cacheManager.getCacheNames(), containsInAnyOrder("foo", "bar"));
|
|
|
|
assertThat(cacheManager.getCacheNames()).containsOnly("foo", "bar");
|
|
|
|
assertThat(cacheManager.getCacheNames(), hasSize(2));
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
finally {
|
|
|
|
finally {
|
|
|
|
Caching.getCachingProvider(cachingProviderFqn).close();
|
|
|
|
Caching.getCachingProvider(cachingProviderFqn).close();
|
|
|
|