From c84e09f6119233d59ae42a89eb8adc65202db69b Mon Sep 17 00:00:00 2001 From: Ruben Dijkstra Date: Thu, 12 May 2016 18:32:29 +0200 Subject: [PATCH] Fix incorrect usage of Assert.notNull() Closes gh-5931 --- .../autoconfigure/CacheStatisticsAutoConfigurationTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/autoconfigure/CacheStatisticsAutoConfigurationTests.java b/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/autoconfigure/CacheStatisticsAutoConfigurationTests.java index 2d2d6325fdd..06838001fa2 100644 --- a/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/autoconfigure/CacheStatisticsAutoConfigurationTests.java +++ b/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/autoconfigure/CacheStatisticsAutoConfigurationTests.java @@ -199,7 +199,7 @@ public class CacheStatisticsAutoConfigurationTests { private Cache getCache(String cacheName) { Cache cache = this.cacheManager.getCache(cacheName); - Assert.notNull("No cache with name '" + cacheName + "' found."); + Assert.notNull(cache, "No cache with name '" + cacheName + "' found."); return cache; }