[ISSUE #7623] Optimize the AggrWhitelistTest (#7624)

* [ISSUE #7623] Optimize the AggrWhitelistTest

Close #7623

* [ISSUE #7623] Remove unnecessary code
This commit is contained in:
onewe 2022-01-12 11:14:35 +08:00 committed by GitHub
parent a6e74dd06a
commit 825227ff49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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<String> list = new ArrayList<String>();