This commit is contained in:
Looly 2023-01-17 16:45:54 +08:00
parent 3c13a97972
commit 4dbb3f7486

View File

@ -61,6 +61,13 @@ public class CacheTest {
Assert.assertNull(value3);
}
@Test
public void lfuCacheTest2(){
final Cache<String, String> lfuCache = CacheUtil.newLFUCache(3);
final String s = lfuCache.get(null);
Assert.assertNull(s);
}
@Test
public void lruCacheTest(){
final Cache<String, String> lruCache = CacheUtil.newLRUCache(3);