From 825227ff49c8d14305afebe729496433294a4244 Mon Sep 17 00:00:00 2001 From: onewe Date: Wed, 12 Jan 2022 11:14:35 +0800 Subject: [PATCH] [ISSUE #7623] Optimize the AggrWhitelistTest (#7624) * [ISSUE #7623] Optimize the AggrWhitelistTest Close #7623 * [ISSUE #7623] Remove unnecessary code --- .../config/server/service/AggrWhitelistTest.java | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/config/src/test/java/com/alibaba/nacos/config/server/service/AggrWhitelistTest.java b/config/src/test/java/com/alibaba/nacos/config/server/service/AggrWhitelistTest.java index bb7e0fd16..4958704b2 100644 --- a/config/src/test/java/com/alibaba/nacos/config/server/service/AggrWhitelistTest.java +++ b/config/src/test/java/com/alibaba/nacos/config/server/service/AggrWhitelistTest.java @@ -16,11 +16,7 @@ package com.alibaba.nacos.config.server.service; -import org.junit.Before; import org.junit.Test; -import org.junit.runner.RunWith; -import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; -import org.springframework.test.context.web.WebAppConfiguration; import java.util.ArrayList; import java.util.List; @@ -28,17 +24,8 @@ import java.util.List; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; -@RunWith(SpringJUnit4ClassRunner.class) -@WebAppConfiguration public class AggrWhitelistTest { - AggrWhitelist service; - - @Before - public void before() throws Exception { - service = new AggrWhitelist(); - } - @Test public void testIsAggrDataId() { List list = new ArrayList();