Merge remote-tracking branch 'upstream/master'
This commit is contained in:
commit
56388e1b07
|
@ -158,7 +158,6 @@ public class GuavaCacheTest {
|
||||||
final LoadingCache<String, String> cache = CacheBuilder.newBuilder().refreshAfterWrite(1, TimeUnit.MINUTES).build(loader);
|
final LoadingCache<String, String> cache = CacheBuilder.newBuilder().refreshAfterWrite(1, TimeUnit.MINUTES).build(loader);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void whenPreloadCache_thenUsePutAll() {
|
public void whenPreloadCache_thenUsePutAll() {
|
||||||
final CacheLoader<String, String> loader = new CacheLoader<String, String>() {
|
final CacheLoader<String, String> loader = new CacheLoader<String, String>() {
|
||||||
|
@ -200,6 +199,8 @@ public class GuavaCacheTest {
|
||||||
assertEquals(3, cache.size());
|
assertEquals(3, cache.size());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// UTIL
|
||||||
|
|
||||||
private String getSuffix(final String str) {
|
private String getSuffix(final String str) {
|
||||||
final int lastIndex = str.lastIndexOf('.');
|
final int lastIndex = str.lastIndexOf('.');
|
||||||
if (lastIndex == -1)
|
if (lastIndex == -1)
|
||||||
|
|
Loading…
Reference in New Issue