This commit is contained in:
Looly 2022-04-10 18:43:31 +08:00
parent af977ac3d4
commit 8fc05b93db

View File

@ -3,6 +3,7 @@ package cn.hutool.cache;
import cn.hutool.cache.impl.WeakCache;
import cn.hutool.core.lang.Console;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
public class WeakCacheTest {
@ -22,7 +23,10 @@ public class WeakCacheTest {
}
@Test
@Ignore
public void removeByGcTest(){
// https://gitee.com/dromara/hutool/issues/I51O7M
// 经过GC
WeakCache<String, String> cache = new WeakCache<>(-1);
cache.put("a", "1");
cache.put("b", "2");