Browse Source

Merge pull request #5931 from Shredder121-me:assert-usage

* pr/5931:
  Fix incorrect usage of Assert.notNull()
pull/5385/merge
Stephane Nicoll 10 years ago
parent
commit
a258a1045c
  1. 2
      spring-boot-actuator/src/test/java/org/springframework/boot/actuate/autoconfigure/CacheStatisticsAutoConfigurationTests.java

2
spring-boot-actuator/src/test/java/org/springframework/boot/actuate/autoconfigure/CacheStatisticsAutoConfigurationTests.java

@ -199,7 +199,7 @@ public class CacheStatisticsAutoConfigurationTests { @@ -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;
}

Loading…
Cancel
Save