This commit is contained in:
Stephane Nicoll 2016-02-25 15:15:16 +01:00
parent 7457596b15
commit 78f19ef852
1 changed files with 1 additions and 2 deletions

View File

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