[#1815]remove no used package name from Factory Class and adjust test cases.

This commit is contained in:
zongtanghu 2020-06-09 14:10:47 +08:00
parent 8a2921e2cf
commit 8f7fb0f65a
2 changed files with 14 additions and 3 deletions

View File

@ -29,8 +29,19 @@ import com.alibaba.nacos.common.utils.JacksonUtils;
import com.alibaba.nacos.common.utils.ThreadUtils;
import org.apache.commons.lang3.StringUtils;
import java.util.*;
import java.util.concurrent.*;
import java.util.HashSet;
import java.util.Map;
import java.util.HashMap;
import java.util.Set;
import java.util.List;
import java.util.ArrayList;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.ScheduledFuture;
import java.util.concurrent.ScheduledThreadPoolExecutor;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ThreadFactory;
import java.util.concurrent.TimeUnit;
import static com.alibaba.nacos.client.utils.LogUtils.NAMING_LOGGER;

View File

@ -65,7 +65,7 @@ public class LifeCycleManagerTest {
Assert.assertEquals(1, temp.getCounter());
temp.destroy();
Assert.assertEquals(0, temp.getCounter());
Assert.assertEquals(0, ResourceLifeCycleManager.getRegisterResourceNum());
Assert.assertEquals(1, ResourceLifeCycleManager.getRegisterResourceNum());
}
class Resource implements LifeCycle {