From 184feb8e2b9576888acaccf9976fa8d578b99346 Mon Sep 17 00:00:00 2001 From: eugenp Date: Thu, 9 Oct 2014 16:13:15 +0300 Subject: [PATCH] guava cleanup --- guava/src/test/java/org/baeldung/guava/GuavaCacheTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)