[#1815]remove no used package name from Factory Class and adjust test cases.
This commit is contained in:
parent
8a2921e2cf
commit
8f7fb0f65a
@ -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;
|
||||
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user