diff --git a/guava/src/test/java/org/baeldung/guava/GuavaCacheTest.java b/guava/src/test/java/org/baeldung/guava/GuavaCacheTest.java index aae2cf18f5..87aba20ec3 100644 --- a/guava/src/test/java/org/baeldung/guava/GuavaCacheTest.java +++ b/guava/src/test/java/org/baeldung/guava/GuavaCacheTest.java @@ -158,7 +158,6 @@ public class GuavaCacheTest { final LoadingCache cache = CacheBuilder.newBuilder().refreshAfterWrite(1, TimeUnit.MINUTES).build(loader); } - @Test public void whenPreloadCache_thenUsePutAll() { final CacheLoader loader = new CacheLoader() { @@ -200,6 +199,8 @@ public class GuavaCacheTest { assertEquals(3, cache.size()); } + // UTIL + private String getSuffix(final String str) { final int lastIndex = str.lastIndexOf('.'); if (lastIndex == -1)