From 78f19ef8520735a8d8caea5eb3d8e2619ec32b38 Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Thu, 25 Feb 2016 15:15:16 +0100 Subject: [PATCH] Polish --- .../boot/autoconfigure/cache/CacheAutoConfigurationTests.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/cache/CacheAutoConfigurationTests.java b/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/cache/CacheAutoConfigurationTests.java index 075a6ae36a..1c3a41872b 100644 --- a/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/cache/CacheAutoConfigurationTests.java +++ b/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/cache/CacheAutoConfigurationTests.java @@ -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();