You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by al...@apache.org on 2022/11/22 02:49:32 UTC

[dubbo] branch 3.1 updated: Remove public modifier in dubbo-config (#10978)

This is an automated email from the ASF dual-hosted git repository.

albumenj pushed a commit to branch 3.1
in repository https://gitbox.apache.org/repos/asf/dubbo.git


The following commit(s) were added to refs/heads/3.1 by this push:
     new b8664c4235 Remove public modifier in dubbo-config (#10978)
b8664c4235 is described below

commit b8664c42350cd97de10223e0196dc9789cbc136d
Author: Albumen Kevin <jh...@gmail.com>
AuthorDate: Tue Nov 22 10:49:25 2022 +0800

    Remove public modifier in dubbo-config (#10978)
---
 .../apache/dubbo/config/AbstractConfigTest.java    | 70 +++++++++++-----------
 .../dubbo/config/AbstractMethodConfigTest.java     | 28 ++++-----
 .../dubbo/config/AbstractReferenceConfigTest.java  | 36 +++++------
 .../dubbo/config/AbstractServiceConfigTest.java    | 38 ++++++------
 .../apache/dubbo/config/ApplicationConfigTest.java | 50 ++++++++--------
 .../apache/dubbo/config/ArgumentConfigTest.java    | 12 ++--
 .../dubbo/config/ConfigCenterConfigTest.java       | 28 ++++-----
 .../config/ConfigScopeModelInitializerTest.java    |  6 +-
 .../apache/dubbo/config/ConsumerConfigTest.java    | 30 +++++-----
 .../dubbo/config/MetadataReportConfigTest.java     |  6 +-
 .../org/apache/dubbo/config/MethodConfigTest.java  | 44 +++++++-------
 .../org/apache/dubbo/config/MetricsConfigTest.java | 12 ++--
 .../org/apache/dubbo/config/ModuleConfigTest.java  | 22 +++----
 .../org/apache/dubbo/config/MonitorConfigTest.java | 24 ++++----
 .../apache/dubbo/config/ProtocolConfigTest.java    | 62 +++++++++----------
 .../apache/dubbo/config/ProviderConfigTest.java    | 54 ++++++++---------
 .../apache/dubbo/config/ReferenceConfigTest.java   | 47 ++++++++-------
 .../apache/dubbo/config/RegistryConfigTest.java    | 50 ++++++++--------
 .../org/apache/dubbo/config/ServiceConfigTest.java | 48 +++++++--------
 .../dubbo/config/bootstrap/DubboBootstrapTest.java | 28 ++++-----
 .../dubbo/config/bootstrap/MultiInstanceTest.java  | 28 ++++-----
 .../bootstrap/builders/AbstractBuilderTest.java    |  2 +-
 .../builders/AbstractInterfaceBuilderTest.java     |  2 +-
 .../builders/AbstractMethodBuilderTest.java        |  2 +-
 .../builders/AbstractReferenceBuilderTest.java     |  2 +-
 .../builders/AbstractServiceBuilderTest.java       |  2 +-
 .../bootstrap/builders/ApplicationBuilderTest.java |  2 +-
 .../bootstrap/builders/ArgumentBuilderTest.java    |  2 +-
 .../builders/ConfigCenterBuilderTest.java          |  2 +-
 .../bootstrap/builders/ConsumerBuilderTest.java    |  2 +-
 .../builders/MetadataReportBuilderTest.java        |  2 +-
 .../bootstrap/builders/MethodBuilderTest.java      |  2 +-
 .../bootstrap/builders/ModuleBuilderTest.java      |  2 +-
 .../bootstrap/builders/MonitorBuilderTest.java     |  2 +-
 .../bootstrap/builders/ProtocolBuilderTest.java    |  2 +-
 .../bootstrap/builders/ProviderBuilderTest.java    |  2 +-
 .../bootstrap/builders/ReferenceBuilderTest.java   |  2 +-
 .../bootstrap/builders/RegistryBuilderTest.java    |  2 +-
 .../bootstrap/builders/ServiceBuilderTest.java     |  6 +-
 .../org/apache/dubbo/config/cache/CacheTest.java   | 10 ++--
 .../dubbo/config/integration/IntegrationTest.java  |  2 +-
 ...egistryCenterExportMetadataIntegrationTest.java |  4 +-
 ...egistryCenterExportProviderIntegrationTest.java |  4 +-
 ...MultipleRegistryCenterInjvmIntegrationTest.java |  4 +-
 ...terServiceDiscoveryRegistryIntegrationTest.java |  4 +-
 ...RegistryCenterDubboProtocolIntegrationTest.java |  4 +-
 ...egistryCenterExportMetadataIntegrationTest.java |  4 +-
 ...egistryCenterExportProviderIntegrationTest.java |  4 +-
 .../SingleRegistryCenterInjvmIntegrationTest.java  |  4 +-
 .../DelegateProviderMetaDataInvokerTest.java       |  6 +-
 ...dataServiceURLParamsMetadataCustomizerTest.java |  5 +-
 .../dubbo/config/nested/AggregationConfigTest.java | 10 ++--
 .../dubbo/config/nested/PrometheusConfigTest.java  |  8 +--
 .../config/url/ExporterSideConfigUrlTest.java      | 12 ++--
 .../dubbo/config/url/InvokerSideConfigUrlTest.java | 10 ++--
 .../config/utils/ConfigValidationUtilsTest.java    | 15 ++---
 .../dubbo/config/utils/ReferenceCacheTest.java     | 16 ++---
 .../metadata/MetadataServiceExporterTest.java      |  2 +-
 .../org/apache/dubbo/config/spring/ConfigTest.java | 26 ++++----
 .../dubbo/config/spring/JavaConfigBeanTest.java    |  6 +-
 .../dubbo/config/spring/ServiceBeanTest.java       |  6 +-
 .../DubboConfigAliasPostProcessorTest.java         |  5 +-
 .../factory/annotation/MergedAnnotationTest.java   |  8 +--
 .../annotation/MethodConfigCallbackTest.java       |  6 +-
 .../factory/annotation/ParameterConvertTest.java   |  6 +-
 .../ReferenceAnnotationBeanPostProcessorTest.java  | 12 ++--
 .../factory/annotation/ReferenceCreatorTest.java   |  6 +-
 .../ServiceAnnotationPostProcessorTest.java        |  8 +--
 .../annotation/ServiceBeanNameBuilderTest.java     | 10 ++--
 ...gDefaultPropertyValueBeanPostProcessorTest.java |  5 +-
 .../MultipleServicesWithMethodConfigsTest.java     |  5 +-
 .../config/YamlPropertySourceFactoryTest.java      |  6 +-
 .../XmlReferenceBeanConditionalTest.java           |  6 +-
 ...nfigAnnotationReferenceBeanConditionalTest.java |  6 +-
 .../JavaConfigRawReferenceBeanConditionalTest.java |  6 +-
 .../configprops/SpringBootConfigPropsTest.java     |  6 +-
 .../SpringBootMultipleConfigPropsTest.java         |  6 +-
 .../importxml/SpringBootImportDubboXmlTest.java    |  6 +-
 .../importxml2/SpringBootImportAndScanTest.java    |  6 +-
 .../context/KeepRunningOnSpringClosedTest.java     |  6 +-
 .../DubboComponentScanRegistrarTest.java           |  6 +-
 .../annotation/DubboConfigConfigurationTest.java   |  8 +--
 .../context/annotation/EnableDubboConfigTest.java  |  4 +-
 .../spring/context/annotation/EnableDubboTest.java |  8 +--
 .../customize/DubboSpringInitCustomizerTest.java   |  6 +-
 .../properties/DefaultDubboConfigBinderTest.java   |  6 +-
 .../extension/SpringExtensionInjectorTest.java     |  6 +-
 .../spring/issues/issue6000/Issue6000Test.java     |  6 +-
 .../spring/issues/issue6252/Issue6252Test.java     |  6 +-
 .../spring/issues/issue7003/Issue7003Test.java     |  6 +-
 .../issue9172/MultipleConsumerAndProviderTest.java |  6 +-
 .../issues/issue9207/ConfigCenterBeanTest.java     |  6 +-
 .../consumer/PropertyConfigurerTest.java           |  6 +-
 .../consumer2/PropertySourcesConfigurerTest.java   |  6 +-
 .../consumer3/PropertySourcesInJavaConfigTest.java |  8 +--
 .../reference/DubboConfigBeanInitializerTest.java  |  6 +-
 .../config/spring/reference/ReferenceKeyTest.java  | 16 ++---
 .../javaconfig/JavaConfigReferenceBeanTest.java    | 22 +++----
 .../spring/reference/localcall/LocalCallTest.java  |  6 +-
 .../LocalCallReferenceAnnotationTest.java          |  6 +-
 .../LocalCallMultipleReferenceAnnotationsTest.java |  6 +-
 .../localcallmix/LocalCallReferenceMixTest.java    |  6 +-
 .../registry/nacos/nacos/NacosServiceNameTest.java | 12 ++--
 .../spring/schema/DubboNamespaceHandlerTest.java   | 30 +++++-----
 .../config/spring/schema/GenericServiceTest.java   |  6 +-
 .../schema/GenericServiceWithoutInterfaceTest.java |  6 +-
 .../spring/status/DataSourceStatusCheckerTest.java | 12 ++--
 .../spring/status/SpringStatusCheckerTest.java     | 12 ++--
 .../config/spring/util/EnvironmentUtilsTest.java   |  8 +--
 109 files changed, 652 insertions(+), 650 deletions(-)

diff --git a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/AbstractConfigTest.java b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/AbstractConfigTest.java
index c6eb0274df..167da99aa7 100644
--- a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/AbstractConfigTest.java
+++ b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/AbstractConfigTest.java
@@ -24,9 +24,9 @@ import org.apache.dubbo.config.support.Nested;
 import org.apache.dubbo.config.support.Parameter;
 import org.apache.dubbo.config.utils.ConfigValidationUtils;
 import org.apache.dubbo.rpc.model.ApplicationModel;
-
 import org.apache.dubbo.rpc.model.FrameworkModel;
 import org.apache.dubbo.rpc.model.ScopeModel;
+
 import org.hamcrest.Matchers;
 import org.junit.jupiter.api.AfterEach;
 import org.junit.jupiter.api.Assertions;
@@ -50,7 +50,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
 import static org.junit.jupiter.api.Assertions.assertTrue;
 import static org.junit.jupiter.api.Assertions.fail;
 
-public class AbstractConfigTest {
+class AbstractConfigTest {
 
     @BeforeEach
     public void beforeEach() {
@@ -100,7 +100,7 @@ public class AbstractConfigTest {
     }
 
     @Test
-    public void testAppendProperties2() throws Exception {
+    void testAppendProperties2() throws Exception {
         try {
             System.setProperty("dubbo.properties.two.i", "2");
             PropertiesConfig config = new PropertiesConfig("two");
@@ -112,7 +112,7 @@ public class AbstractConfigTest {
     }
 
     @Test
-    public void testAppendProperties3() throws Exception {
+    void testAppendProperties3() throws Exception {
         try {
             Properties p = new Properties();
             p.put("dubbo.properties.str", "dubbo");
@@ -127,7 +127,7 @@ public class AbstractConfigTest {
     }*/
 
     @Test
-    public void testValidateProtocolConfig() {
+    void testValidateProtocolConfig() {
         ProtocolConfig protocolConfig = new ProtocolConfig();
         protocolConfig.setCodec("exchange");
         protocolConfig.setName("test");
@@ -136,7 +136,7 @@ public class AbstractConfigTest {
     }
 
     @Test
-    public void testAppendParameters1() throws Exception {
+    void testAppendParameters1() throws Exception {
         Map<String, String> parameters = new HashMap<String, String>();
         parameters.put("num", "ONE");
         AbstractConfig.appendParameters(parameters, new ParameterConfig(1, "hello/world", 30, "password"), "prefix");
@@ -149,7 +149,7 @@ public class AbstractConfigTest {
     }
 
     @Test
-    public void testAppendParameters2() throws Exception {
+    void testAppendParameters2() throws Exception {
         Assertions.assertThrows(IllegalStateException.class, () -> {
             Map<String, String> parameters = new HashMap<String, String>();
             AbstractConfig.appendParameters(parameters, new ParameterConfig());
@@ -157,14 +157,14 @@ public class AbstractConfigTest {
     }
 
     @Test
-    public void testAppendParameters3() throws Exception {
+    void testAppendParameters3() throws Exception {
         Map<String, String> parameters = new HashMap<String, String>();
         AbstractConfig.appendParameters(parameters, null);
         assertTrue(parameters.isEmpty());
     }
 
     @Test
-    public void testAppendParameters4() throws Exception {
+    void testAppendParameters4() throws Exception {
         Map<String, String> parameters = new HashMap<String, String>();
         AbstractConfig.appendParameters(parameters, new ParameterConfig(1, "hello/world", 30, "password"));
         Assertions.assertEquals("one", parameters.get("key.1"));
@@ -175,7 +175,7 @@ public class AbstractConfigTest {
     }
 
     @Test
-    public void testAppendAttributes1() throws Exception {
+    void testAppendAttributes1() throws Exception {
         ParameterConfig config = new ParameterConfig(1, "hello/world", 30, "password","BEIJING");
         Map<String, String> parameters = new HashMap<>();
         AbstractConfig.appendParameters(parameters, config);
@@ -196,24 +196,24 @@ public class AbstractConfigTest {
     }
 
     @Test
-    public void checkExtension() throws Exception {
+    void checkExtension() throws Exception {
         Assertions.assertThrows(IllegalStateException.class, () -> ConfigValidationUtils.checkExtension(ApplicationModel.defaultModel(), Greeting.class, "hello", "world"));
     }
 
     @Test
-    public void checkMultiExtension1() throws Exception {
+    void checkMultiExtension1() throws Exception {
         Assertions.assertThrows(IllegalStateException.class,
                 () -> ConfigValidationUtils.checkMultiExtension(ApplicationModel.defaultModel(), Greeting.class, "hello", "default,world"));
     }
 
     @Test
-    public void checkMultiExtension2() throws Exception {
+    void checkMultiExtension2() throws Exception {
         Assertions.assertThrows(IllegalStateException.class,
                 () -> ConfigValidationUtils.checkMultiExtension(ApplicationModel.defaultModel(), Greeting.class, "hello", "default,-world"));
     }
 
     @Test
-    public void checkLength() throws Exception {
+    void checkLength() throws Exception {
         Assertions.assertDoesNotThrow(() -> {
             StringBuilder builder = new StringBuilder();
             for (int i = 0; i <= 200; i++) {
@@ -224,7 +224,7 @@ public class AbstractConfigTest {
     }
 
     @Test
-    public void checkPathLength() throws Exception {
+    void checkPathLength() throws Exception {
         Assertions.assertDoesNotThrow(() -> {
             StringBuilder builder = new StringBuilder();
             for (int i = 0; i <= 200; i++) {
@@ -235,12 +235,12 @@ public class AbstractConfigTest {
     }
 
     @Test
-    public void checkName() throws Exception {
+    void checkName() throws Exception {
         Assertions.assertDoesNotThrow(() -> ConfigValidationUtils.checkName("hello", "world%"));
     }
 
     @Test
-    public void checkNameHasSymbol() throws Exception {
+    void checkNameHasSymbol() throws Exception {
         try {
             ConfigValidationUtils.checkNameHasSymbol("hello", ":*,/ -0123\tabcdABCD");
             ConfigValidationUtils.checkNameHasSymbol("mock", "force:return world");
@@ -250,7 +250,7 @@ public class AbstractConfigTest {
     }
 
     @Test
-    public void checkKey() throws Exception {
+    void checkKey() throws Exception {
         try {
             ConfigValidationUtils.checkKey("hello", "*,-0123abcdABCD");
         } catch (Exception e) {
@@ -259,7 +259,7 @@ public class AbstractConfigTest {
     }
 
     @Test
-    public void checkMultiName() throws Exception {
+    void checkMultiName() throws Exception {
         try {
             ConfigValidationUtils.checkMultiName("hello", ",-._0123abcdABCD");
         } catch (Exception e) {
@@ -268,7 +268,7 @@ public class AbstractConfigTest {
     }
 
     @Test
-    public void checkPathName() throws Exception {
+    void checkPathName() throws Exception {
         try {
             ConfigValidationUtils.checkPathName("hello", "/-$._0123abcdABCD");
         } catch (Exception e) {
@@ -277,7 +277,7 @@ public class AbstractConfigTest {
     }
 
     @Test
-    public void checkMethodName() throws Exception {
+    void checkMethodName() throws Exception {
         try {
             ConfigValidationUtils.checkMethodName("hello", "abcdABCD0123abcd");
         } catch (Exception e) {
@@ -293,7 +293,7 @@ public class AbstractConfigTest {
     }
 
     @Test
-    public void checkParameterName() throws Exception {
+    void checkParameterName() throws Exception {
         Map<String, String> parameters = Collections.singletonMap("hello", ":*,/-._0123abcdABCD");
         try {
             ConfigValidationUtils.checkParameterName(parameters);
@@ -320,7 +320,7 @@ public class AbstractConfigTest {
     }
 
     @Test
-    public void testRefreshAll() {
+    void testRefreshAll() {
         try {
             OverrideConfig overrideConfig = new OverrideConfig();
             overrideConfig.setAddress("override-config://127.0.0.1:2181");
@@ -359,7 +359,7 @@ public class AbstractConfigTest {
     }
 
     @Test
-    public void testRefreshSystem() {
+    void testRefreshSystem() {
         try {
             OverrideConfig overrideConfig = new OverrideConfig();
             overrideConfig.setAddress("override-config://127.0.0.1:2181");
@@ -383,7 +383,7 @@ public class AbstractConfigTest {
     }
 
     @Test
-    public void testRefreshProperties() throws Exception {
+    void testRefreshProperties() throws Exception {
         try {
             ApplicationModel.defaultModel().getModelEnvironment().setExternalConfigMap(new HashMap<>());
             OverrideConfig overrideConfig = new OverrideConfig();
@@ -408,7 +408,7 @@ public class AbstractConfigTest {
     }
 
     @Test
-    public void testRefreshExternal() {
+    void testRefreshExternal() {
         try {
             OverrideConfig overrideConfig = new OverrideConfig();
             overrideConfig.setAddress("override-config://127.0.0.1:2181");
@@ -443,7 +443,7 @@ public class AbstractConfigTest {
     }
 
     @Test
-    public void testRefreshById() {
+    void testRefreshById() {
         try {
             OverrideConfig overrideConfig = new OverrideConfig();
             overrideConfig.setId("override-id");
@@ -475,7 +475,7 @@ public class AbstractConfigTest {
     }
 
     @Test
-    public void testRefreshParameters() {
+    void testRefreshParameters() {
         try {
             Map<String, String> parameters = new HashMap<>();
             parameters.put("key1", "value1");
@@ -508,7 +508,7 @@ public class AbstractConfigTest {
     }
 
     @Test
-    public void testRefreshParametersWithAttribute() {
+    void testRefreshParametersWithAttribute() {
         try {
             OverrideConfig overrideConfig = new OverrideConfig();
             SysProps.setProperty("dubbo.override.parameters.key00", "value00");
@@ -520,7 +520,7 @@ public class AbstractConfigTest {
     }
 
     @Test
-    public void testRefreshParametersWithOverrideConfigMode() {
+    void testRefreshParametersWithOverrideConfigMode() {
         FrameworkModel frameworkModel = new FrameworkModel();
         try {
             // test OVERRIDE_ALL configMode
@@ -579,7 +579,7 @@ public class AbstractConfigTest {
     }
 
     @Test
-    public void testOnlyPrefixedKeyTakeEffect() {
+    void testOnlyPrefixedKeyTakeEffect() {
         try {
             OverrideConfig overrideConfig = new OverrideConfig();
             overrideConfig.setNotConflictKey("value-from-config");
@@ -610,7 +610,7 @@ public class AbstractConfigTest {
     }
 
     @Test
-    public void tetMetaData() {
+    void tetMetaData() {
         OverrideConfig overrideConfig = new OverrideConfig();
         overrideConfig.setId("override-id");
         overrideConfig.setAddress("override-config://127.0.0.1:2181");
@@ -635,7 +635,7 @@ public class AbstractConfigTest {
     }
 
     @Test
-    public void testEquals() {
+    void testEquals() {
         ApplicationConfig application1 = new ApplicationConfig();
         ApplicationConfig application2 = new ApplicationConfig();
         application1.setName("app1");
@@ -1032,7 +1032,7 @@ public class AbstractConfigTest {
 
 
     @Test
-    public void testMetaData() throws Exception {
+    void testMetaData() throws Exception {
 
         // Expect empty metadata for new instance
         // Check and set default value of field in checkDefault() method
@@ -1051,7 +1051,7 @@ public class AbstractConfigTest {
     }
 
     @Test
-    public void testRefreshNested() {
+    void testRefreshNested() {
         try {
             OuterConfig outerConfig = new OuterConfig();
 
diff --git a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/AbstractMethodConfigTest.java b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/AbstractMethodConfigTest.java
index 2c75a185b6..c13197da14 100644
--- a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/AbstractMethodConfigTest.java
+++ b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/AbstractMethodConfigTest.java
@@ -30,7 +30,7 @@ import static org.hamcrest.Matchers.is;
 import static org.hamcrest.Matchers.isEmptyOrNullString;
 import static org.hamcrest.Matchers.sameInstance;
 
-public class AbstractMethodConfigTest {
+class AbstractMethodConfigTest {
 
     @AfterAll
     public static void afterAll() {
@@ -38,56 +38,56 @@ public class AbstractMethodConfigTest {
     }
 
     @Test
-    public void testTimeout() throws Exception {
+    void testTimeout() throws Exception {
         MethodConfig methodConfig = new MethodConfig();
         methodConfig.setTimeout(10);
         assertThat(methodConfig.getTimeout(), equalTo(10));
     }
 
     @Test
-    public void testForks() throws Exception {
+    void testForks() throws Exception {
         MethodConfig methodConfig = new MethodConfig();
         methodConfig.setForks(10);
         assertThat(methodConfig.getForks(), equalTo(10));
     }
 
     @Test
-    public void testRetries() throws Exception {
+    void testRetries() throws Exception {
         MethodConfig methodConfig = new MethodConfig();
         methodConfig.setRetries(3);
         assertThat(methodConfig.getRetries(), equalTo(3));
     }
 
     @Test
-    public void testLoadbalance() throws Exception {
+    void testLoadbalance() throws Exception {
         MethodConfig methodConfig = new MethodConfig();
         methodConfig.setLoadbalance("mockloadbalance");
         assertThat(methodConfig.getLoadbalance(), equalTo("mockloadbalance"));
     }
 
     @Test
-    public void testAsync() throws Exception {
+    void testAsync() throws Exception {
         MethodConfig methodConfig = new MethodConfig();
         methodConfig.setAsync(true);
         assertThat(methodConfig.isAsync(), is(true));
     }
 
     @Test
-    public void testActives() throws Exception {
+    void testActives() throws Exception {
         MethodConfig methodConfig = new MethodConfig();
         methodConfig.setActives(10);
         assertThat(methodConfig.getActives(), equalTo(10));
     }
 
     @Test
-    public void testSent() throws Exception {
+    void testSent() throws Exception {
         MethodConfig methodConfig = new MethodConfig();
         methodConfig.setSent(true);
         assertThat(methodConfig.getSent(), is(true));
     }
 
     @Test
-    public void testMock() throws Exception {
+    void testMock() throws Exception {
         MethodConfig methodConfig = new MethodConfig();
         methodConfig.setMock((Boolean) null);
         assertThat(methodConfig.getMock(), isEmptyOrNullString());
@@ -100,28 +100,28 @@ public class AbstractMethodConfigTest {
     }
 
     @Test
-    public void testMerger() throws Exception {
+    void testMerger() throws Exception {
         MethodConfig methodConfig = new MethodConfig();
         methodConfig.setMerger("merger");
         assertThat(methodConfig.getMerger(), equalTo("merger"));
     }
 
     @Test
-    public void testCache() throws Exception {
+    void testCache() throws Exception {
         MethodConfig methodConfig = new MethodConfig();
         methodConfig.setCache("cache");
         assertThat(methodConfig.getCache(), equalTo("cache"));
     }
 
     @Test
-    public void testValidation() throws Exception {
+    void testValidation() throws Exception {
         MethodConfig methodConfig = new MethodConfig();
         methodConfig.setValidation("validation");
         assertThat(methodConfig.getValidation(), equalTo("validation"));
     }
 
     @Test
-    public void testParameters() throws Exception {
+    void testParameters() throws Exception {
         MethodConfig methodConfig = new MethodConfig();
         Map<String, String> parameters = new HashMap<String, String>();
         parameters.put("key", "value");
@@ -132,4 +132,4 @@ public class AbstractMethodConfigTest {
     private static class MethodConfig extends AbstractMethodConfig {
 
     }
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/AbstractReferenceConfigTest.java b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/AbstractReferenceConfigTest.java
index 7728c99187..a00960c715 100644
--- a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/AbstractReferenceConfigTest.java
+++ b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/AbstractReferenceConfigTest.java
@@ -48,7 +48,7 @@ import static org.hamcrest.Matchers.is;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.when;
 
-public class AbstractReferenceConfigTest {
+class AbstractReferenceConfigTest {
 
     @AfterAll
     public static void afterAll() throws Exception {
@@ -56,21 +56,21 @@ public class AbstractReferenceConfigTest {
     }
 
     @Test
-    public void testCheck() throws Exception {
+    void testCheck() throws Exception {
         ReferenceConfig referenceConfig = new ReferenceConfig();
         referenceConfig.setCheck(true);
         assertThat(referenceConfig.isCheck(), is(true));
     }
 
     @Test
-    public void testInit() throws Exception {
+    void testInit() throws Exception {
         ReferenceConfig referenceConfig = new ReferenceConfig();
         referenceConfig.setInit(true);
         assertThat(referenceConfig.isInit(), is(true));
     }
 
     @Test
-    public void testGeneric() throws Exception {
+    void testGeneric() throws Exception {
         ReferenceConfig referenceConfig = new ReferenceConfig();
         referenceConfig.setGeneric(true);
         assertThat(referenceConfig.isGeneric(), is(true));
@@ -81,14 +81,14 @@ public class AbstractReferenceConfigTest {
     }
 
     @Test
-    public void testInjvm() throws Exception {
+    void testInjvm() throws Exception {
         ReferenceConfig referenceConfig = new ReferenceConfig();
         referenceConfig.setInjvm(true);
         assertThat(referenceConfig.isInjvm(), is(true));
     }
 
     @Test
-    public void testFilter() throws Exception {
+    void testFilter() throws Exception {
         ReferenceConfig referenceConfig = new ReferenceConfig();
         referenceConfig.setFilter("mockfilter");
         assertThat(referenceConfig.getFilter(), equalTo("mockfilter"));
@@ -99,7 +99,7 @@ public class AbstractReferenceConfigTest {
     }
 
     @Test
-    public void testRouter() throws Exception {
+    void testRouter() throws Exception {
         ReferenceConfig referenceConfig = new ReferenceConfig();
         referenceConfig.setRouter("condition");
         assertThat(referenceConfig.getRouter(), equalTo("condition"));
@@ -119,7 +119,7 @@ public class AbstractReferenceConfigTest {
     }
 
     @Test
-    public void testListener() throws Exception {
+    void testListener() throws Exception {
         ReferenceConfig referenceConfig = new ReferenceConfig();
         referenceConfig.setListener("mockinvokerlistener");
         assertThat(referenceConfig.getListener(), equalTo("mockinvokerlistener"));
@@ -130,14 +130,14 @@ public class AbstractReferenceConfigTest {
     }
 
     @Test
-    public void testLazy() throws Exception {
+    void testLazy() throws Exception {
         ReferenceConfig referenceConfig = new ReferenceConfig();
         referenceConfig.setLazy(true);
         assertThat(referenceConfig.getLazy(), is(true));
     }
 
     @Test
-    public void testOnconnect() throws Exception {
+    void testOnconnect() throws Exception {
         ReferenceConfig referenceConfig = new ReferenceConfig();
         referenceConfig.setOnconnect("onConnect");
         assertThat(referenceConfig.getOnconnect(), equalTo("onConnect"));
@@ -145,7 +145,7 @@ public class AbstractReferenceConfigTest {
     }
 
     @Test
-    public void testOndisconnect() throws Exception {
+    void testOndisconnect() throws Exception {
         ReferenceConfig referenceConfig = new ReferenceConfig();
         referenceConfig.setOndisconnect("onDisconnect");
         assertThat(referenceConfig.getOndisconnect(), equalTo("onDisconnect"));
@@ -153,7 +153,7 @@ public class AbstractReferenceConfigTest {
     }
 
     @Test
-    public void testStubevent() throws Exception {
+    void testStubevent() throws Exception {
         ReferenceConfig referenceConfig = new ReferenceConfig();
         referenceConfig.setOnconnect("onConnect");
         Map<String, String> parameters = new HashMap<String, String>();
@@ -162,7 +162,7 @@ public class AbstractReferenceConfigTest {
     }
 
     @Test
-    public void testReconnect() throws Exception {
+    void testReconnect() throws Exception {
         ReferenceConfig referenceConfig = new ReferenceConfig();
         referenceConfig.setReconnect("reconnect");
         Map<String, String> parameters = new HashMap<String, String>();
@@ -172,7 +172,7 @@ public class AbstractReferenceConfigTest {
     }
 
     @Test
-    public void testSticky() throws Exception {
+    void testSticky() throws Exception {
         ReferenceConfig referenceConfig = new ReferenceConfig();
         referenceConfig.setSticky(true);
         Map<String, String> parameters = new HashMap<String, String>();
@@ -182,21 +182,21 @@ public class AbstractReferenceConfigTest {
     }
 
     @Test
-    public void testVersion() throws Exception {
+    void testVersion() throws Exception {
         ReferenceConfig referenceConfig = new ReferenceConfig();
         referenceConfig.setVersion("version");
         assertThat(referenceConfig.getVersion(), equalTo("version"));
     }
 
     @Test
-    public void testGroup() throws Exception {
+    void testGroup() throws Exception {
         ReferenceConfig referenceConfig = new ReferenceConfig();
         referenceConfig.setGroup("group");
         assertThat(referenceConfig.getGroup(), equalTo("group"));
     }
 
     @Test
-    public void testGenericOverride() {
+    void testGenericOverride() {
         ReferenceConfig referenceConfig = new ReferenceConfig();
         referenceConfig.setGeneric("false");
         referenceConfig.refresh();
@@ -217,4 +217,4 @@ public class AbstractReferenceConfigTest {
     private static class ReferenceConfig extends AbstractReferenceConfig {
 
     }
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/AbstractServiceConfigTest.java b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/AbstractServiceConfigTest.java
index bd0e7cddbf..f1fde0cb0b 100644
--- a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/AbstractServiceConfigTest.java
+++ b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/AbstractServiceConfigTest.java
@@ -35,44 +35,44 @@ import static org.hamcrest.Matchers.is;
 import static org.hamcrest.Matchers.notNullValue;
 import static org.hamcrest.Matchers.nullValue;
 
-public class AbstractServiceConfigTest {
+class AbstractServiceConfigTest {
     @Test
-    public void testVersion() throws Exception {
+    void testVersion() throws Exception {
         ServiceConfig serviceConfig = new ServiceConfig();
         serviceConfig.setVersion("version");
         assertThat(serviceConfig.getVersion(), equalTo("version"));
     }
 
     @Test
-    public void testGroup() throws Exception {
+    void testGroup() throws Exception {
         ServiceConfig serviceConfig = new ServiceConfig();
         serviceConfig.setGroup("group");
         assertThat(serviceConfig.getGroup(), equalTo("group"));
     }
 
     @Test
-    public void testDelay() throws Exception {
+    void testDelay() throws Exception {
         ServiceConfig serviceConfig = new ServiceConfig();
         serviceConfig.setDelay(1000);
         assertThat(serviceConfig.getDelay(), equalTo(1000));
     }
 
     @Test
-    public void testExport() throws Exception {
+    void testExport() throws Exception {
         ServiceConfig serviceConfig = new ServiceConfig();
         serviceConfig.setExport(true);
         assertThat(serviceConfig.getExport(), is(true));
     }
 
     @Test
-    public void testWeight() throws Exception {
+    void testWeight() throws Exception {
         ServiceConfig serviceConfig = new ServiceConfig();
         serviceConfig.setWeight(500);
         assertThat(serviceConfig.getWeight(), equalTo(500));
     }
 
     @Test
-    public void testDocument() throws Exception {
+    void testDocument() throws Exception {
         ServiceConfig serviceConfig = new ServiceConfig();
         serviceConfig.setDocument("http://dubbo.apache.org");
         assertThat(serviceConfig.getDocument(), equalTo("http://dubbo.apache.org"));
@@ -82,7 +82,7 @@ public class AbstractServiceConfigTest {
     }
 
     @Test
-    public void testToken() throws Exception {
+    void testToken() throws Exception {
         ServiceConfig serviceConfig = new ServiceConfig();
         serviceConfig.setToken("token");
         assertThat(serviceConfig.getToken(), equalTo("token"));
@@ -93,21 +93,21 @@ public class AbstractServiceConfigTest {
     }
 
     @Test
-    public void testDeprecated() throws Exception {
+    void testDeprecated() throws Exception {
         ServiceConfig serviceConfig = new ServiceConfig();
         serviceConfig.setDeprecated(true);
         assertThat(serviceConfig.isDeprecated(), is(true));
     }
 
     @Test
-    public void testDynamic() throws Exception {
+    void testDynamic() throws Exception {
         ServiceConfig serviceConfig = new ServiceConfig();
         serviceConfig.setDynamic(true);
         assertThat(serviceConfig.isDynamic(), is(true));
     }
 
     @Test
-    public void testProtocol() throws Exception {
+    void testProtocol() throws Exception {
         ServiceConfig serviceConfig = new ServiceConfig();
         assertThat(serviceConfig.getProtocol(), nullValue());
         serviceConfig.setProtocol(new ProtocolConfig());
@@ -117,7 +117,7 @@ public class AbstractServiceConfigTest {
     }
 
     @Test
-    public void testAccesslog() throws Exception {
+    void testAccesslog() throws Exception {
         ServiceConfig serviceConfig = new ServiceConfig();
         serviceConfig.setAccesslog("access.log");
         assertThat(serviceConfig.getAccesslog(), equalTo("access.log"));
@@ -128,14 +128,14 @@ public class AbstractServiceConfigTest {
     }
 
     @Test
-    public void testExecutes() throws Exception {
+    void testExecutes() throws Exception {
         ServiceConfig serviceConfig = new ServiceConfig();
         serviceConfig.setExecutes(10);
         assertThat(serviceConfig.getExecutes(), equalTo(10));
     }
 
     @Test
-    public void testFilter() throws Exception {
+    void testFilter() throws Exception {
         ServiceConfig serviceConfig = new ServiceConfig();
         serviceConfig.setFilter("mockfilter");
         assertThat(serviceConfig.getFilter(), equalTo("mockfilter"));
@@ -146,7 +146,7 @@ public class AbstractServiceConfigTest {
     }
 
     @Test
-    public void testListener() throws Exception {
+    void testListener() throws Exception {
         ServiceConfig serviceConfig = new ServiceConfig();
         serviceConfig.setListener("mockexporterlistener");
         assertThat(serviceConfig.getListener(), equalTo("mockexporterlistener"));
@@ -157,21 +157,21 @@ public class AbstractServiceConfigTest {
     }
 
     @Test
-    public void testRegister() throws Exception {
+    void testRegister() throws Exception {
         ServiceConfig serviceConfig = new ServiceConfig();
         serviceConfig.setRegister(true);
         assertThat(serviceConfig.isRegister(), is(true));
     }
 
     @Test
-    public void testWarmup() throws Exception {
+    void testWarmup() throws Exception {
         ServiceConfig serviceConfig = new ServiceConfig();
         serviceConfig.setWarmup(100);
         assertThat(serviceConfig.getWarmup(), equalTo(100));
     }
 
     @Test
-    public void testSerialization() throws Exception {
+    void testSerialization() throws Exception {
         ServiceConfig serviceConfig = new ServiceConfig();
         serviceConfig.setSerialization("serialization");
         assertThat(serviceConfig.getSerialization(), equalTo("serialization"));
@@ -181,4 +181,4 @@ public class AbstractServiceConfigTest {
     private static class ServiceConfig extends AbstractServiceConfig {
 
     }
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/ApplicationConfigTest.java b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/ApplicationConfigTest.java
index 7eb8c74cce..5fc3dbe40a 100644
--- a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/ApplicationConfigTest.java
+++ b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/ApplicationConfigTest.java
@@ -40,7 +40,7 @@ import static org.hamcrest.Matchers.is;
 import static org.hamcrest.Matchers.sameInstance;
 import static org.hamcrest.collection.IsCollectionWithSize.hasSize;
 
-public class ApplicationConfigTest {
+class ApplicationConfigTest {
 
     @BeforeEach
     public void beforeEach() {
@@ -53,7 +53,7 @@ public class ApplicationConfigTest {
     }
 
     @Test
-    public void testName() throws Exception {
+    void testName() throws Exception {
         ApplicationConfig application = new ApplicationConfig();
         application.setName("app");
         assertThat(application.getName(), equalTo("app"));
@@ -69,7 +69,7 @@ public class ApplicationConfigTest {
     }
 
     @Test
-    public void testVersion() throws Exception {
+    void testVersion() throws Exception {
         ApplicationConfig application = new ApplicationConfig("app");
         application.setVersion("1.0.0");
         assertThat(application.getVersion(), equalTo("1.0.0"));
@@ -79,28 +79,28 @@ public class ApplicationConfigTest {
     }
 
     @Test
-    public void testOwner() throws Exception {
+    void testOwner() throws Exception {
         ApplicationConfig application = new ApplicationConfig("app");
         application.setOwner("owner");
         assertThat(application.getOwner(), equalTo("owner"));
     }
 
     @Test
-    public void testOrganization() throws Exception {
+    void testOrganization() throws Exception {
         ApplicationConfig application = new ApplicationConfig("app");
         application.setOrganization("org");
         assertThat(application.getOrganization(), equalTo("org"));
     }
 
     @Test
-    public void testArchitecture() throws Exception {
+    void testArchitecture() throws Exception {
         ApplicationConfig application = new ApplicationConfig("app");
         application.setArchitecture("arch");
         assertThat(application.getArchitecture(), equalTo("arch"));
     }
 
     @Test
-    public void testEnvironment1() throws Exception {
+    void testEnvironment1() throws Exception {
         ApplicationConfig application = new ApplicationConfig("app");
         application.setEnvironment("develop");
         assertThat(application.getEnvironment(), equalTo("develop"));
@@ -111,7 +111,7 @@ public class ApplicationConfigTest {
     }
 
     @Test
-    public void testEnvironment2() throws Exception {
+    void testEnvironment2() throws Exception {
         Assertions.assertThrows(IllegalStateException.class, () -> {
             ApplicationConfig application = new ApplicationConfig("app");
             application.setEnvironment("illegal-env");
@@ -119,7 +119,7 @@ public class ApplicationConfigTest {
     }
 
     @Test
-    public void testRegistry() throws Exception {
+    void testRegistry() throws Exception {
         ApplicationConfig application = new ApplicationConfig("app");
         RegistryConfig registry = new RegistryConfig();
         application.setRegistry(registry);
@@ -130,7 +130,7 @@ public class ApplicationConfigTest {
     }
 
     @Test
-    public void testMonitor() throws Exception {
+    void testMonitor() throws Exception {
         ApplicationConfig application = new ApplicationConfig("app");
         application.setMonitor(new MonitorConfig("monitor-addr"));
         assertThat(application.getMonitor().getAddress(), equalTo("monitor-addr"));
@@ -139,21 +139,21 @@ public class ApplicationConfigTest {
     }
 
     @Test
-    public void testLogger() throws Exception {
+    void testLogger() throws Exception {
         ApplicationConfig application = new ApplicationConfig("app");
         application.setLogger("log4j");
         assertThat(application.getLogger(), equalTo("log4j"));
     }
 
     @Test
-    public void testDefault() throws Exception {
+    void testDefault() throws Exception {
         ApplicationConfig application = new ApplicationConfig("app");
         application.setDefault(true);
         assertThat(application.isDefault(), is(true));
     }
 
     @Test
-    public void testDumpDirectory() throws Exception {
+    void testDumpDirectory() throws Exception {
         ApplicationConfig application = new ApplicationConfig("app");
         application.setDumpDirectory("/dump");
         assertThat(application.getDumpDirectory(), equalTo("/dump"));
@@ -163,7 +163,7 @@ public class ApplicationConfigTest {
     }
 
     @Test
-    public void testQosEnable() throws Exception {
+    void testQosEnable() throws Exception {
         ApplicationConfig application = new ApplicationConfig("app");
         application.setQosEnable(true);
         assertThat(application.getQosEnable(), is(true));
@@ -173,14 +173,14 @@ public class ApplicationConfigTest {
     }
 
     @Test
-    public void testQosPort() throws Exception {
+    void testQosPort() throws Exception {
         ApplicationConfig application = new ApplicationConfig("app");
         application.setQosPort(8080);
         assertThat(application.getQosPort(), equalTo(8080));
     }
 
     @Test
-    public void testQosAcceptForeignIp() throws Exception {
+    void testQosAcceptForeignIp() throws Exception {
         ApplicationConfig application = new ApplicationConfig("app");
         application.setQosAcceptForeignIp(true);
         assertThat(application.getQosAcceptForeignIp(), is(true));
@@ -190,7 +190,7 @@ public class ApplicationConfigTest {
     }
 
     @Test
-    public void testParameters() throws Exception {
+    void testParameters() throws Exception {
         ApplicationConfig application = new ApplicationConfig("app");
         application.setQosAcceptForeignIp(true);
         Map<String, String> parameters = new HashMap<String, String>();
@@ -201,7 +201,7 @@ public class ApplicationConfigTest {
     }
 
     @Test
-    public void testAppendEnvironmentProperties() {
+    void testAppendEnvironmentProperties() {
         ApplicationConfig application = new ApplicationConfig("app");
         SysProps.setProperty("dubbo.labels", "tag1=value1;tag2=value2 ; tag3 = value3");
         application.refresh();
@@ -229,14 +229,14 @@ public class ApplicationConfigTest {
     }
 
     @Test
-    public void testMetaData() {
+    void testMetaData() {
         ApplicationConfig config = new ApplicationConfig();
         Map<String, String> metaData = config.getMetaData();
         Assertions.assertEquals(0, metaData.size(), "Expect empty metadata but found: "+metaData);
     }
 
     @Test
-    public void testOverrideEmptyConfig() {
+    void testOverrideEmptyConfig() {
         String owner = "tom1";
         SysProps.setProperty("dubbo.application.name", "demo-app");
         SysProps.setProperty("dubbo.application.owner", owner);
@@ -255,7 +255,7 @@ public class ApplicationConfigTest {
     }
 
     @Test
-    public void testOverrideConfigById() {
+    void testOverrideConfigById() {
         String owner = "tom2";
         SysProps.setProperty("dubbo.applications.demo-app.owner", owner);
         SysProps.setProperty("dubbo.applications.demo-app.version", "1.2.3");
@@ -277,7 +277,7 @@ public class ApplicationConfigTest {
     }
 
     @Test
-    public void testOverrideConfigByName() {
+    void testOverrideConfigByName() {
         String owner = "tom3";
         SysProps.setProperty("dubbo.applications.demo-app.owner", owner);
         SysProps.setProperty("dubbo.applications.demo-app.version", "1.2.3");
@@ -296,7 +296,7 @@ public class ApplicationConfigTest {
     }
 
     @Test
-    public void testLoadConfig() {
+    void testLoadConfig() {
         String owner = "tom4";
         SysProps.setProperty("dubbo.applications.demo-app.owner", owner);
         SysProps.setProperty("dubbo.applications.demo-app.version", "1.2.3");
@@ -315,7 +315,7 @@ public class ApplicationConfigTest {
     }
 
     @Test
-    public void testOverrideConfigConvertCase() {
+    void testOverrideConfigConvertCase() {
         SysProps.setProperty("dubbo.application.NAME", "demo-app");
         SysProps.setProperty("dubbo.application.qos-Enable", "false");
         SysProps.setProperty("dubbo.application.qos_host", "127.0.0.1");
@@ -333,4 +333,4 @@ public class ApplicationConfigTest {
 
         DubboBootstrap.getInstance().destroy();
     }
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/ArgumentConfigTest.java b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/ArgumentConfigTest.java
index 0fff22d94e..a966a3d794 100644
--- a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/ArgumentConfigTest.java
+++ b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/ArgumentConfigTest.java
@@ -27,30 +27,30 @@ import static org.hamcrest.Matchers.equalTo;
 import static org.hamcrest.Matchers.hasEntry;
 import static org.hamcrest.Matchers.is;
 
-public class ArgumentConfigTest {
+class ArgumentConfigTest {
     @Test
-    public void testIndex() throws Exception {
+    void testIndex() throws Exception {
         ArgumentConfig argument = new ArgumentConfig();
         argument.setIndex(1);
         assertThat(argument.getIndex(), is(1));
     }
 
     @Test
-    public void testType() throws Exception {
+    void testType() throws Exception {
         ArgumentConfig argument = new ArgumentConfig();
         argument.setType("int");
         assertThat(argument.getType(), equalTo("int"));
     }
 
     @Test
-    public void testCallback() throws Exception {
+    void testCallback() throws Exception {
         ArgumentConfig argument = new ArgumentConfig();
         argument.setCallback(true);
         assertThat(argument.isCallback(), is(true));
     }
 
     @Test
-    public void testArguments() throws Exception {
+    void testArguments() throws Exception {
         ArgumentConfig argument = new ArgumentConfig();
         argument.setIndex(1);
         argument.setType("int");
@@ -60,4 +60,4 @@ public class ArgumentConfigTest {
         assertThat(parameters, hasEntry("callback", "true"));
         assertThat(parameters.size(), is(1));
     }
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/ConfigCenterConfigTest.java b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/ConfigCenterConfigTest.java
index 6c66b19448..961feee93b 100644
--- a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/ConfigCenterConfigTest.java
+++ b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/ConfigCenterConfigTest.java
@@ -35,7 +35,7 @@ import java.util.Map;
 
 import static org.apache.dubbo.remoting.Constants.CLIENT_KEY;
 
-public class ConfigCenterConfigTest {
+class ConfigCenterConfigTest {
 
     @BeforeEach
     public void setUp() {
@@ -48,7 +48,7 @@ public class ConfigCenterConfigTest {
     }
 
     @Test
-    public void testPrefix() {
+    void testPrefix() {
         ConfigCenterConfig config = new ConfigCenterConfig();
         Assertions.assertEquals(Arrays.asList("dubbo.config-center"), config.getPrefixes());
 
@@ -58,7 +58,7 @@ public class ConfigCenterConfigTest {
     }
 
     @Test
-    public void testToUrl() {
+    void testToUrl() {
         ConfigCenterConfig config = new ConfigCenterConfig();
         config.setNamespace("namespace");
         config.setGroup("group");
@@ -74,7 +74,7 @@ public class ConfigCenterConfigTest {
     }
 
     @Test
-    public void testOverrideConfig() {
+    void testOverrideConfig() {
 
         String zkAddr = ZookeeperRegistryCenterConfig.getConnectionAddress();
         // sysprops has no id
@@ -105,7 +105,7 @@ public class ConfigCenterConfigTest {
     }
 
     @Test
-    public void testOverrideConfig2() {
+    void testOverrideConfig2() {
 
         String zkAddr = "nacos://127.0.0.1:8848";
         // sysprops has no id
@@ -131,7 +131,7 @@ public class ConfigCenterConfigTest {
     }
 
     @Test
-    public void testOverrideConfigBySystemProps() {
+    void testOverrideConfigBySystemProps() {
 
         //Config instance has Id, but sysprops without id
         SysProps.setProperty("dubbo.config-center.check", "false");
@@ -156,7 +156,7 @@ public class ConfigCenterConfigTest {
     }
 
     @Test
-    public void testOverrideConfigByDubboProps() {
+    void testOverrideConfigByDubboProps() {
 
         ApplicationModel.defaultModel().getDefaultModule();
         // Config instance has id, dubbo props has no id
@@ -185,7 +185,7 @@ public class ConfigCenterConfigTest {
     }
 
     @Test
-    public void testOverrideConfigBySystemPropsWithId() {
+    void testOverrideConfigBySystemPropsWithId() {
 
         // Both config instance and sysprops have id
         SysProps.setProperty("dubbo.config-centers.configcenterA.check", "false");
@@ -211,7 +211,7 @@ public class ConfigCenterConfigTest {
     }
 
     @Test
-    public void testOverrideConfigByDubboPropsWithId() {
+    void testOverrideConfigByDubboPropsWithId() {
 
         ApplicationModel.defaultModel().getDefaultModule();
         // Config instance has id, dubbo props has id
@@ -241,14 +241,14 @@ public class ConfigCenterConfigTest {
     }
 
     @Test
-    public void testMetaData() {
+    void testMetaData() {
         ConfigCenterConfig configCenter = new ConfigCenterConfig();
         Map<String, String> metaData = configCenter.getMetaData();
         Assertions.assertEquals(0, metaData.size(), "Expect empty metadata but found: "+metaData);
     }
 
     @Test
-    public void testParameters() {
+    void testParameters() {
         ConfigCenterConfig cc = new ConfigCenterConfig();
         cc.setParameters(new LinkedHashMap<>());
         cc.getParameters().put(CLIENT_KEY, null);
@@ -265,7 +265,7 @@ public class ConfigCenterConfigTest {
     }
 
     @Test
-    public void testAttributes() {
+    void testAttributes() {
         ConfigCenterConfig cc = new ConfigCenterConfig();
         cc.setAddress(ZookeeperRegistryCenterConfig.getConnectionAddress());
         Map<String, String> attributes = new LinkedHashMap<>();
@@ -280,7 +280,7 @@ public class ConfigCenterConfigTest {
     }
 
     @Test
-    public void testSetAddress() {
+    void testSetAddress() {
         String address = ZookeeperRegistryCenterConfig.getConnectionAddress();
         ConfigCenterConfig cc = new ConfigCenterConfig();
         cc.setUsername("user123"); // set username first
@@ -294,4 +294,4 @@ public class ConfigCenterConfigTest {
         Assertions.assertEquals("pass123", cc.getPassword());
 
     }
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/ConfigScopeModelInitializerTest.java b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/ConfigScopeModelInitializerTest.java
index f80f546178..41dcd420ca 100644
--- a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/ConfigScopeModelInitializerTest.java
+++ b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/ConfigScopeModelInitializerTest.java
@@ -25,7 +25,7 @@ import org.junit.jupiter.api.Assertions;
 import org.junit.jupiter.api.BeforeEach;
 import org.junit.jupiter.api.Test;
 
-public class ConfigScopeModelInitializerTest {
+class ConfigScopeModelInitializerTest {
     private FrameworkModel frameworkModel;
     private ApplicationModel applicationModel;
     private ModuleModel moduleModel;
@@ -43,8 +43,8 @@ public class ConfigScopeModelInitializerTest {
     }
 
     @Test
-    public void test(){
+    void test(){
         Assertions.assertNotNull(applicationModel.getDeployer());
         Assertions.assertNotNull(moduleModel.getDeployer());
     }
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/ConsumerConfigTest.java b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/ConsumerConfigTest.java
index 6bc617c975..7f868651cf 100644
--- a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/ConsumerConfigTest.java
+++ b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/ConsumerConfigTest.java
@@ -33,7 +33,7 @@ import static org.hamcrest.MatcherAssert.assertThat;
 import static org.hamcrest.Matchers.equalTo;
 import static org.hamcrest.Matchers.is;
 
-public class ConsumerConfigTest {
+class ConsumerConfigTest {
 
     @BeforeEach
     public void setUp() {
@@ -46,7 +46,7 @@ public class ConsumerConfigTest {
     }
 
     @Test
-    public void testTimeout() throws Exception {
+    void testTimeout() throws Exception {
         System.clearProperty("sun.rmi.transport.tcp.responseTimeout");
         ConsumerConfig consumer = new ConsumerConfig();
         consumer.setTimeout(10);
@@ -55,49 +55,49 @@ public class ConsumerConfigTest {
     }
 
     @Test
-    public void testDefault() throws Exception {
+    void testDefault() throws Exception {
         ConsumerConfig consumer = new ConsumerConfig();
         consumer.setDefault(true);
         assertThat(consumer.isDefault(), is(true));
     }
 
     @Test
-    public void testClient() throws Exception {
+    void testClient() throws Exception {
         ConsumerConfig consumer = new ConsumerConfig();
         consumer.setClient("client");
         assertThat(consumer.getClient(), equalTo("client"));
     }
 
     @Test
-    public void testThreadpool() throws Exception {
+    void testThreadpool() throws Exception {
         ConsumerConfig consumer = new ConsumerConfig();
         consumer.setThreadpool("fixed");
         assertThat(consumer.getThreadpool(), equalTo("fixed"));
     }
 
     @Test
-    public void testCorethreads() throws Exception {
+    void testCorethreads() throws Exception {
         ConsumerConfig consumer = new ConsumerConfig();
         consumer.setCorethreads(10);
         assertThat(consumer.getCorethreads(), equalTo(10));
     }
 
     @Test
-    public void testThreads() throws Exception {
+    void testThreads() throws Exception {
         ConsumerConfig consumer = new ConsumerConfig();
         consumer.setThreads(20);
         assertThat(consumer.getThreads(), equalTo(20));
     }
 
     @Test
-    public void testQueues() throws Exception {
+    void testQueues() throws Exception {
         ConsumerConfig consumer = new ConsumerConfig();
         consumer.setQueues(5);
         assertThat(consumer.getQueues(), equalTo(5));
     }
 
     @Test
-    public void testOverrideConfigSingle() {
+    void testOverrideConfigSingle() {
         SysProps.setProperty("dubbo.consumer.check", "false");
         SysProps.setProperty("dubbo.consumer.group", "demo");
         SysProps.setProperty("dubbo.consumer.threads", "10");
@@ -124,7 +124,7 @@ public class ConsumerConfigTest {
     }
 
     @Test
-    public void testOverrideConfigByPluralityId() {
+    void testOverrideConfigByPluralityId() {
         SysProps.setProperty("dubbo.consumer.group", "demoA");  //ignore
         SysProps.setProperty("dubbo.consumers.consumerA.check", "false");
         SysProps.setProperty("dubbo.consumers.consumerA.group", "demoB");
@@ -152,7 +152,7 @@ public class ConsumerConfigTest {
     }
 
     @Test
-    public void testOverrideConfigBySingularId() {
+    void testOverrideConfigBySingularId() {
         // override success
         SysProps.setProperty("dubbo.consumer.group", "demoA");
         SysProps.setProperty("dubbo.consumer.threads", "15");
@@ -183,7 +183,7 @@ public class ConsumerConfigTest {
     }
 
     @Test
-    public void testOverrideConfigByDubboProps() {
+    void testOverrideConfigByDubboProps() {
         ApplicationModel.defaultModel().getDefaultModule();
         ApplicationModel.defaultModel().getModelEnvironment().getPropertiesConfiguration().setProperty("dubbo.consumers.consumerA.check", "false");
         ApplicationModel.defaultModel().getModelEnvironment().getPropertiesConfiguration().setProperty("dubbo.consumers.consumerA.group", "demo");
@@ -212,7 +212,7 @@ public class ConsumerConfigTest {
     }
 
     @Test
-    public void testReferenceAndConsumerConfigOverlay() {
+    void testReferenceAndConsumerConfigOverlay() {
         SysProps.setProperty("dubbo.consumer.group", "demo");
         SysProps.setProperty("dubbo.consumer.threads", "12");
         SysProps.setProperty("dubbo.consumer.timeout", "1234");
@@ -238,9 +238,9 @@ public class ConsumerConfigTest {
     }
 
     @Test
-    public void testMetaData() {
+    void testMetaData() {
         ConsumerConfig consumerConfig = new ConsumerConfig();
         Map<String, String> metaData = consumerConfig.getMetaData();
         Assertions.assertEquals(0, metaData.size(), "Expect empty metadata but found: "+metaData);
     }
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/MetadataReportConfigTest.java b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/MetadataReportConfigTest.java
index 18ee25f9e6..62fb8723f8 100644
--- a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/MetadataReportConfigTest.java
+++ b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/MetadataReportConfigTest.java
@@ -24,9 +24,9 @@ import org.junit.jupiter.api.Test;
 import static org.hamcrest.MatcherAssert.assertThat;
 import static org.hamcrest.Matchers.equalTo;
 
-public class MetadataReportConfigTest {
+class MetadataReportConfigTest {
     @Test
-    public void testFile() {
+    void testFile() {
         MetadataReportConfig metadataReportConfig = new MetadataReportConfig();
         metadataReportConfig.setFile("file");
         assertThat(metadataReportConfig.getFile(), equalTo("file"));
@@ -37,4 +37,4 @@ public class MetadataReportConfigTest {
 
     }
 
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/MethodConfigTest.java b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/MethodConfigTest.java
index 90926db738..7b137c5762 100644
--- a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/MethodConfigTest.java
+++ b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/MethodConfigTest.java
@@ -51,7 +51,7 @@ import static org.hamcrest.Matchers.hasKey;
 import static org.hamcrest.Matchers.is;
 import static org.hamcrest.Matchers.not;
 
-public class MethodConfigTest {
+class MethodConfigTest {
     private static final String METHOD_NAME = "sayHello";
     private static final int TIMEOUT = 1300;
     private static final int RETRIES = 4;
@@ -91,7 +91,7 @@ public class MethodConfigTest {
 
     //TODO remove this test
     @Test
-    public void testStaticConstructor() throws NoSuchFieldException {
+    void testStaticConstructor() throws NoSuchFieldException {
         Method[] methods = this.getClass().getDeclaredField("testField").getAnnotation(Reference.class).methods();
         List<MethodConfig> methodConfigs = MethodConfig.constructMethodConfig(methods);
         MethodConfig methodConfig = methodConfigs.get(0);
@@ -119,7 +119,7 @@ public class MethodConfigTest {
     }
 
     @Test
-    public void testName() throws Exception {
+    void testName() throws Exception {
         MethodConfig method = new MethodConfig();
         method.setName("hello");
         assertThat(method.getName(), equalTo("hello"));
@@ -129,42 +129,42 @@ public class MethodConfigTest {
     }
 
     @Test
-    public void testStat() throws Exception {
+    void testStat() throws Exception {
         MethodConfig method = new MethodConfig();
         method.setStat(10);
         assertThat(method.getStat(), equalTo(10));
     }
 
     @Test
-    public void testRetry() throws Exception {
+    void testRetry() throws Exception {
         MethodConfig method = new MethodConfig();
         method.setRetry(true);
         assertThat(method.isRetry(), is(true));
     }
 
     @Test
-    public void testReliable() throws Exception {
+    void testReliable() throws Exception {
         MethodConfig method = new MethodConfig();
         method.setReliable(true);
         assertThat(method.isReliable(), is(true));
     }
 
     @Test
-    public void testExecutes() throws Exception {
+    void testExecutes() throws Exception {
         MethodConfig method = new MethodConfig();
         method.setExecutes(10);
         assertThat(method.getExecutes(), equalTo(10));
     }
 
     @Test
-    public void testDeprecated() throws Exception {
+    void testDeprecated() throws Exception {
         MethodConfig method = new MethodConfig();
         method.setDeprecated(true);
         assertThat(method.getDeprecated(), is(true));
     }
 
     @Test
-    public void testArguments() throws Exception {
+    void testArguments() throws Exception {
         MethodConfig method = new MethodConfig();
         ArgumentConfig argument = new ArgumentConfig();
         method.setArguments(Collections.singletonList(argument));
@@ -173,7 +173,7 @@ public class MethodConfigTest {
     }
 
     @Test
-    public void testSticky() throws Exception {
+    void testSticky() throws Exception {
         MethodConfig method = new MethodConfig();
         method.setSticky(true);
         assertThat(method.getSticky(), is(true));
@@ -193,7 +193,7 @@ public class MethodConfigTest {
     }
 
     @Test
-    public void testOnReturnMethod() throws Exception {
+    void testOnReturnMethod() throws Exception {
         MethodConfig method = new MethodConfig();
         method.setOnreturnMethod("on-return-method");
         assertThat(method.getOnreturnMethod(), equalTo("on-return-method"));
@@ -219,7 +219,7 @@ public class MethodConfigTest {
     }
 
     @Test
-    public void testOnThrowMethod() throws Exception {
+    void testOnThrowMethod() throws Exception {
         MethodConfig method = new MethodConfig();
         method.setOnthrowMethod("on-throw-method");
         assertThat(method.getOnthrowMethod(), equalTo("on-throw-method"));
@@ -245,7 +245,7 @@ public class MethodConfigTest {
     }
 
     @Test
-    public void testOnInvokeMethod() throws Exception {
+    void testOnInvokeMethod() throws Exception {
         MethodConfig method = new MethodConfig();
         method.setOninvokeMethod("on-invoke-method");
         assertThat(method.getOninvokeMethod(), equalTo("on-invoke-method"));
@@ -258,14 +258,14 @@ public class MethodConfigTest {
     }
 
     @Test
-    public void testReturn() throws Exception {
+    void testReturn() throws Exception {
         MethodConfig method = new MethodConfig();
         method.setReturn(true);
         assertThat(method.isReturn(), is(true));
     }
 
     @Test
-    public void testOverrideMethodConfigOfReference() {
+    void testOverrideMethodConfigOfReference() {
 
         String interfaceName = DemoService.class.getName();
         SysProps.setProperty("dubbo.reference."+ interfaceName +".sayName.timeout", "1234");
@@ -297,7 +297,7 @@ public class MethodConfigTest {
     }
 
     @Test
-    public void testAddMethodConfigOfReference() {
+    void testAddMethodConfigOfReference() {
 
         String interfaceName = DemoService.class.getName();
         SysProps.setProperty("dubbo.reference."+ interfaceName +".sayName.timeout", "1234");
@@ -331,7 +331,7 @@ public class MethodConfigTest {
     }
 
     @Test
-    public void testOverrideMethodConfigOfService() {
+    void testOverrideMethodConfigOfService() {
 
         String interfaceName = DemoService.class.getName();
         SysProps.setProperty("dubbo.service."+ interfaceName +".sayName.timeout", "1234");
@@ -367,7 +367,7 @@ public class MethodConfigTest {
     }
 
     @Test
-    public void testAddMethodConfigOfService() {
+    void testAddMethodConfigOfService() {
 
         String interfaceName = DemoService.class.getName();
         SysProps.setProperty("dubbo.service."+ interfaceName +".sayName.timeout", "1234");
@@ -411,7 +411,7 @@ public class MethodConfigTest {
     }
 
     @Test
-    public void testVerifyMethodConfigOfService() {
+    void testVerifyMethodConfigOfService() {
 
         String interfaceName = DemoService.class.getName();
         SysProps.setProperty("dubbo.service."+ interfaceName +".sayHello.timeout", "1234");
@@ -443,7 +443,7 @@ public class MethodConfigTest {
     }
 
     @Test
-    public void testIgnoreInvalidMethodConfigOfService() {
+    void testIgnoreInvalidMethodConfigOfService() {
 
         String interfaceName = DemoService.class.getName();
         SysProps.setProperty("dubbo.service."+ interfaceName +".sayHello.timeout", "1234");
@@ -471,9 +471,9 @@ public class MethodConfigTest {
     }
 
     @Test
-    public void testMetaData() {
+    void testMetaData() {
         MethodConfig methodConfig = new MethodConfig();
         Map<String, String> metaData = methodConfig.getMetaData();
         Assertions.assertEquals(0, metaData.size(), "Expect empty metadata but found: "+metaData);
     }
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/MetricsConfigTest.java b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/MetricsConfigTest.java
index ed6fd87dab..f752b7e86c 100644
--- a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/MetricsConfigTest.java
+++ b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/MetricsConfigTest.java
@@ -26,10 +26,10 @@ import static org.apache.dubbo.common.constants.MetricsConstants.PROTOCOL_PROMET
 import static org.hamcrest.MatcherAssert.assertThat;
 import static org.hamcrest.Matchers.equalTo;
 
-public class MetricsConfigTest {
+class MetricsConfigTest {
 
     @Test
-    public void testToUrl() {
+    void testToUrl() {
         MetricsConfig metrics = new MetricsConfig();
         metrics.setProtocol(PROTOCOL_PROMETHEUS);
 
@@ -59,14 +59,14 @@ public class MetricsConfigTest {
     }
 
     @Test
-    public void testProtocol() {
+    void testProtocol() {
         MetricsConfig metrics = new MetricsConfig();
         metrics.setProtocol(PROTOCOL_PROMETHEUS);
         assertThat(metrics.getProtocol(), equalTo(PROTOCOL_PROMETHEUS));
     }
 
     @Test
-    public void testPrometheus() {
+    void testPrometheus() {
         MetricsConfig metrics = new MetricsConfig();
 
         PrometheusConfig prometheus = new PrometheusConfig();
@@ -104,7 +104,7 @@ public class MetricsConfigTest {
     }
 
     @Test
-    public void testAggregation() {
+    void testAggregation() {
         MetricsConfig metrics = new MetricsConfig();
 
         AggregationConfig aggregation = new AggregationConfig();
@@ -117,4 +117,4 @@ public class MetricsConfigTest {
         assertThat(metrics.getAggregation().getBucketNum(), equalTo(5));
         assertThat(metrics.getAggregation().getTimeWindowSeconds(), equalTo(120));
     }
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/ModuleConfigTest.java b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/ModuleConfigTest.java
index 67a1339219..6aeba1bc98 100644
--- a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/ModuleConfigTest.java
+++ b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/ModuleConfigTest.java
@@ -32,10 +32,10 @@ import static org.hamcrest.Matchers.hasEntry;
 import static org.hamcrest.Matchers.is;
 import static org.hamcrest.Matchers.sameInstance;
 
-public class ModuleConfigTest {
+class ModuleConfigTest {
 
     @Test
-    public void testName2() throws Exception {
+    void testName2() throws Exception {
         ModuleConfig module = new ModuleConfig();
         module.setName("module-name");
         assertThat(module.getName(), equalTo("module-name"));
@@ -46,7 +46,7 @@ public class ModuleConfigTest {
     }
 
     @Test
-    public void testVersion() throws Exception {
+    void testVersion() throws Exception {
         ModuleConfig module = new ModuleConfig();
         module.setName("module-name");
         module.setVersion("1.0.0");
@@ -57,21 +57,21 @@ public class ModuleConfigTest {
     }
 
     @Test
-    public void testOwner() throws Exception {
+    void testOwner() throws Exception {
         ModuleConfig module = new ModuleConfig();
         module.setOwner("owner");
         assertThat(module.getOwner(), equalTo("owner"));
     }
 
     @Test
-    public void testOrganization() throws Exception {
+    void testOrganization() throws Exception {
         ModuleConfig module = new ModuleConfig();
         module.setOrganization("org");
         assertThat(module.getOrganization(), equalTo("org"));
     }
 
     @Test
-    public void testRegistry() throws Exception {
+    void testRegistry() throws Exception {
         ModuleConfig module = new ModuleConfig();
         RegistryConfig registry = new RegistryConfig();
         module.setRegistry(registry);
@@ -79,7 +79,7 @@ public class ModuleConfigTest {
     }
 
     @Test
-    public void testRegistries() throws Exception {
+    void testRegistries() throws Exception {
         ModuleConfig module = new ModuleConfig();
         RegistryConfig registry = new RegistryConfig();
         module.setRegistries(Collections.singletonList(registry));
@@ -88,7 +88,7 @@ public class ModuleConfigTest {
     }
 
     @Test
-    public void testMonitor() throws Exception {
+    void testMonitor() throws Exception {
         ModuleConfig module = new ModuleConfig();
         module.setMonitor("monitor-addr1");
         assertThat(module.getMonitor().getAddress(), equalTo("monitor-addr1"));
@@ -97,16 +97,16 @@ public class ModuleConfigTest {
     }
 
     @Test
-    public void testDefault() throws Exception {
+    void testDefault() throws Exception {
         ModuleConfig module = new ModuleConfig();
         module.setDefault(true);
         assertThat(module.isDefault(), is(true));
     }
 
     @Test
-    public void testMetaData() {
+    void testMetaData() {
         MonitorConfig config = new MonitorConfig();
         Map<String, String> metaData = config.getMetaData();
         Assertions.assertEquals(0, metaData.size(), "Expect empty metadata but found: "+metaData);
     }
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/MonitorConfigTest.java b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/MonitorConfigTest.java
index b5779af1c5..0edf1c9b87 100644
--- a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/MonitorConfigTest.java
+++ b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/MonitorConfigTest.java
@@ -29,9 +29,9 @@ import static org.hamcrest.Matchers.equalTo;
 import static org.hamcrest.Matchers.hasEntry;
 import static org.hamcrest.Matchers.is;
 
-public class MonitorConfigTest {
+class MonitorConfigTest {
     @Test
-    public void testAddress() throws Exception {
+    void testAddress() throws Exception {
         MonitorConfig monitor = new MonitorConfig();
         monitor.setAddress("monitor-addr");
         assertThat(monitor.getAddress(), equalTo("monitor-addr"));
@@ -41,7 +41,7 @@ public class MonitorConfigTest {
     }
 
     @Test
-    public void testProtocol() throws Exception {
+    void testProtocol() throws Exception {
         MonitorConfig monitor = new MonitorConfig();
         monitor.setProtocol("protocol");
         assertThat(monitor.getProtocol(), equalTo("protocol"));
@@ -51,7 +51,7 @@ public class MonitorConfigTest {
     }
 
     @Test
-    public void testUsername() throws Exception {
+    void testUsername() throws Exception {
         MonitorConfig monitor = new MonitorConfig();
         monitor.setUsername("user");
         assertThat(monitor.getUsername(), equalTo("user"));
@@ -61,7 +61,7 @@ public class MonitorConfigTest {
     }
 
     @Test
-    public void testPassword() throws Exception {
+    void testPassword() throws Exception {
         MonitorConfig monitor = new MonitorConfig();
         monitor.setPassword("secret");
         assertThat(monitor.getPassword(), equalTo("secret"));
@@ -71,21 +71,21 @@ public class MonitorConfigTest {
     }
 
     @Test
-    public void testGroup() throws Exception {
+    void testGroup() throws Exception {
         MonitorConfig monitor = new MonitorConfig();
         monitor.setGroup("group");
         assertThat(monitor.getGroup(), equalTo("group"));
     }
 
     @Test
-    public void testVersion() throws Exception {
+    void testVersion() throws Exception {
         MonitorConfig monitor = new MonitorConfig();
         monitor.setVersion("1.0.0");
         assertThat(monitor.getVersion(), equalTo("1.0.0"));
     }
 
     @Test
-    public void testParameters() throws Exception {
+    void testParameters() throws Exception {
         MonitorConfig monitor = new MonitorConfig();
         Map<String, String> parameters = Collections.singletonMap("k1", "v1");
         monitor.setParameters(parameters);
@@ -93,23 +93,23 @@ public class MonitorConfigTest {
     }
 
     @Test
-    public void testDefault() throws Exception {
+    void testDefault() throws Exception {
         MonitorConfig monitor = new MonitorConfig();
         monitor.setDefault(true);
         assertThat(monitor.isDefault(), is(true));
     }
 
     @Test
-    public void testInterval() throws Exception {
+    void testInterval() throws Exception {
         MonitorConfig monitor = new MonitorConfig();
         monitor.setInterval("100");
         assertThat(monitor.getInterval(), equalTo("100"));
     }
 
     @Test
-    public void testMetaData() {
+    void testMetaData() {
         MonitorConfig config = new MonitorConfig();
         Map<String, String> metaData = config.getMetaData();
         Assertions.assertEquals(0, metaData.size(), "Expect empty metadata but found: "+metaData);
     }
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/ProtocolConfigTest.java b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/ProtocolConfigTest.java
index 5677e67c44..f63c9625fc 100644
--- a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/ProtocolConfigTest.java
+++ b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/ProtocolConfigTest.java
@@ -37,7 +37,7 @@ import static org.hamcrest.Matchers.equalTo;
 import static org.hamcrest.Matchers.hasEntry;
 import static org.hamcrest.Matchers.is;
 
-public class ProtocolConfigTest {
+class ProtocolConfigTest {
 
     @BeforeEach
     public void setUp() {
@@ -55,7 +55,7 @@ public class ProtocolConfigTest {
     }
 
     @Test
-    public void testName() throws Exception {
+    void testName() throws Exception {
         ProtocolConfig protocol = new ProtocolConfig();
         String protocolName = "xprotocol";
         protocol.setName(protocolName);
@@ -67,7 +67,7 @@ public class ProtocolConfigTest {
     }
 
     @Test
-    public void testHost() throws Exception {
+    void testHost() throws Exception {
         ProtocolConfig protocol = new ProtocolConfig();
         protocol.setHost("host");
         Map<String, String> parameters = new HashMap<String, String>();
@@ -77,7 +77,7 @@ public class ProtocolConfigTest {
     }
 
     @Test
-    public void testPort() throws Exception {
+    void testPort() throws Exception {
         ProtocolConfig protocol = new ProtocolConfig();
         int port = NetUtils.getAvailablePort();
         protocol.setPort(port);
@@ -88,7 +88,7 @@ public class ProtocolConfigTest {
     }
 
     @Test
-    public void testPath() throws Exception {
+    void testPath() throws Exception {
         ProtocolConfig protocol = new ProtocolConfig();
         protocol.setContextpath("context-path");
         Map<String, String> parameters = new HashMap<String, String>();
@@ -102,42 +102,42 @@ public class ProtocolConfigTest {
     }
 
     @Test
-    public void testCorethreads() throws Exception {
+    void testCorethreads() throws Exception {
         ProtocolConfig protocol = new ProtocolConfig();
         protocol.setCorethreads(10);
         assertThat(protocol.getCorethreads(), is(10));
     }
 
     @Test
-    public void testThreads() throws Exception {
+    void testThreads() throws Exception {
         ProtocolConfig protocol = new ProtocolConfig();
         protocol.setThreads(10);
         assertThat(protocol.getThreads(), is(10));
     }
 
     @Test
-    public void testIothreads() throws Exception {
+    void testIothreads() throws Exception {
         ProtocolConfig protocol = new ProtocolConfig();
         protocol.setIothreads(10);
         assertThat(protocol.getIothreads(), is(10));
     }
 
     @Test
-    public void testQueues() throws Exception {
+    void testQueues() throws Exception {
         ProtocolConfig protocol = new ProtocolConfig();
         protocol.setQueues(10);
         assertThat(protocol.getQueues(), is(10));
     }
 
     @Test
-    public void testAccepts() throws Exception {
+    void testAccepts() throws Exception {
         ProtocolConfig protocol = new ProtocolConfig();
         protocol.setAccepts(10);
         assertThat(protocol.getAccepts(), is(10));
     }
 
     @Test
-    public void testCodec() throws Exception {
+    void testCodec() throws Exception {
         ProtocolConfig protocol = new ProtocolConfig();
         protocol.setName("dubbo");
         protocol.setCodec("mockcodec");
@@ -145,98 +145,98 @@ public class ProtocolConfigTest {
     }
 
     @Test
-    public void testAccesslog() throws Exception {
+    void testAccesslog() throws Exception {
         ProtocolConfig protocol = new ProtocolConfig();
         protocol.setAccesslog("access.log");
         assertThat(protocol.getAccesslog(), equalTo("access.log"));
     }
 
     @Test
-    public void testTelnet() throws Exception {
+    void testTelnet() throws Exception {
         ProtocolConfig protocol = new ProtocolConfig();
         protocol.setTelnet("mocktelnethandler");
         assertThat(protocol.getTelnet(), equalTo("mocktelnethandler"));
     }
 
     @Test
-    public void testRegister() throws Exception {
+    void testRegister() throws Exception {
         ProtocolConfig protocol = new ProtocolConfig();
         protocol.setRegister(true);
         assertThat(protocol.isRegister(), is(true));
     }
 
     @Test
-    public void testTransporter() throws Exception {
+    void testTransporter() throws Exception {
         ProtocolConfig protocol = new ProtocolConfig();
         protocol.setTransporter("mocktransporter");
         assertThat(protocol.getTransporter(), equalTo("mocktransporter"));
     }
 
     @Test
-    public void testExchanger() throws Exception {
+    void testExchanger() throws Exception {
         ProtocolConfig protocol = new ProtocolConfig();
         protocol.setExchanger("mockexchanger");
         assertThat(protocol.getExchanger(), equalTo("mockexchanger"));
     }
 
     @Test
-    public void testDispatcher() throws Exception {
+    void testDispatcher() throws Exception {
         ProtocolConfig protocol = new ProtocolConfig();
         protocol.setDispatcher("mockdispatcher");
         assertThat(protocol.getDispatcher(), equalTo("mockdispatcher"));
     }
 
     @Test
-    public void testNetworker() throws Exception {
+    void testNetworker() throws Exception {
         ProtocolConfig protocol = new ProtocolConfig();
         protocol.setNetworker("networker");
         assertThat(protocol.getNetworker(), equalTo("networker"));
     }
 
     @Test
-    public void testParameters() throws Exception {
+    void testParameters() throws Exception {
         ProtocolConfig protocol = new ProtocolConfig();
         protocol.setParameters(Collections.singletonMap("k1", "v1"));
         assertThat(protocol.getParameters(), hasEntry("k1", "v1"));
     }
 
     @Test
-    public void testDefault() throws Exception {
+    void testDefault() throws Exception {
         ProtocolConfig protocol = new ProtocolConfig();
         protocol.setDefault(true);
         assertThat(protocol.isDefault(), is(true));
     }
 
     @Test
-    public void testKeepAlive() throws Exception {
+    void testKeepAlive() throws Exception {
         ProtocolConfig protocol = new ProtocolConfig();
         protocol.setKeepAlive(true);
         assertThat(protocol.getKeepAlive(), is(true));
     }
 
     @Test
-    public void testOptimizer() throws Exception {
+    void testOptimizer() throws Exception {
         ProtocolConfig protocol = new ProtocolConfig();
         protocol.setOptimizer("optimizer");
         assertThat(protocol.getOptimizer(), equalTo("optimizer"));
     }
 
     @Test
-    public void testExtension() throws Exception {
+    void testExtension() throws Exception {
         ProtocolConfig protocol = new ProtocolConfig();
         protocol.setExtension("extension");
         assertThat(protocol.getExtension(), equalTo("extension"));
     }
 
     @Test
-    public void testMetaData() {
+    void testMetaData() {
         ProtocolConfig config = new ProtocolConfig();
         Map<String, String> metaData = config.getMetaData();
         Assertions.assertEquals(0, metaData.size(), "actual: "+metaData);
     }
 
     @Test
-    public void testOverrideEmptyConfig() {
+    void testOverrideEmptyConfig() {
         int port = NetUtils.getAvailablePort();
         //dubbo.protocol.name=rest
         //dubbo.protocol.port=port
@@ -259,7 +259,7 @@ public class ProtocolConfigTest {
     }
 
     @Test
-    public void testOverrideConfigByName() {
+    void testOverrideConfigByName() {
         int port = NetUtils.getAvailablePort();
         SysProps.setProperty("dubbo.protocols.rest.port", String.valueOf(port));
 
@@ -280,7 +280,7 @@ public class ProtocolConfigTest {
     }
 
     @Test
-    public void testOverrideConfigById() {
+    void testOverrideConfigById() {
         int port = NetUtils.getAvailablePort();
         SysProps.setProperty("dubbo.protocols.rest1.name", "rest");
         SysProps.setProperty("dubbo.protocols.rest1.port",  String.valueOf(port));
@@ -303,7 +303,7 @@ public class ProtocolConfigTest {
     }
 
     @Test
-    public void testCreateConfigFromPropsWithId() {
+    void testCreateConfigFromPropsWithId() {
         int port1 = NetUtils.getAvailablePort();
         int port2 = NetUtils.getAvailablePort();
         SysProps.setProperty("dubbo.protocols.rest1.name", "rest");
@@ -331,7 +331,7 @@ public class ProtocolConfigTest {
     }
 
     @Test
-    public void testCreateConfigFromPropsWithName() {
+    void testCreateConfigFromPropsWithName() {
         int port1 = NetUtils.getAvailablePort();
         int port2 = NetUtils.getAvailablePort();
         SysProps.setProperty("dubbo.protocols.rest.port", String.valueOf(port1));
@@ -358,7 +358,7 @@ public class ProtocolConfigTest {
     }
 
     @Test
-    public void testCreateDefaultConfigFromProps() {
+    void testCreateDefaultConfigFromProps() {
         int port = NetUtils.getAvailablePort();
         SysProps.setProperty("dubbo.protocol.name", "rest");
         SysProps.setProperty("dubbo.protocol.port", String.valueOf(port));
@@ -385,4 +385,4 @@ public class ProtocolConfigTest {
         }
     }
 
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/ProviderConfigTest.java b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/ProviderConfigTest.java
index 5f5f08a0b3..dd534342db 100644
--- a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/ProviderConfigTest.java
+++ b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/ProviderConfigTest.java
@@ -30,17 +30,17 @@ import static org.hamcrest.Matchers.hasKey;
 import static org.hamcrest.Matchers.is;
 import static org.hamcrest.Matchers.not;
 
-public class ProviderConfigTest {
+class ProviderConfigTest {
 
     @Test
-    public void testProtocol() throws Exception {
+    void testProtocol() throws Exception {
         ProviderConfig provider = new ProviderConfig();
         provider.setProtocol("protocol");
         assertThat(provider.getProtocol().getName(), equalTo("protocol"));
     }
 
     @Test
-    public void testDefault() throws Exception {
+    void testDefault() throws Exception {
         ProviderConfig provider = new ProviderConfig();
         provider.setDefault(true);
         Map<String, String> parameters = new HashMap<String, String>();
@@ -50,7 +50,7 @@ public class ProviderConfigTest {
     }
 
     @Test
-    public void testHost() throws Exception {
+    void testHost() throws Exception {
         ProviderConfig provider = new ProviderConfig();
         provider.setHost("demo-host");
         Map<String, String> parameters = new HashMap<String, String>();
@@ -60,7 +60,7 @@ public class ProviderConfigTest {
     }
 
     @Test
-    public void testPort() throws Exception {
+    void testPort() throws Exception {
         ProviderConfig provider = new ProviderConfig();
         provider.setPort(8080);
         Map<String, String> parameters = new HashMap<String, String>();
@@ -70,7 +70,7 @@ public class ProviderConfigTest {
     }
 
     @Test
-    public void testPath() throws Exception {
+    void testPath() throws Exception {
         ProviderConfig provider = new ProviderConfig();
         provider.setPath("/path");
         Map<String, String> parameters = new HashMap<String, String>();
@@ -81,7 +81,7 @@ public class ProviderConfigTest {
     }
 
     @Test
-    public void testContextPath() throws Exception {
+    void testContextPath() throws Exception {
         ProviderConfig provider = new ProviderConfig();
         provider.setContextpath("/context-path");
         Map<String, String> parameters = new HashMap<String, String>();
@@ -91,84 +91,84 @@ public class ProviderConfigTest {
     }
 
     @Test
-    public void testThreadpool() throws Exception {
+    void testThreadpool() throws Exception {
         ProviderConfig provider = new ProviderConfig();
         provider.setThreadpool("mockthreadpool");
         assertThat(provider.getThreadpool(), equalTo("mockthreadpool"));
     }
 
     @Test
-    public void testThreads() throws Exception {
+    void testThreads() throws Exception {
         ProviderConfig provider = new ProviderConfig();
         provider.setThreads(10);
         assertThat(provider.getThreads(), is(10));
     }
 
     @Test
-    public void testIothreads() throws Exception {
+    void testIothreads() throws Exception {
         ProviderConfig provider = new ProviderConfig();
         provider.setIothreads(10);
         assertThat(provider.getIothreads(), is(10));
     }
 
     @Test
-    public void testQueues() throws Exception {
+    void testQueues() throws Exception {
         ProviderConfig provider = new ProviderConfig();
         provider.setQueues(10);
         assertThat(provider.getQueues(), is(10));
     }
 
     @Test
-    public void testAccepts() throws Exception {
+    void testAccepts() throws Exception {
         ProviderConfig provider = new ProviderConfig();
         provider.setAccepts(10);
         assertThat(provider.getAccepts(), is(10));
     }
 
     @Test
-    public void testCharset() throws Exception {
+    void testCharset() throws Exception {
         ProviderConfig provider = new ProviderConfig();
         provider.setCharset("utf-8");
         assertThat(provider.getCharset(), equalTo("utf-8"));
     }
 
     @Test
-    public void testPayload() throws Exception {
+    void testPayload() throws Exception {
         ProviderConfig provider = new ProviderConfig();
         provider.setPayload(10);
         assertThat(provider.getPayload(), is(10));
     }
 
     @Test
-    public void testBuffer() throws Exception {
+    void testBuffer() throws Exception {
         ProviderConfig provider = new ProviderConfig();
         provider.setBuffer(10);
         assertThat(provider.getBuffer(), is(10));
     }
 
     @Test
-    public void testServer() throws Exception {
+    void testServer() throws Exception {
         ProviderConfig provider = new ProviderConfig();
         provider.setServer("demo-server");
         assertThat(provider.getServer(), equalTo("demo-server"));
     }
 
     @Test
-    public void testClient() throws Exception {
+    void testClient() throws Exception {
         ProviderConfig provider = new ProviderConfig();
         provider.setClient("client");
         assertThat(provider.getClient(), equalTo("client"));
     }
 
     @Test
-    public void testTelnet() throws Exception {
+    void testTelnet() throws Exception {
         ProviderConfig provider = new ProviderConfig();
         provider.setTelnet("mocktelnethandler");
         assertThat(provider.getTelnet(), equalTo("mocktelnethandler"));
     }
 
     @Test
-    public void testPrompt() throws Exception {
+    void testPrompt() throws Exception {
         ProviderConfig provider = new ProviderConfig();
         provider.setPrompt("#");
         Map<String, String> parameters = new HashMap<String, String>();
@@ -178,51 +178,51 @@ public class ProviderConfigTest {
     }
 
     @Test
-    public void testStatus() throws Exception {
+    void testStatus() throws Exception {
         ProviderConfig provider = new ProviderConfig();
         provider.setStatus("mockstatuschecker");
         assertThat(provider.getStatus(), equalTo("mockstatuschecker"));
     }
 
     @Test
-    public void testTransporter() throws Exception {
+    void testTransporter() throws Exception {
         ProviderConfig provider = new ProviderConfig();
         provider.setTransporter("mocktransporter");
         assertThat(provider.getTransporter(), equalTo("mocktransporter"));
     }
 
     @Test
-    public void testExchanger() throws Exception {
+    void testExchanger() throws Exception {
         ProviderConfig provider = new ProviderConfig();
         provider.setExchanger("mockexchanger");
         assertThat(provider.getExchanger(), equalTo("mockexchanger"));
     }
 
     @Test
-    public void testDispatcher() throws Exception {
+    void testDispatcher() throws Exception {
         ProviderConfig provider = new ProviderConfig();
         provider.setDispatcher("mockdispatcher");
         assertThat(provider.getDispatcher(), equalTo("mockdispatcher"));
     }
 
     @Test
-    public void testNetworker() throws Exception {
+    void testNetworker() throws Exception {
         ProviderConfig provider = new ProviderConfig();
         provider.setNetworker("networker");
         assertThat(provider.getNetworker(), equalTo("networker"));
     }
 
     @Test
-    public void testWait() throws Exception {
+    void testWait() throws Exception {
         ProviderConfig provider = new ProviderConfig();
         provider.setWait(10);
         assertThat(provider.getWait(), equalTo(10));
     }
 
     @Test
-    public void testMetaData() {
+    void testMetaData() {
         ProviderConfig config = new ProviderConfig();
         Map<String, String> metaData = config.getMetaData();
         Assertions.assertEquals(0, metaData.size(), "Expect empty metadata but found: "+metaData);
     }
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/ReferenceConfigTest.java b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/ReferenceConfigTest.java
index 7d34883629..9000cfe2cf 100644
--- a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/ReferenceConfigTest.java
+++ b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/ReferenceConfigTest.java
@@ -16,13 +16,6 @@
  */
 package org.apache.dubbo.config;
 
-import demo.MultiClassLoaderService;
-import demo.MultiClassLoaderServiceImpl;
-import demo.MultiClassLoaderServiceRequest;
-import demo.MultiClassLoaderServiceResult;
-import javassist.CannotCompileException;
-import javassist.CtClass;
-import javassist.NotFoundException;
 import org.apache.dubbo.common.URL;
 import org.apache.dubbo.common.Version;
 import org.apache.dubbo.common.compiler.support.CtClassBuilder;
@@ -52,6 +45,14 @@ import org.apache.dubbo.rpc.model.ServiceMetadata;
 import org.apache.dubbo.rpc.protocol.injvm.InjvmInvoker;
 import org.apache.dubbo.rpc.protocol.injvm.InjvmProtocol;
 import org.apache.dubbo.rpc.service.GenericService;
+
+import demo.MultiClassLoaderService;
+import demo.MultiClassLoaderServiceImpl;
+import demo.MultiClassLoaderServiceRequest;
+import demo.MultiClassLoaderServiceResult;
+import javassist.CannotCompileException;
+import javassist.CtClass;
+import javassist.NotFoundException;
 import org.junit.jupiter.api.AfterEach;
 import org.junit.jupiter.api.Assertions;
 import org.junit.jupiter.api.BeforeAll;
@@ -121,7 +122,7 @@ import static org.apache.dubbo.rpc.Constants.SCOPE_LOCAL;
 import static org.apache.dubbo.rpc.Constants.SCOPE_REMOTE;
 import static org.apache.dubbo.rpc.cluster.Constants.PEER_KEY;
 
-public class ReferenceConfigTest {
+class ReferenceConfigTest {
     private static String zkUrl1;
     private static String zkUrl2;
     private static String registryUrl1;
@@ -152,7 +153,7 @@ public class ReferenceConfigTest {
      * Test whether the configuration required for the aggregation service reference meets expectations
      */
     @Test
-    public void testAppendConfig() {
+    void testAppendConfig() {
 
         ApplicationConfig applicationConfig = new ApplicationConfig();
         applicationConfig.setName("application1");
@@ -393,7 +394,7 @@ public class ReferenceConfigTest {
     }
 
     @Test
-    public void testShouldJvmRefer() {
+    void testShouldJvmRefer() {
 
         Map<String, String> parameters = new HashMap<>();
 
@@ -455,7 +456,7 @@ public class ReferenceConfigTest {
     }
 
     @Test
-    public void testCreateInvokerForLocalRefer() {
+    void testCreateInvokerForLocalRefer() {
 
         ReferenceConfig<DemoService> referenceConfig = new ReferenceConfig<>();
         referenceConfig.setScope(LOCAL_KEY);
@@ -493,7 +494,7 @@ public class ReferenceConfigTest {
      * Verify the configuration of the registry protocol for remote reference
      */
     @Test
-    public void testCreateInvokerForRemoteRefer() {
+    void testCreateInvokerForRemoteRefer() {
 
         ReferenceConfig<DemoService> referenceConfig = new ReferenceConfig<>();
         referenceConfig.setGeneric(Boolean.FALSE.toString());
@@ -538,7 +539,7 @@ public class ReferenceConfigTest {
      * Verify that the remote url is directly configured for remote reference
      */
     @Test
-    public void testCreateInvokerWithRemoteUrlForRemoteRefer() {
+    void testCreateInvokerWithRemoteUrlForRemoteRefer() {
 
         ReferenceConfig<DemoService> referenceConfig = new ReferenceConfig<>();
         referenceConfig.setGeneric(Boolean.FALSE.toString());
@@ -579,7 +580,7 @@ public class ReferenceConfigTest {
      * Verify that the registry url is directly configured for remote reference
      */
     @Test
-    public void testCreateInvokerWithRegistryUrlForRemoteRefer() {
+    void testCreateInvokerWithRegistryUrlForRemoteRefer() {
 
         ReferenceConfig<DemoService> referenceConfig = new ReferenceConfig<>();
         referenceConfig.setGeneric(Boolean.FALSE.toString());
@@ -619,7 +620,7 @@ public class ReferenceConfigTest {
      * Verify the service reference of multiple registries
      */
     @Test
-    public void testMultipleRegistryForRemoteRefer() {
+    void testMultipleRegistryForRemoteRefer() {
         ReferenceConfig<DemoService> referenceConfig = new ReferenceConfig<>();
         referenceConfig.setGeneric(Boolean.FALSE.toString());
         referenceConfig.setProtocol("dubbo");
@@ -713,7 +714,7 @@ public class ReferenceConfigTest {
      * unit test for dubbo-1765
      */
     @Test
-    public void test1ReferenceRetry() {
+    void test1ReferenceRetry() {
         ApplicationConfig application = new ApplicationConfig();
         application.setName("test-reference-retry");
         application.setEnableFileCache(false);
@@ -760,7 +761,7 @@ public class ReferenceConfigTest {
     }
 
     @Test
-    public void test2ReferenceRetry() {
+    void test2ReferenceRetry() {
         ApplicationConfig application = new ApplicationConfig();
         application.setName("test-reference-retry2");
         application.setEnableFileCache(false);
@@ -811,7 +812,7 @@ public class ReferenceConfigTest {
     }
 
     @Test
-    public void testMetaData() {
+    void testMetaData() {
         ReferenceConfig config = new ReferenceConfig();
         Map<String, String> metaData = config.getMetaData();
         Assertions.assertEquals(0, metaData.size(), "Expect empty metadata but found: " + metaData);
@@ -831,7 +832,7 @@ public class ReferenceConfigTest {
     }
 
     @Test
-    public void testGetPrefixes() {
+    void testGetPrefixes() {
 
         ReferenceConfig referenceConfig = new ReferenceConfig();
         referenceConfig.setInterface(DemoService.class);
@@ -849,7 +850,7 @@ public class ReferenceConfigTest {
     }
 
     @Test
-    public void testGenericAndInterfaceConflicts() {
+    void testGenericAndInterfaceConflicts() {
 
         ReferenceConfig referenceConfig = new ReferenceConfig();
         referenceConfig.setInterface(DemoService.class);
@@ -865,7 +866,7 @@ public class ReferenceConfigTest {
 
 
     @Test
-    public void testLargeReferences() throws InterruptedException {
+    void testLargeReferences() throws InterruptedException {
         int amount = 10000;
         ModuleConfigManager configManager = DubboBootstrap.getInstance().getApplicationModel().getDefaultModule().getConfigManager();
 
@@ -945,7 +946,7 @@ public class ReferenceConfigTest {
     }
 
     @Test
-    public void testConstructWithReferenceAnnotation() throws NoSuchFieldException {
+    void testConstructWithReferenceAnnotation() throws NoSuchFieldException {
         Reference reference = getClass().getDeclaredField("innerTest").getAnnotation(Reference.class);
         ReferenceConfig referenceConfig = new ReferenceConfig(reference);
         Assertions.assertEquals(1, referenceConfig.getMethods().size());
@@ -963,7 +964,7 @@ public class ReferenceConfigTest {
     }
 
     @Test
-    public void testDifferentClassLoader() throws Exception {
+    void testDifferentClassLoader() throws Exception {
         ApplicationConfig applicationConfig = new ApplicationConfig("TestApp");
         ApplicationModel applicationModel = new ApplicationModel(FrameworkModel.defaultModel());
         applicationModel.getApplicationConfigManager().setApplication(applicationConfig);
diff --git a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/RegistryConfigTest.java b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/RegistryConfigTest.java
index d8fd191a32..572665eac4 100644
--- a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/RegistryConfigTest.java
+++ b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/RegistryConfigTest.java
@@ -43,7 +43,7 @@ import static org.hamcrest.Matchers.hasEntry;
 import static org.hamcrest.Matchers.hasKey;
 import static org.hamcrest.Matchers.not;
 
-public class RegistryConfigTest {
+class RegistryConfigTest {
 
     @BeforeEach
     public void beforeEach() {
@@ -56,14 +56,14 @@ public class RegistryConfigTest {
     }
 
     @Test
-    public void testProtocol() throws Exception {
+    void testProtocol() throws Exception {
         RegistryConfig registry = new RegistryConfig();
         registry.setProtocol("protocol");
         assertThat(registry.getProtocol(), equalTo(registry.getProtocol()));
     }
 
     @Test
-    public void testAddress() throws Exception {
+    void testAddress() throws Exception {
         RegistryConfig registry = new RegistryConfig();
         registry.setAddress("zookeeper://mrh:123@localhost:9103/registry?backup=localhost:9104&k1=v1");
         assertThat(registry.getAddress(), equalTo("zookeeper://mrh:123@localhost:9103/registry?backup=localhost:9104&k1=v1"));
@@ -77,21 +77,21 @@ public class RegistryConfigTest {
     }
 
     @Test
-    public void testUsername() throws Exception {
+    void testUsername() throws Exception {
         RegistryConfig registry = new RegistryConfig();
         registry.setUsername("username");
         assertThat(registry.getUsername(), equalTo("username"));
     }
 
     @Test
-    public void testPassword() throws Exception {
+    void testPassword() throws Exception {
         RegistryConfig registry = new RegistryConfig();
         registry.setPassword("password");
         assertThat(registry.getPassword(), equalTo("password"));
     }
 
     @Test
-    public void testWait() throws Exception {
+    void testWait() throws Exception {
         try {
             RegistryConfig registry = new RegistryConfig();
             registry.setWait(10);
@@ -103,91 +103,91 @@ public class RegistryConfigTest {
     }
 
     @Test
-    public void testCheck() throws Exception {
+    void testCheck() throws Exception {
         RegistryConfig registry = new RegistryConfig();
         registry.setCheck(true);
         assertThat(registry.isCheck(), is(true));
     }
 
     @Test
-    public void testFile() throws Exception {
+    void testFile() throws Exception {
         RegistryConfig registry = new RegistryConfig();
         registry.setFile("file");
         assertThat(registry.getFile(), equalTo("file"));
     }
 
     @Test
-    public void testTransporter() throws Exception {
+    void testTransporter() throws Exception {
         RegistryConfig registry = new RegistryConfig();
         registry.setTransporter("transporter");
         assertThat(registry.getTransporter(), equalTo("transporter"));
     }
 
     @Test
-    public void testClient() throws Exception {
+    void testClient() throws Exception {
         RegistryConfig registry = new RegistryConfig();
         registry.setClient("client");
         assertThat(registry.getClient(), equalTo("client"));
     }
 
     @Test
-    public void testTimeout() throws Exception {
+    void testTimeout() throws Exception {
         RegistryConfig registry = new RegistryConfig();
         registry.setTimeout(10);
         assertThat(registry.getTimeout(), is(10));
     }
 
     @Test
-    public void testSession() throws Exception {
+    void testSession() throws Exception {
         RegistryConfig registry = new RegistryConfig();
         registry.setSession(10);
         assertThat(registry.getSession(), is(10));
     }
 
     @Test
-    public void testDynamic() throws Exception {
+    void testDynamic() throws Exception {
         RegistryConfig registry = new RegistryConfig();
         registry.setDynamic(true);
         assertThat(registry.isDynamic(), is(true));
     }
 
     @Test
-    public void testRegister() throws Exception {
+    void testRegister() throws Exception {
         RegistryConfig registry = new RegistryConfig();
         registry.setRegister(true);
         assertThat(registry.isRegister(), is(true));
     }
 
     @Test
-    public void testSubscribe() throws Exception {
+    void testSubscribe() throws Exception {
         RegistryConfig registry = new RegistryConfig();
         registry.setSubscribe(true);
         assertThat(registry.isSubscribe(), is(true));
     }
 
     @Test
-    public void testCluster() throws Exception {
+    void testCluster() throws Exception {
         RegistryConfig registry = new RegistryConfig();
         registry.setCluster("cluster");
         assertThat(registry.getCluster(), equalTo("cluster"));
     }
 
     @Test
-    public void testGroup() throws Exception {
+    void testGroup() throws Exception {
         RegistryConfig registry = new RegistryConfig();
         registry.setGroup("group");
         assertThat(registry.getGroup(), equalTo("group"));
     }
 
     @Test
-    public void testVersion() throws Exception {
+    void testVersion() throws Exception {
         RegistryConfig registry = new RegistryConfig();
         registry.setVersion("1.0.0");
         assertThat(registry.getVersion(), equalTo("1.0.0"));
     }
 
     @Test
-    public void testParameters() throws Exception {
+    void testParameters() throws Exception {
         RegistryConfig registry = new RegistryConfig();
         registry.setParameters(Collections.singletonMap("k1", "v1"));
         assertThat(registry.getParameters(), hasEntry("k1", "v1"));
@@ -197,14 +197,14 @@ public class RegistryConfigTest {
     }
 
     @Test
-    public void testDefault() throws Exception {
+    void testDefault() throws Exception {
         RegistryConfig registry = new RegistryConfig();
         registry.setDefault(true);
         assertThat(registry.isDefault(), is(true));
     }
 
     @Test
-    public void testEquals() throws Exception {
+    void testEquals() throws Exception {
         RegistryConfig registry1 = new RegistryConfig();
         RegistryConfig registry2 = new RegistryConfig();
         registry1.setAddress(ZookeeperRegistryCenterConfig.getConnectionAddress2());
@@ -213,14 +213,14 @@ public class RegistryConfigTest {
     }
 
     @Test
-    public void testMetaData() {
+    void testMetaData() {
         RegistryConfig config = new RegistryConfig();
         Map<String, String> metaData = config.getMetaData();
         Assertions.assertEquals(0, metaData.size(), "Expect empty metadata but found: " + metaData);
     }
 
     @Test
-    public void testOverrideConfigBySystemProps() {
+    void testOverrideConfigBySystemProps() {
 
         SysProps.setProperty("dubbo.registry.address", "zookeeper://${zookeeper.address}:${zookeeper.port}");
         SysProps.setProperty("dubbo.registry.useAsConfigCenter", "false");
@@ -251,7 +251,7 @@ public class RegistryConfigTest {
     }
 
     @Test
-    public void testPreferredWithFalseValue() {
+    void testPreferredWithFalseValue() {
         RegistryConfig registry = new RegistryConfig();
         registry.setPreferred(false);
         Map<String, String> map = new HashMap<>();
@@ -262,4 +262,4 @@ public class RegistryConfigTest {
         Assertions.assertFalse(url.getParameter(PREFERRED_KEY, false));
     }
 
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/ServiceConfigTest.java b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/ServiceConfigTest.java
index ecec357d27..bb29c41299 100644
--- a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/ServiceConfigTest.java
+++ b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/ServiceConfigTest.java
@@ -74,7 +74,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
 import static org.mockito.Mockito.times;
 import static org.mockito.Mockito.withSettings;
 
-public class ServiceConfigTest {
+class ServiceConfigTest {
     private Protocol protocolDelegate = Mockito.mock(Protocol.class);
     private Registry registryDelegate = Mockito.mock(Registry.class);
     private Exporter exporter = Mockito.mock(Exporter.class);
@@ -156,7 +156,7 @@ public class ServiceConfigTest {
     }
 
     @Test
-    public void testExport() throws Exception {
+    void testExport() throws Exception {
         service.export();
 
         assertThat(service.getExportedUrls(), hasSize(1));
@@ -179,7 +179,7 @@ public class ServiceConfigTest {
     }
 
     @Test
-    public void testVersionAndGroupConfigFromProvider() {
+    void testVersionAndGroupConfigFromProvider() {
         //Service no configuration version , the Provider configured.
         service.getProvider().setVersion("1.0.0");
         service.getProvider().setGroup("groupA");
@@ -196,7 +196,7 @@ public class ServiceConfigTest {
     }
 
     @Test
-    public void testProxy() throws Exception {
+    void testProxy() throws Exception {
         service2.export();
 
         assertThat(service2.getExportedUrls(), hasSize(1));
@@ -206,7 +206,7 @@ public class ServiceConfigTest {
 
 
     @Test
-    public void testDelayExport() throws Exception {
+    void testDelayExport() throws Exception {
         CountDownLatch latch = new CountDownLatch(1);
         delayService.addServiceListener(new ServiceListener() {
             @Override
@@ -227,7 +227,7 @@ public class ServiceConfigTest {
     }
 
     @Test
-    public void testUnexport() throws Exception {
+    void testUnexport() throws Exception {
         System.setProperty(SHUTDOWN_WAIT_KEY, "0");
         try {
             service.export();
@@ -240,7 +240,7 @@ public class ServiceConfigTest {
     }
 
     @Test
-    public void testInterfaceClass() throws Exception {
+    void testInterfaceClass() throws Exception {
         ServiceConfig<Greeting> service = new ServiceConfig<>();
         service.setInterface(Greeting.class.getName());
         service.setRef(Mockito.mock(Greeting.class));
@@ -251,7 +251,7 @@ public class ServiceConfigTest {
     }
 
     @Test
-    public void testInterface1() throws Exception {
+    void testInterface1() throws Exception {
         Assertions.assertThrows(IllegalStateException.class, () -> {
             ServiceConfig<DemoService> service = new ServiceConfig<>();
             service.setInterface(DemoServiceImpl.class);
@@ -259,14 +259,14 @@ public class ServiceConfigTest {
     }
 
     @Test
-    public void testInterface2() throws Exception {
+    void testInterface2() throws Exception {
         ServiceConfig<DemoService> service = new ServiceConfig<>();
         service.setInterface(DemoService.class);
         assertThat(service.getInterface(), equalTo(DemoService.class.getName()));
     }
 
     @Test
-    public void testProvider() throws Exception {
+    void testProvider() throws Exception {
         ServiceConfig service = new ServiceConfig();
         ProviderConfig provider = new ProviderConfig();
         service.setProvider(provider);
@@ -274,7 +274,7 @@ public class ServiceConfigTest {
     }
 
     @Test
-    public void testGeneric1() throws Exception {
+    void testGeneric1() throws Exception {
         ServiceConfig service = new ServiceConfig();
         service.setGeneric(GENERIC_SERIALIZATION_DEFAULT);
         assertThat(service.getGeneric(), equalTo(GENERIC_SERIALIZATION_DEFAULT));
@@ -285,7 +285,7 @@ public class ServiceConfigTest {
     }
 
     @Test
-    public void testGeneric2() throws Exception {
+    void testGeneric2() throws Exception {
         Assertions.assertThrows(IllegalArgumentException.class, () -> {
             ServiceConfig service = new ServiceConfig();
             service.setGeneric("illegal");
@@ -293,14 +293,14 @@ public class ServiceConfigTest {
     }
 
     @Test
-    public void testApplicationInUrl() {
+    void testApplicationInUrl() {
         service.export();
         assertNotNull(service.toUrl().getApplication());
         Assertions.assertEquals("app", service.toUrl().getApplication());
     }
 
     @Test
-    public void testMetaData() {
+    void testMetaData() {
         // test new instance
         ServiceConfig config = new ServiceConfig();
         Map<String, String> metaData = config.getMetaData();
@@ -321,7 +321,7 @@ public class ServiceConfigTest {
 
 
     @Test
-    public void testExportWithoutRegistryConfig() {
+    void testExportWithoutRegistryConfig() {
         serviceWithoutRegistryConfig.export();
 
         assertThat(serviceWithoutRegistryConfig.getExportedUrls(), hasSize(1));
@@ -344,7 +344,7 @@ public class ServiceConfigTest {
     }
 
     @Test
-    public void testServiceListener() {
+    void testServiceListener() {
         ExtensionLoader<ServiceListener> extensionLoader = ExtensionLoader.getExtensionLoader(ServiceListener.class);
         MockServiceListener mockServiceListener = (MockServiceListener) extensionLoader.getExtension("mock");
         assertNotNull(mockServiceListener);
@@ -360,7 +360,7 @@ public class ServiceConfigTest {
 
 
     @Test
-    public void testMethodConfigWithInvalidArgumentConfig() {
+    void testMethodConfigWithInvalidArgumentConfig() {
         Assertions.assertThrows(IllegalArgumentException.class, () -> {
             ServiceConfig<DemoServiceImpl> service = new ServiceConfig<>();
 
@@ -383,7 +383,7 @@ public class ServiceConfigTest {
     }
 
     @Test
-    public void testMethodConfigWithConfiguredArgumentTypeAndIndex() {
+    void testMethodConfigWithConfiguredArgumentTypeAndIndex() {
         ServiceConfig<DemoServiceImpl> service = new ServiceConfig<>();
 
         service.setInterface(DemoService.class);
@@ -409,7 +409,7 @@ public class ServiceConfigTest {
     }
 
     @Test
-    public void testMethodConfigWithConfiguredArgumentIndex() {
+    void testMethodConfigWithConfiguredArgumentIndex() {
         ServiceConfig<DemoServiceImpl> service = new ServiceConfig<>();
 
         service.setInterface(DemoService.class);
@@ -434,7 +434,7 @@ public class ServiceConfigTest {
     }
 
     @Test
-    public void testMethodConfigWithConfiguredArgumentType() {
+    void testMethodConfigWithConfiguredArgumentType() {
         ServiceConfig<DemoServiceImpl> service = new ServiceConfig<>();
 
         service.setInterface(DemoService.class);
@@ -459,7 +459,7 @@ public class ServiceConfigTest {
     }
 
     @Test
-    public void testMethodConfigWithUnknownArgumentType() {
+    void testMethodConfigWithUnknownArgumentType() {
         Assertions.assertThrows(IllegalArgumentException.class, () -> {
             ServiceConfig<DemoServiceImpl> service = new ServiceConfig<>();
 
@@ -483,7 +483,7 @@ public class ServiceConfigTest {
     }
 
     @Test
-    public void testMethodConfigWithUnmatchedArgument() {
+    void testMethodConfigWithUnmatchedArgument() {
         Assertions.assertThrows(IllegalArgumentException.class, () -> {
             ServiceConfig<DemoServiceImpl> service = new ServiceConfig<>();
 
@@ -507,7 +507,7 @@ public class ServiceConfigTest {
     }
 
     @Test
-    public void testMethodConfigWithInvalidArgumentIndex() {
+    void testMethodConfigWithInvalidArgumentIndex() {
         Assertions.assertThrows(IllegalArgumentException.class, () -> {
             ServiceConfig<DemoServiceImpl> service = new ServiceConfig<>();
 
@@ -529,4 +529,4 @@ public class ServiceConfigTest {
             service.export();
         });
     }
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/DubboBootstrapTest.java b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/DubboBootstrapTest.java
index 7b79bf0ade..f65b14d0ba 100644
--- a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/DubboBootstrapTest.java
+++ b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/DubboBootstrapTest.java
@@ -75,7 +75,7 @@ import static org.hamcrest.Matchers.is;
  *
  * @since 2.7.5
  */
-public class DubboBootstrapTest {
+class DubboBootstrapTest {
 
     private static File dubboProperties;
     private static String zkServerAddress;
@@ -101,7 +101,7 @@ public class DubboBootstrapTest {
     }
 
     @Test
-    public void checkApplication() {
+    void checkApplication() {
         SysProps.setProperty("dubbo.application.name", "demo");
         ApplicationConfig applicationConfig = new ApplicationConfig();
         applicationConfig.refresh();
@@ -109,7 +109,7 @@ public class DubboBootstrapTest {
     }
 
     @Test
-    public void compatibleApplicationShutdown() {
+    void compatibleApplicationShutdown() {
         try {
             System.clearProperty(SHUTDOWN_WAIT_KEY);
             System.clearProperty(SHUTDOWN_WAIT_SECONDS_KEY);
@@ -132,7 +132,7 @@ public class DubboBootstrapTest {
     }
 
     @Test
-    public void testLoadRegistries() {
+    void testLoadRegistries() {
         SysProps.setProperty("dubbo.registry.address", "addr1");
 
         ServiceConfig serviceConfig = new ServiceConfig();
@@ -161,7 +161,7 @@ public class DubboBootstrapTest {
     }
 
     @Test
-    public void testLoadUserMonitor_address_only() {
+    void testLoadUserMonitor_address_only() {
         // -Ddubbo.monitor.address=monitor-addr:12080
         SysProps.setProperty(DUBBO_MONITOR_ADDRESS, "monitor-addr:12080");
         URL url = ConfigValidationUtils.loadMonitor(getTestInterfaceConfig(new MonitorConfig()), new ServiceConfigURL("dubbo", "addr1", 9090));
@@ -173,7 +173,7 @@ public class DubboBootstrapTest {
     }
 
     @Test
-    public void testLoadUserMonitor_registry() {
+    void testLoadUserMonitor_registry() {
         // dubbo.monitor.protocol=registry
         MonitorConfig monitorConfig = new MonitorConfig();
         monitorConfig.setProtocol("registry");
@@ -184,7 +184,7 @@ public class DubboBootstrapTest {
     }
 
     @Test
-    public void testLoadUserMonitor_service_discovery() {
+    void testLoadUserMonitor_service_discovery() {
         // dubbo.monitor.protocol=service-discovery-registry
         MonitorConfig monitorConfig = new MonitorConfig();
         monitorConfig.setProtocol("service-discovery-registry");
@@ -195,13 +195,13 @@ public class DubboBootstrapTest {
     }
 
     @Test
-    public void testLoadUserMonitor_no_monitor() {
+    void testLoadUserMonitor_no_monitor() {
         URL url = ConfigValidationUtils.loadMonitor(getTestInterfaceConfig(null), URL.valueOf(ZookeeperRegistryCenterConfig.getConnectionAddress()));
         Assertions.assertNull(url);
     }
 
     @Test
-    public void testLoadUserMonitor_user() {
+    void testLoadUserMonitor_user() {
         // dubbo.monitor.protocol=user
         MonitorConfig monitorConfig = new MonitorConfig();
         monitorConfig.setProtocol("user");
@@ -211,7 +211,7 @@ public class DubboBootstrapTest {
     }
 
     @Test
-    public void testLoadUserMonitor_user_address() {
+    void testLoadUserMonitor_user_address() {
         // dubbo.monitor.address=user://1.2.3.4:5678?k=v
         MonitorConfig monitorConfig = new MonitorConfig();
         monitorConfig.setAddress("user://1.2.3.4:5678?param1=value1");
@@ -231,7 +231,7 @@ public class DubboBootstrapTest {
     }
 
     @Test
-    public void testBootstrapStart() {
+    void testBootstrapStart() {
         ServiceConfig<DemoService> service = new ServiceConfig<>();
         service.setInterface(DemoService.class);
         service.setRef(new DemoServiceImpl());
@@ -258,7 +258,7 @@ public class DubboBootstrapTest {
     }
 
     @Test
-    public void testLocalMetadataServiceExporter() {
+    void testLocalMetadataServiceExporter() {
         ServiceConfig<DemoService> service = new ServiceConfig<>();
         service.setInterface(DemoService.class);
         service.setRef(new DemoServiceImpl());
@@ -278,7 +278,7 @@ public class DubboBootstrapTest {
     }
 
     @Test
-    public void testRemoteMetadataServiceExporter() {
+    void testRemoteMetadataServiceExporter() {
         ServiceConfig<DemoService> service = new ServiceConfig<>();
         service.setInterface(DemoService.class);
         service.setRef(new DemoServiceImpl());
@@ -369,4 +369,4 @@ public class DubboBootstrapTest {
 
     }
 
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/MultiInstanceTest.java b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/MultiInstanceTest.java
index ef1fa5d1ce..d14c5bc837 100644
--- a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/MultiInstanceTest.java
+++ b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/MultiInstanceTest.java
@@ -61,7 +61,7 @@ import java.util.concurrent.Future;
 
 import static org.apache.dubbo.remoting.Constants.EVENT_LOOP_BOSS_POOL_NAME;
 
-public class MultiInstanceTest {
+class MultiInstanceTest {
 
     private static final Logger logger = LoggerFactory.getLogger(MultiInstanceTest.class);
 
@@ -126,7 +126,7 @@ public class MultiInstanceTest {
     }
 
     @Test
-    public void testIsolatedApplications() {
+    void testIsolatedApplications() {
 
         DubboBootstrap dubboBootstrap1 = DubboBootstrap.newInstance(new FrameworkModel());
         DubboBootstrap dubboBootstrap2 = DubboBootstrap.newInstance(new FrameworkModel());
@@ -153,7 +153,7 @@ public class MultiInstanceTest {
     }
 
     @Test
-    public void testDefaultProviderApplication() {
+    void testDefaultProviderApplication() {
         DubboBootstrap dubboBootstrap = DubboBootstrap.getInstance();
         try {
             configProviderApp(dubboBootstrap).start();
@@ -164,7 +164,7 @@ public class MultiInstanceTest {
     }
 
     @Test
-    public void testDefaultConsumerApplication() {
+    void testDefaultConsumerApplication() {
         SysProps.setProperty("dubbo.consumer.check", "false");
         DubboBootstrap dubboBootstrap = DubboBootstrap.getInstance();
         try {
@@ -180,7 +180,7 @@ public class MultiInstanceTest {
     }
 
     @Test
-    public void testDefaultMixedApplication() {
+    void testDefaultMixedApplication() {
         DubboBootstrap dubboBootstrap = DubboBootstrap.getInstance();
         try {
             dubboBootstrap.application("mixed-app");
@@ -196,7 +196,7 @@ public class MultiInstanceTest {
     }
 
     @Test
-    public void testSharedApplications() {
+    void testSharedApplications() {
 
         FrameworkModel frameworkModel = new FrameworkModel();
         DubboBootstrap dubboBootstrap1 = DubboBootstrap.newInstance(frameworkModel);
@@ -218,7 +218,7 @@ public class MultiInstanceTest {
     }
 
     @Test
-    public void testMultiModuleApplication() throws InterruptedException {
+    void testMultiModuleApplication() throws InterruptedException {
 
         //SysProps.setProperty(METADATA_PUBLISH_DELAY_KEY, "100");
         String version1 = "1.0";
@@ -307,7 +307,7 @@ public class MultiInstanceTest {
     }
 
     @Test
-    public void testMultiProviderApplicationsStopOneByOne() {
+    void testMultiProviderApplicationsStopOneByOne() {
 
         String version1 = "1.0";
         String version2 = "2.0";
@@ -424,7 +424,7 @@ public class MultiInstanceTest {
     }
 
     @Test
-    public void testMultiModuleDeployAndReload() throws Exception {
+    void testMultiModuleDeployAndReload() throws Exception {
 
         String version1 = "1.0";
         String version2 = "2.0";
@@ -567,7 +567,7 @@ public class MultiInstanceTest {
     }
 
     @Test
-    public void testBothStartByModuleAndByApplication() throws Exception {
+    void testBothStartByModuleAndByApplication() throws Exception {
         String version1 = "1.0";
         String version2 = "2.0";
         String version3 = "3.0";
@@ -647,7 +647,7 @@ public class MultiInstanceTest {
 
 
     @Test
-    public void testBothStartModuleAndApplicationNoWait() throws Exception {
+    void testBothStartModuleAndApplicationNoWait() throws Exception {
         String version1 = "1.0";
         String version2 = "2.0";
         String version3 = "3.0";
@@ -704,7 +704,7 @@ public class MultiInstanceTest {
     }
 
     @Test
-    public void testOldApiDeploy() throws Exception {
+    void testOldApiDeploy() throws Exception {
 
         try {
             // provider app
@@ -780,7 +780,7 @@ public class MultiInstanceTest {
     }
 
     @Test
-    public void testAsyncExportAndReferServices() throws ExecutionException, InterruptedException {
+    void testAsyncExportAndReferServices() throws ExecutionException, InterruptedException {
         DubboBootstrap providerBootstrap = DubboBootstrap.newInstance();
         DubboBootstrap consumerBootstrap = DubboBootstrap.newInstance();
         try {
@@ -925,4 +925,4 @@ public class MultiInstanceTest {
             deployEventMap.put(DeployState.FAILED, System.currentTimeMillis());
         }
     }
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/builders/AbstractBuilderTest.java b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/builders/AbstractBuilderTest.java
index e2e7705791..428a93306f 100644
--- a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/builders/AbstractBuilderTest.java
+++ b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/builders/AbstractBuilderTest.java
@@ -114,4 +114,4 @@ class AbstractBuilderTest {
 
     private static class Config extends AbstractConfig {
     }
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/builders/AbstractInterfaceBuilderTest.java b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/builders/AbstractInterfaceBuilderTest.java
index 157b73d318..e865ea46bb 100644
--- a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/builders/AbstractInterfaceBuilderTest.java
+++ b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/builders/AbstractInterfaceBuilderTest.java
@@ -315,4 +315,4 @@ class AbstractInterfaceBuilderTest {
 
     private static class InterfaceConfig extends AbstractInterfaceConfig {
     }
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/builders/AbstractMethodBuilderTest.java b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/builders/AbstractMethodBuilderTest.java
index faded90f11..fb2beb61cb 100644
--- a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/builders/AbstractMethodBuilderTest.java
+++ b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/builders/AbstractMethodBuilderTest.java
@@ -192,4 +192,4 @@ class AbstractMethodBuilderTest {
 
     private static class MethodConfig extends AbstractMethodConfig {
     }
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/builders/AbstractReferenceBuilderTest.java b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/builders/AbstractReferenceBuilderTest.java
index 349470c458..c066a16a31 100644
--- a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/builders/AbstractReferenceBuilderTest.java
+++ b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/builders/AbstractReferenceBuilderTest.java
@@ -147,4 +147,4 @@ class AbstractReferenceBuilderTest {
 
     private static class ReferenceConfig extends AbstractReferenceConfig {
     }
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/builders/AbstractServiceBuilderTest.java b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/builders/AbstractServiceBuilderTest.java
index 78631c53d8..ef8a9daa48 100644
--- a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/builders/AbstractServiceBuilderTest.java
+++ b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/builders/AbstractServiceBuilderTest.java
@@ -241,4 +241,4 @@ class AbstractServiceBuilderTest {
     private static class ServiceConfig extends AbstractServiceConfig {
 
     }
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/builders/ApplicationBuilderTest.java b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/builders/ApplicationBuilderTest.java
index 2b660814a8..f3b5517bd5 100644
--- a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/builders/ApplicationBuilderTest.java
+++ b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/builders/ApplicationBuilderTest.java
@@ -284,4 +284,4 @@ class ApplicationBuilderTest {
 
         Assertions.assertNotSame(config, config2);
     }
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/builders/ArgumentBuilderTest.java b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/builders/ArgumentBuilderTest.java
index 3fe6d31c5e..1b6638dd76 100644
--- a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/builders/ArgumentBuilderTest.java
+++ b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/builders/ArgumentBuilderTest.java
@@ -60,4 +60,4 @@ class ArgumentBuilderTest {
 
         Assertions.assertNotSame(argument1, argument2);
     }
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/builders/ConfigCenterBuilderTest.java b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/builders/ConfigCenterBuilderTest.java
index f53691c019..e07db36fbc 100644
--- a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/builders/ConfigCenterBuilderTest.java
+++ b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/builders/ConfigCenterBuilderTest.java
@@ -165,4 +165,4 @@ class ConfigCenterBuilderTest {
 
         Assertions.assertNotSame(config, config2);
     }
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/builders/ConsumerBuilderTest.java b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/builders/ConsumerBuilderTest.java
index b0e3f89761..607388c7b2 100644
--- a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/builders/ConsumerBuilderTest.java
+++ b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/builders/ConsumerBuilderTest.java
@@ -91,4 +91,4 @@ class ConsumerBuilderTest {
         Assertions.assertEquals(300, config.getShareconnections());
         Assertions.assertNotSame(config, config2);
     }
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/builders/MetadataReportBuilderTest.java b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/builders/MetadataReportBuilderTest.java
index 9aa966f1ee..9e3e718c6a 100644
--- a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/builders/MetadataReportBuilderTest.java
+++ b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/builders/MetadataReportBuilderTest.java
@@ -147,4 +147,4 @@ class MetadataReportBuilderTest {
         Assertions.assertEquals("id", config.getId());
         Assertions.assertNotSame(config, config2);
     }
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/builders/MethodBuilderTest.java b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/builders/MethodBuilderTest.java
index 29a4813959..9196c48210 100644
--- a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/builders/MethodBuilderTest.java
+++ b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/builders/MethodBuilderTest.java
@@ -186,4 +186,4 @@ class MethodBuilderTest {
         Assertions.assertEquals("serviceId", config.getServiceId());
         Assertions.assertNotSame(config, config2);
     }
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/builders/ModuleBuilderTest.java b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/builders/ModuleBuilderTest.java
index 1d6180066b..bbf7d2eb93 100644
--- a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/builders/ModuleBuilderTest.java
+++ b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/builders/ModuleBuilderTest.java
@@ -109,4 +109,4 @@ class ModuleBuilderTest {
         Assertions.assertFalse(config.isDefault());
         Assertions.assertNotSame(config, config2);
     }
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/builders/MonitorBuilderTest.java b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/builders/MonitorBuilderTest.java
index f2e57de9ba..f63fd39d42 100644
--- a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/builders/MonitorBuilderTest.java
+++ b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/builders/MonitorBuilderTest.java
@@ -131,4 +131,4 @@ class MonitorBuilderTest {
         Assertions.assertEquals("id", config.getId());
         Assertions.assertNotSame(config, config2);
     }
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/builders/ProtocolBuilderTest.java b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/builders/ProtocolBuilderTest.java
index 9d9fed8c58..331d228f72 100644
--- a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/builders/ProtocolBuilderTest.java
+++ b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/builders/ProtocolBuilderTest.java
@@ -334,4 +334,4 @@ class ProtocolBuilderTest {
         Assertions.assertEquals("id", config.getId());
         Assertions.assertNotSame(config, config2);
     }
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/builders/ProviderBuilderTest.java b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/builders/ProviderBuilderTest.java
index c383f1ad3a..f3cc1a6b22 100644
--- a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/builders/ProviderBuilderTest.java
+++ b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/builders/ProviderBuilderTest.java
@@ -223,4 +223,4 @@ class ProviderBuilderTest {
         Assertions.assertEquals("id", config.getId());
         Assertions.assertNotSame(config, config2);
     }
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/builders/ReferenceBuilderTest.java b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/builders/ReferenceBuilderTest.java
index 833636b8bc..4d11ef4314 100644
--- a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/builders/ReferenceBuilderTest.java
+++ b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/builders/ReferenceBuilderTest.java
@@ -122,4 +122,4 @@ class ReferenceBuilderTest {
         Assertions.assertEquals(1, config.getMethods().size());
         Assertions.assertNotSame(config, config2);
     }
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/builders/RegistryBuilderTest.java b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/builders/RegistryBuilderTest.java
index 9045419d67..eab629d0a5 100644
--- a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/builders/RegistryBuilderTest.java
+++ b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/builders/RegistryBuilderTest.java
@@ -252,4 +252,4 @@ class RegistryBuilderTest {
         Assertions.assertEquals("id", config.getId());
         Assertions.assertNotSame(config, config2);
     }
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/builders/ServiceBuilderTest.java b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/builders/ServiceBuilderTest.java
index 82d8729d98..cb22a45cdf 100644
--- a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/builders/ServiceBuilderTest.java
+++ b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/builders/ServiceBuilderTest.java
@@ -74,7 +74,7 @@ class ServiceBuilderTest {
     }
 
     @Test
-    public void generic() throws Exception {
+    void generic() throws Exception {
         ServiceBuilder builder = new ServiceBuilder();
         builder.generic(GENERIC_SERIALIZATION_DEFAULT);
         assertThat(builder.build().getGeneric(), equalTo(GENERIC_SERIALIZATION_DEFAULT));
@@ -85,7 +85,7 @@ class ServiceBuilderTest {
     }
 
     @Test
-    public void generic1() throws Exception {
+    void generic1() throws Exception {
         Assertions.assertThrows(IllegalArgumentException.class, () -> {
             ServiceBuilder builder = new ServiceBuilder();
             builder.generic("illegal").build();
@@ -128,4 +128,4 @@ class ServiceBuilderTest {
         Assertions.assertEquals(1, config.getMethods().size());
         Assertions.assertNotSame(config, config2);
     }
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/cache/CacheTest.java b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/cache/CacheTest.java
index e0dab84dce..688192b06b 100644
--- a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/cache/CacheTest.java
+++ b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/cache/CacheTest.java
@@ -46,7 +46,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
 /**
  * CacheTest
  */
-public class CacheTest {
+class CacheTest {
 
     @BeforeEach
     public void setUp() {
@@ -118,17 +118,17 @@ public class CacheTest {
     }
 
     @Test
-    public void testCacheLru() throws Exception {
+    void testCacheLru() throws Exception {
         testCache("lru");
     }
 
     @Test
-    public void testCacheThreadlocal() throws Exception {
+    void testCacheThreadlocal() throws Exception {
         testCache("threadlocal");
     }
 
     @Test
-    public void testCacheProvider() throws Exception {
+    void testCacheProvider() throws Exception {
         CacheFactory cacheFactory = ExtensionLoader.getExtensionLoader(CacheFactory.class).getAdaptiveExtension();
 
         Map<String, String> parameters = new HashMap<String, String>();
@@ -141,4 +141,4 @@ public class CacheTest {
         assertTrue(cache instanceof ThreadLocalCache);
     }
 
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/integration/IntegrationTest.java b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/integration/IntegrationTest.java
index a185231fb8..2e3067affa 100644
--- a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/integration/IntegrationTest.java
+++ b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/integration/IntegrationTest.java
@@ -25,4 +25,4 @@ public interface IntegrationTest {
      * Run the integration testcases.
      */
     void integrate();
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/integration/multiple/exportmetadata/MultipleRegistryCenterExportMetadataIntegrationTest.java b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/integration/multiple/exportmetadata/MultipleRegistryCenterExportMetadataIntegrationTest.java
index 06e951e2b0..28a644bff7 100644
--- a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/integration/multiple/exportmetadata/MultipleRegistryCenterExportMetadataIntegrationTest.java
+++ b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/integration/multiple/exportmetadata/MultipleRegistryCenterExportMetadataIntegrationTest.java
@@ -46,7 +46,7 @@ import static org.apache.dubbo.rpc.Constants.SCOPE_LOCAL;
 /**
  * The testcases are only for checking the process of exporting metadata service.
  */
-public class MultipleRegistryCenterExportMetadataIntegrationTest implements IntegrationTest {
+class MultipleRegistryCenterExportMetadataIntegrationTest implements IntegrationTest {
 
     private static final Logger logger = LoggerFactory.getLogger(MultipleRegistryCenterExportMetadataIntegrationTest.class);
 
@@ -178,4 +178,4 @@ public class MultipleRegistryCenterExportMetadataIntegrationTest implements Inte
         serviceListener = null;
         logger.info(getClass().getSimpleName() + " testcase is ending...");
     }
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/integration/multiple/exportprovider/MultipleRegistryCenterExportProviderIntegrationTest.java b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/integration/multiple/exportprovider/MultipleRegistryCenterExportProviderIntegrationTest.java
index a98fa5817c..bbf5277ebc 100644
--- a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/integration/multiple/exportprovider/MultipleRegistryCenterExportProviderIntegrationTest.java
+++ b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/integration/multiple/exportprovider/MultipleRegistryCenterExportProviderIntegrationTest.java
@@ -47,7 +47,7 @@ import java.io.IOException;
 /**
  * The testcases are only for checking the core process of exporting provider.
  */
-public class MultipleRegistryCenterExportProviderIntegrationTest implements IntegrationTest {
+class MultipleRegistryCenterExportProviderIntegrationTest implements IntegrationTest {
 
     private static final Logger logger = LoggerFactory.getLogger(MultipleRegistryCenterExportProviderIntegrationTest.class);
 
@@ -244,4 +244,4 @@ public class MultipleRegistryCenterExportProviderIntegrationTest implements Inte
         logger.info(getClass().getSimpleName() + " testcase is ending...");
         registryProtocolListener = null;
     }
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/integration/multiple/injvm/MultipleRegistryCenterInjvmIntegrationTest.java b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/integration/multiple/injvm/MultipleRegistryCenterInjvmIntegrationTest.java
index cdc3adf10a..3f5df17128 100644
--- a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/integration/multiple/injvm/MultipleRegistryCenterInjvmIntegrationTest.java
+++ b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/integration/multiple/injvm/MultipleRegistryCenterInjvmIntegrationTest.java
@@ -43,7 +43,7 @@ import static org.apache.dubbo.rpc.Constants.SCOPE_LOCAL;
 /**
  * The testcases are only for checking the process of exporting provider using injvm protocol.
  */
-public class MultipleRegistryCenterInjvmIntegrationTest implements IntegrationTest {
+class MultipleRegistryCenterInjvmIntegrationTest implements IntegrationTest {
 
     private static final Logger logger = LoggerFactory.getLogger(MultipleRegistryCenterInjvmIntegrationTest.class);
 
@@ -189,4 +189,4 @@ public class MultipleRegistryCenterInjvmIntegrationTest implements IntegrationTe
         serviceListener = null;
         logger.info(getClass().getSimpleName() + " testcase is ending...");
     }
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/integration/multiple/servicediscoveryregistry/MultipleRegistryCenterServiceDiscoveryRegistryIntegrationTest.java b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/integration/multiple/servicediscoveryregistry/MultipleRegistryCenterServiceDiscoveryRegistryIntegrationTest.java
index f27fcd71b3..d0047fe4ce 100644
--- a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/integration/multiple/servicediscoveryregistry/MultipleRegistryCenterServiceDiscoveryRegistryIntegrationTest.java
+++ b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/integration/multiple/servicediscoveryregistry/MultipleRegistryCenterServiceDiscoveryRegistryIntegrationTest.java
@@ -48,7 +48,7 @@ import static org.apache.dubbo.config.integration.Constants.MULTIPLE_CONFIG_CENT
 /**
  * The testcases are only for checking the process of exporting provider using service-discovery-registry protocol.
  */
-public class MultipleRegistryCenterServiceDiscoveryRegistryIntegrationTest implements IntegrationTest {
+class MultipleRegistryCenterServiceDiscoveryRegistryIntegrationTest implements IntegrationTest {
 
     private static final Logger logger = LoggerFactory.getLogger(MultipleRegistryCenterServiceDiscoveryRegistryIntegrationTest.class);
 
@@ -213,4 +213,4 @@ public class MultipleRegistryCenterServiceDiscoveryRegistryIntegrationTest imple
         registryServiceListener = null;
         logger.info(getClass().getSimpleName() + " testcase is ending...");
     }
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/integration/single/SingleRegistryCenterDubboProtocolIntegrationTest.java b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/integration/single/SingleRegistryCenterDubboProtocolIntegrationTest.java
index c4f1e866a0..b10835de23 100644
--- a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/integration/single/SingleRegistryCenterDubboProtocolIntegrationTest.java
+++ b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/integration/single/SingleRegistryCenterDubboProtocolIntegrationTest.java
@@ -62,7 +62,7 @@ import static org.apache.dubbo.rpc.Constants.SCOPE_REMOTE;
  * This abstraction class will implement some methods as base for single registry center.
  */
 @DisabledForJreRange(min = JRE.JAVA_16)
-public class SingleRegistryCenterDubboProtocolIntegrationTest implements IntegrationTest {
+class SingleRegistryCenterDubboProtocolIntegrationTest implements IntegrationTest {
 
     private static final Logger logger = LoggerFactory.getLogger(SingleRegistryCenterDubboProtocolIntegrationTest.class);
     /**
@@ -370,4 +370,4 @@ public class SingleRegistryCenterDubboProtocolIntegrationTest implements Integra
         singleRegistryCenterExportedServiceListener = null;
         logger.info(getClass().getSimpleName() + " testcase is ending...");
     }
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/integration/single/exportmetadata/SingleRegistryCenterExportMetadataIntegrationTest.java b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/integration/single/exportmetadata/SingleRegistryCenterExportMetadataIntegrationTest.java
index 2f34c1f28f..3178b2e7e9 100644
--- a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/integration/single/exportmetadata/SingleRegistryCenterExportMetadataIntegrationTest.java
+++ b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/integration/single/exportmetadata/SingleRegistryCenterExportMetadataIntegrationTest.java
@@ -46,7 +46,7 @@ import static org.apache.dubbo.rpc.Constants.SCOPE_LOCAL;
 /**
  * The testcases are only for checking the process of exporting metadata service.
  */
-public class SingleRegistryCenterExportMetadataIntegrationTest implements IntegrationTest {
+class SingleRegistryCenterExportMetadataIntegrationTest implements IntegrationTest {
 
     private static final Logger logger = LoggerFactory.getLogger(SingleRegistryCenterExportMetadataIntegrationTest.class);
 
@@ -174,4 +174,4 @@ public class SingleRegistryCenterExportMetadataIntegrationTest implements Integr
         serviceListener = null;
         logger.info(getClass().getSimpleName() + " testcase is ending...");
     }
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/integration/single/exportprovider/SingleRegistryCenterExportProviderIntegrationTest.java b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/integration/single/exportprovider/SingleRegistryCenterExportProviderIntegrationTest.java
index 16398b1436..50dca60a21 100644
--- a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/integration/single/exportprovider/SingleRegistryCenterExportProviderIntegrationTest.java
+++ b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/integration/single/exportprovider/SingleRegistryCenterExportProviderIntegrationTest.java
@@ -53,7 +53,7 @@ import static org.apache.dubbo.rpc.Constants.SCOPE_LOCAL;
 /**
  * The testcases are only for checking the core process of exporting provider.
  */
-public class SingleRegistryCenterExportProviderIntegrationTest implements IntegrationTest {
+class SingleRegistryCenterExportProviderIntegrationTest implements IntegrationTest {
 
     private static final Logger logger = LoggerFactory.getLogger(SingleRegistryCenterExportProviderIntegrationTest.class);
 
@@ -244,4 +244,4 @@ public class SingleRegistryCenterExportProviderIntegrationTest implements Integr
         logger.info(getClass().getSimpleName() + " testcase is ending...");
         registryProtocolListener = null;
     }
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/integration/single/injvm/SingleRegistryCenterInjvmIntegrationTest.java b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/integration/single/injvm/SingleRegistryCenterInjvmIntegrationTest.java
index fc414df712..62b72e80f3 100644
--- a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/integration/single/injvm/SingleRegistryCenterInjvmIntegrationTest.java
+++ b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/integration/single/injvm/SingleRegistryCenterInjvmIntegrationTest.java
@@ -43,7 +43,7 @@ import static org.apache.dubbo.rpc.Constants.SCOPE_LOCAL;
 /**
  * The testcases are only for checking the process of exporting provider using injvm protocol.
  */
-public class SingleRegistryCenterInjvmIntegrationTest implements IntegrationTest {
+class SingleRegistryCenterInjvmIntegrationTest implements IntegrationTest {
 
     private static final Logger logger = LoggerFactory.getLogger(SingleRegistryCenterInjvmIntegrationTest.class);
 
@@ -188,4 +188,4 @@ public class SingleRegistryCenterInjvmIntegrationTest implements IntegrationTest
         serviceListener = null;
         logger.info(getClass().getSimpleName() + " testcase is ending...");
     }
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/invoker/DelegateProviderMetaDataInvokerTest.java b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/invoker/DelegateProviderMetaDataInvokerTest.java
index a8cd43868a..70d3df05bd 100644
--- a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/invoker/DelegateProviderMetaDataInvokerTest.java
+++ b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/invoker/DelegateProviderMetaDataInvokerTest.java
@@ -29,7 +29,7 @@ import org.mockito.Mockito;
 import static org.hamcrest.MatcherAssert.assertThat;
 import static org.hamcrest.Matchers.sameInstance;
 
-public class DelegateProviderMetaDataInvokerTest {
+class DelegateProviderMetaDataInvokerTest {
     private ServiceConfig service;
     private Invoker<Greeting> invoker;
 
@@ -40,7 +40,7 @@ public class DelegateProviderMetaDataInvokerTest {
     }
 
     @Test
-    public void testDelegate() throws Exception {
+    void testDelegate() throws Exception {
         DelegateProviderMetaDataInvoker<Greeting> delegate =
                 new DelegateProviderMetaDataInvoker<Greeting>(invoker, service);
         delegate.getInterface();
@@ -57,4 +57,4 @@ public class DelegateProviderMetaDataInvokerTest {
         assertThat(delegate.getMetadata(), sameInstance(service));
     }
 
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/metadata/MetadataServiceURLParamsMetadataCustomizerTest.java b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/metadata/MetadataServiceURLParamsMetadataCustomizerTest.java
index 76380f276e..67f2122783 100644
--- a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/metadata/MetadataServiceURLParamsMetadataCustomizerTest.java
+++ b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/metadata/MetadataServiceURLParamsMetadataCustomizerTest.java
@@ -26,7 +26,6 @@ import org.apache.dubbo.config.api.DemoService;
 import org.apache.dubbo.config.bootstrap.DubboBootstrap;
 import org.apache.dubbo.config.provider.impl.DemoServiceImpl;
 import org.apache.dubbo.registry.client.DefaultServiceInstance;
-import org.apache.dubbo.registry.client.metadata.ServiceInstanceMetadataUtils;
 import org.apache.dubbo.rpc.model.ApplicationModel;
 
 import org.junit.jupiter.api.AfterEach;
@@ -47,7 +46,7 @@ import static org.apache.dubbo.common.constants.CommonConstants.TIMESTAMP_KEY;
 import static org.apache.dubbo.common.constants.CommonConstants.VERSION_KEY;
 import static org.apache.dubbo.registry.client.metadata.ServiceInstanceMetadataUtils.METADATA_SERVICE_URL_PARAMS_PROPERTY_NAME;
 
-public class MetadataServiceURLParamsMetadataCustomizerTest {
+class MetadataServiceURLParamsMetadataCustomizerTest {
 
     public DefaultServiceInstance instance;
     private URL metadataServiceURL = URL.valueOf("dubbo://10.225.12.124:2002/org.apache.dubbo.metadata.MetadataService" +
@@ -70,7 +69,7 @@ public class MetadataServiceURLParamsMetadataCustomizerTest {
     }
 
     @Test
-    public void test() {
+    void test() {
         DubboBootstrap providerBootstrap = DubboBootstrap.newInstance();
         ServiceConfig<DemoService> serviceConfig = new ServiceConfig<>();
         serviceConfig.setInterface(DemoService.class);
diff --git a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/nested/AggregationConfigTest.java b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/nested/AggregationConfigTest.java
index b24f49cc32..76c9d504a8 100644
--- a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/nested/AggregationConfigTest.java
+++ b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/nested/AggregationConfigTest.java
@@ -21,26 +21,26 @@ import org.junit.jupiter.api.Test;
 import static org.hamcrest.MatcherAssert.assertThat;
 import static org.hamcrest.Matchers.equalTo;
 
-public class AggregationConfigTest {
+class AggregationConfigTest {
 
     @Test
-    public void testEnabled() {
+    void testEnabled() {
         AggregationConfig aggregationConfig = new AggregationConfig();
         aggregationConfig.setEnabled(true);
         assertThat(aggregationConfig.getEnabled(), equalTo(true));
     }
 
     @Test
-    public void testBucketNum() {
+    void testBucketNum() {
         AggregationConfig aggregationConfig = new AggregationConfig();
         aggregationConfig.setBucketNum(5);
         assertThat(aggregationConfig.getBucketNum(), equalTo(5));
     }
 
     @Test
-    public void testTimeWindowSeconds() {
+    void testTimeWindowSeconds() {
         AggregationConfig aggregationConfig = new AggregationConfig();
         aggregationConfig.setTimeWindowSeconds(120);
         assertThat(aggregationConfig.getTimeWindowSeconds(), equalTo(120));
     }
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/nested/PrometheusConfigTest.java b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/nested/PrometheusConfigTest.java
index 7dc3518803..d78f2732f7 100644
--- a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/nested/PrometheusConfigTest.java
+++ b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/nested/PrometheusConfigTest.java
@@ -21,10 +21,10 @@ import org.junit.jupiter.api.Test;
 import static org.hamcrest.MatcherAssert.assertThat;
 import static org.hamcrest.Matchers.equalTo;
 
-public class PrometheusConfigTest {
+class PrometheusConfigTest {
 
     @Test
-    public void testExporter() {
+    void testExporter() {
         PrometheusConfig prometheusConfig = new PrometheusConfig();
         PrometheusConfig.Exporter exporter = new PrometheusConfig.Exporter();
 
@@ -43,7 +43,7 @@ public class PrometheusConfigTest {
     }
 
     @Test
-    public void testPushgateway() {
+    void testPushgateway() {
         PrometheusConfig prometheusConfig = new PrometheusConfig();
         PrometheusConfig.Pushgateway pushgateway = new PrometheusConfig.Pushgateway();
 
@@ -62,4 +62,4 @@ public class PrometheusConfigTest {
         assertThat(prometheusConfig.getPushgateway().getJob(), equalTo("job"));
         assertThat(prometheusConfig.getPushgateway().getPushInterval(), equalTo(30));
     }
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/url/ExporterSideConfigUrlTest.java b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/url/ExporterSideConfigUrlTest.java
index f5adf5050f..c07201b78e 100644
--- a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/url/ExporterSideConfigUrlTest.java
+++ b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/url/ExporterSideConfigUrlTest.java
@@ -29,7 +29,7 @@ import org.junit.jupiter.api.Test;
 import java.io.UnsupportedEncodingException;
 import java.net.URLDecoder;
 
-public class ExporterSideConfigUrlTest extends UrlTestBase {
+class ExporterSideConfigUrlTest extends UrlTestBase {
 
     private static final Logger log = LoggerFactory.getLogger(ExporterSideConfigUrlTest.class);
 
@@ -53,23 +53,23 @@ public class ExporterSideConfigUrlTest extends UrlTestBase {
     }
 
     @Test
-    public void exporterMethodConfigUrlTest() {
+    void exporterMethodConfigUrlTest() {
         verifyExporterUrlGeneration(methodConfForService, methodConfForServiceTable);
     }
 
     @Test
-    public void exporterServiceConfigUrlTest() {
+    void exporterServiceConfigUrlTest() {
         verifyExporterUrlGeneration(servConf, servConfTable);
     }
 
     @Test
-    public void exporterProviderConfigUrlTest() {
+    void exporterProviderConfigUrlTest() {
 
         verifyExporterUrlGeneration(provConf, provConfTable);
     }
 
     @Test
-    public void exporterRegistryConfigUrlTest() {
+    void exporterRegistryConfigUrlTest() {
 
         //verifyExporterUrlGeneration(regConfForService, regConfForServiceTable);
     }
@@ -99,4 +99,4 @@ public class ExporterSideConfigUrlTest extends UrlTestBase {
         ////////////////////////////////////////////////////////////
         servConf.unexport();
     }
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/url/InvokerSideConfigUrlTest.java b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/url/InvokerSideConfigUrlTest.java
index 5e932c6aa8..5994f7e535 100644
--- a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/url/InvokerSideConfigUrlTest.java
+++ b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/url/InvokerSideConfigUrlTest.java
@@ -36,7 +36,7 @@ import java.util.Arrays;
 import static org.apache.dubbo.rpc.Constants.SCOPE_REMOTE;
 
 @Disabled
-public class InvokerSideConfigUrlTest extends UrlTestBase {
+class InvokerSideConfigUrlTest extends UrlTestBase {
     private static final Logger log = LoggerFactory.getLogger(InvokerSideConfigUrlTest.class);
 
     // ======================================================
@@ -147,18 +147,18 @@ public class InvokerSideConfigUrlTest extends UrlTestBase {
 
 
     @Test
-    public void consumerConfUrlTest() {
+    void consumerConfUrlTest() {
         verifyInvokerUrlGeneration(consumerConf, consumerConfTable);
     }
 
     @Test
-    public void refConfUrlTest() {
+    void refConfUrlTest() {
         verifyInvokerUrlGeneration(refConf, refConfTable);
     }
 
     @Disabled("parameter on register center will not be merged any longer with query parameter request from the consumer")
     @Test
-    public void regConfForConsumerUrlTest() {
+    void regConfForConsumerUrlTest() {
         verifyInvokerUrlGeneration(regConfForConsumer, regConfForConsumerTable);
     }
 
@@ -214,4 +214,4 @@ public class InvokerSideConfigUrlTest extends UrlTestBase {
     private String getSubscribedUrlString() {
         return MockRegistry.getSubscribedUrl().toString();
     }
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/utils/ConfigValidationUtilsTest.java b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/utils/ConfigValidationUtilsTest.java
index 03d4ce58c4..b98c46ec9d 100644
--- a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/utils/ConfigValidationUtilsTest.java
+++ b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/utils/ConfigValidationUtilsTest.java
@@ -23,6 +23,7 @@ import org.apache.dubbo.config.MetadataReportConfig;
 import org.apache.dubbo.config.api.Greeting;
 import org.apache.dubbo.config.mock.GreetingMock1;
 import org.apache.dubbo.config.mock.GreetingMock2;
+
 import org.junit.jupiter.api.Assertions;
 import org.junit.jupiter.api.Test;
 import org.mockito.MockedStatic;
@@ -39,11 +40,11 @@ import static org.mockito.Mockito.times;
 import static org.mockito.Mockito.verify;
 
 
-public class ConfigValidationUtilsTest {
+class ConfigValidationUtilsTest {
 
 
     @Test
-    public void checkMock1() {
+    void checkMock1() {
         Assertions.assertThrows(IllegalStateException.class, () -> {
             InterfaceConfig interfaceConfig = new InterfaceConfig();
             interfaceConfig.setMock("return {a, b}");
@@ -53,7 +54,7 @@ public class ConfigValidationUtilsTest {
     }
 
     @Test
-    public void checkMock2() {
+    void checkMock2() {
         Assertions.assertThrows(IllegalStateException.class, () -> {
             InterfaceConfig interfaceConfig = new InterfaceConfig();
             interfaceConfig.setMock(GreetingMock1.class.getName());
@@ -62,7 +63,7 @@ public class ConfigValidationUtilsTest {
     }
 
     @Test
-    public void checkMock3() {
+    void checkMock3() {
         Assertions.assertThrows(IllegalStateException.class, () -> {
             InterfaceConfig interfaceConfig = new InterfaceConfig();
             interfaceConfig.setMock(GreetingMock2.class.getName());
@@ -71,7 +72,7 @@ public class ConfigValidationUtilsTest {
     }
 
     @Test
-    public void testValidateMetadataConfig() {
+    void testValidateMetadataConfig() {
         MetadataReportConfig config = new MetadataReportConfig();
         config.setAddress("protocol://ip:host");
         try {
@@ -96,7 +97,7 @@ public class ConfigValidationUtilsTest {
     }
 
     @Test
-    public void testValidateApplicationConfig() throws Exception {
+    void testValidateApplicationConfig() throws Exception {
         try (MockedStatic<ConfigValidationUtils> mockedStatic = Mockito.mockStatic(ConfigValidationUtils.class);) {
             mockedStatic.when(() -> ConfigValidationUtils.validateApplicationConfig(any())).thenCallRealMethod();
             ApplicationConfig config = new ApplicationConfig();
@@ -127,7 +128,7 @@ public class ConfigValidationUtilsTest {
     }
 
     @Test
-    public void testCheckQosInApplicationConfig() throws Exception {
+    void testCheckQosInApplicationConfig() throws Exception {
         ConfigValidationUtils mock = Mockito.mock(ConfigValidationUtils.class);
         ErrorTypeAwareLogger loggerMock = Mockito.mock(ErrorTypeAwareLogger.class);
         injectField(mock.getClass().getDeclaredField("logger"), loggerMock);
diff --git a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/utils/ReferenceCacheTest.java b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/utils/ReferenceCacheTest.java
index 8b9bac95e5..22ad45a7ac 100644
--- a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/utils/ReferenceCacheTest.java
+++ b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/utils/ReferenceCacheTest.java
@@ -29,7 +29,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
 import static org.junit.jupiter.api.Assertions.assertFalse;
 import static org.junit.jupiter.api.Assertions.assertTrue;
 
-public class ReferenceCacheTest {
+class ReferenceCacheTest {
 
     @BeforeEach
     public void setUp() throws Exception {
@@ -39,7 +39,7 @@ public class ReferenceCacheTest {
     }
 
     @Test
-    public void testGetCacheSameReference() throws Exception {
+    void testGetCacheSameReference() throws Exception {
         ReferenceCache cache = SimpleReferenceCache.getCache();
         MockReferenceConfig config = buildMockReferenceConfig("org.apache.dubbo.config.utils.service.FooService", "group1", "1.0.0");
         assertEquals(0L, config.getCounter());
@@ -58,7 +58,7 @@ public class ReferenceCacheTest {
     }
 
     @Test
-    public void testGetCacheDiffReference() throws Exception {
+    void testGetCacheDiffReference() throws Exception {
         ReferenceCache cache = SimpleReferenceCache.getCache();
         MockReferenceConfig config = buildMockReferenceConfig("org.apache.dubbo.config.utils.service.FooService", "group1", "1.0.0");
         assertEquals(0L, config.getCounter());
@@ -76,7 +76,7 @@ public class ReferenceCacheTest {
     }
 
     @Test
-    public void testGetCacheWithKey() throws Exception {
+    void testGetCacheWithKey() throws Exception {
         ReferenceCache cache = SimpleReferenceCache.getCache();
         MockReferenceConfig config = buildMockReferenceConfig("org.apache.dubbo.config.utils.service.FooService", "group1", "1.0.0");
         FooService value = cache.get(config);
@@ -84,7 +84,7 @@ public class ReferenceCacheTest {
     }
 
     @Test
-    public void testGetCacheDiffName() throws Exception {
+    void testGetCacheDiffName() throws Exception {
         SimpleReferenceCache cache = SimpleReferenceCache.getCache();
         MockReferenceConfig config = buildMockReferenceConfig("org.apache.dubbo.config.utils.service.FooService", "group1", "1.0.0");
         assertEquals(0L, config.getCounter());
@@ -102,7 +102,7 @@ public class ReferenceCacheTest {
     }
 
     @Test
-    public void testDestroy() throws Exception {
+    void testDestroy() throws Exception {
         SimpleReferenceCache cache = SimpleReferenceCache.getCache();
         MockReferenceConfig config = buildMockReferenceConfig("org.apache.dubbo.config.utils.service.FooService", "group1", "1.0.0");
         cache.get(config);
@@ -118,7 +118,7 @@ public class ReferenceCacheTest {
     }
 
     @Test
-    public void testDestroyAll() throws Exception {
+    void testDestroyAll() throws Exception {
         SimpleReferenceCache cache = SimpleReferenceCache.getCache();
         MockReferenceConfig config = buildMockReferenceConfig("org.apache.dubbo.config.utils.service.FooService", "group1", "1.0.0");
         cache.get(config);
@@ -153,4 +153,4 @@ public class ReferenceCacheTest {
         return config;
     }
 
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/metadata/MetadataServiceExporterTest.java b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/metadata/MetadataServiceExporterTest.java
index dbaf02f41b..93869ad63d 100644
--- a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/metadata/MetadataServiceExporterTest.java
+++ b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/metadata/MetadataServiceExporterTest.java
@@ -253,4 +253,4 @@
 //        return (ExporterDeployListener)model.getExtensionLoader(ApplicationDeployListener.class).getExtension("exporter");
 //    }
 //
-//}
+//}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/ConfigTest.java b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/ConfigTest.java
index 3889988c52..938504aaf4 100644
--- a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/ConfigTest.java
+++ b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/ConfigTest.java
@@ -113,7 +113,7 @@ public class ConfigTest {
     }
 
     @Test
-    public void testServiceClass() {
+    void testServiceClass() {
         ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext(resourcePath + "/service-class.xml");
         try {
             ctx.start();
@@ -221,7 +221,7 @@ public class ConfigTest {
     }
 
     @Test
-    public void testMultiProtocol() {
+    void testMultiProtocol() {
         ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext(resourcePath + "/multi-protocol.xml");
 
         try {
@@ -358,7 +358,7 @@ public class ConfigTest {
     }
 
     @Test
-    public void testRmiTimeout() throws Exception {
+    void testRmiTimeout() throws Exception {
         System.clearProperty("sun.rmi.transport.tcp.responseTimeout");
         ConsumerConfig consumer = new ConsumerConfig();
         consumer.setTimeout(1000);
@@ -408,7 +408,7 @@ public class ConfigTest {
     }
 
     @Test
-    public void testAppendFilter() throws Exception {
+    void testAppendFilter() throws Exception {
         ApplicationConfig application = new ApplicationConfig("provider");
 
         ProviderConfig provider = new ProviderConfig();
@@ -457,7 +457,7 @@ public class ConfigTest {
     }
 
     @Test
-    public void testInitReference() throws Exception {
+    void testInitReference() throws Exception {
         ClassPathXmlApplicationContext providerContext = new ClassPathXmlApplicationContext(
                 resourcePath + "/demo-provider.xml",
                 resourcePath + "/demo-provider-properties.xml");
@@ -524,7 +524,7 @@ public class ConfigTest {
 
     // DUBBO-571 methods key in provider's URLONE doesn't contain the methods from inherited super interface
     @Test
-    public void test_noMethodInterface_methodsKeyHasValue() throws Exception {
+    void test_noMethodInterface_methodsKeyHasValue() throws Exception {
         List<URL> urls = null;
         ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext(resourcePath + "/demo-provider-no-methods-interface.xml");
         try {
@@ -550,7 +550,7 @@ public class ConfigTest {
     // DUBBO-147 find all invoker instances which have been tried from RpcContext
     @Disabled("waiting-to-fix")
     @Test
-    public void test_RpcContext_getUrls() throws Exception {
+    void test_RpcContext_getUrls() throws Exception {
         ClassPathXmlApplicationContext providerContext = new ClassPathXmlApplicationContext(
                 resourcePath + "/demo-provider-long-waiting.xml");
 
@@ -707,7 +707,7 @@ public class ConfigTest {
     }
 
     @Test
-    public void testSystemPropertyOverrideProtocol() throws Exception {
+    void testSystemPropertyOverrideProtocol() throws Exception {
         SysProps.setProperty("dubbo.protocols.tri.port", ""); // empty config should be ignored
         SysProps.setProperty("dubbo.protocols.dubbo.port", "20812"); // override success
         SysProps.setProperty("dubbo.protocol.port", "20899"); // override fail
@@ -723,7 +723,7 @@ public class ConfigTest {
     }
 
     @Test
-    public void testSystemPropertyOverrideMultiProtocol() throws Exception {
+    void testSystemPropertyOverrideMultiProtocol() throws Exception {
         SysProps.setProperty("dubbo.protocols.dubbo.port", "20814");
         SysProps.setProperty("dubbo.protocols.tri.port", "10914");
         ClassPathXmlApplicationContext providerContext = new ClassPathXmlApplicationContext(resourcePath +
@@ -795,7 +795,7 @@ public class ConfigTest {
     }
 
     @Test
-    public void testSystemPropertyOverrideReferenceConfig() throws Exception {
+    void testSystemPropertyOverrideReferenceConfig() throws Exception {
         SysProps.setProperty("dubbo.reference.org.apache.dubbo.config.spring.api.DemoService.retries", "5");
         SysProps.setProperty("dubbo.consumer.check", "false");
         SysProps.setProperty("dubbo.consumer.timeout", "1234");
@@ -1009,7 +1009,7 @@ public class ConfigTest {
     }
 
     @Test
-    public void testDubboProtocolPortOverride() throws Exception {
+    void testDubboProtocolPortOverride() throws Exception {
         int port = NetUtils.getAvailablePort();
         SysProps.setProperty("dubbo.protocol.port", String.valueOf(port));
         ServiceConfig<DemoService> service = null;
@@ -1119,7 +1119,7 @@ public class ConfigTest {
     }
 
     @Test
-    public void testGenericServiceConfig() throws Exception {
+    void testGenericServiceConfig() throws Exception {
         ServiceConfig<GenericService> service = new ServiceConfig<GenericService>();
         service.setRegistry(new RegistryConfig("mock://localhost"));
         service.setInterface(DemoService.class.getName());
@@ -1143,7 +1143,7 @@ public class ConfigTest {
     }
 
     @Test
-    public void testGenericServiceConfigThroughSpring() throws Exception {
+    void testGenericServiceConfigThroughSpring() throws Exception {
         ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext(resourcePath + "/generic-export.xml");
         try {
             ctx.start();
diff --git a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/JavaConfigBeanTest.java b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/JavaConfigBeanTest.java
index 03fc75431a..769271248a 100644
--- a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/JavaConfigBeanTest.java
+++ b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/JavaConfigBeanTest.java
@@ -44,7 +44,7 @@ import org.springframework.context.annotation.Configuration;
 import java.util.Collection;
 import java.util.Map;
 
-public class JavaConfigBeanTest {
+class JavaConfigBeanTest {
 
     private static final String MY_PROTOCOL_ID = "myProtocol";
     private static final String MY_REGISTRY_ID = "my-registry";
@@ -60,7 +60,7 @@ public class JavaConfigBeanTest {
     }
 
     @Test
-    public void testBean() {
+    void testBean() {
 
         SysProps.setProperty("dubbo.application.owner", "Tom");
         SysProps.setProperty("dubbo.application.qos-enable", "false");
@@ -178,4 +178,4 @@ public class JavaConfigBeanTest {
             return new DemoServiceImpl();
         }
     }
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/ServiceBeanTest.java b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/ServiceBeanTest.java
index d77cc7584d..f4fe893a49 100644
--- a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/ServiceBeanTest.java
+++ b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/ServiceBeanTest.java
@@ -28,7 +28,7 @@ import static org.hamcrest.CoreMatchers.not;
 import static org.hamcrest.CoreMatchers.nullValue;
 import static org.mockito.Mockito.mock;
 
-public class ServiceBeanTest {
+class ServiceBeanTest {
 
     @BeforeEach
     public void setUp() {
@@ -41,7 +41,7 @@ public class ServiceBeanTest {
     }
 
     @Test
-    public void testGetService() {
+    void testGetService() {
         TestService service = mock(TestService.class);
         ServiceBean serviceBean = new ServiceBean(service);
 
@@ -52,4 +52,4 @@ public class ServiceBeanTest {
     abstract class TestService implements Service {
 
     }
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/beans/factory/annotation/DubboConfigAliasPostProcessorTest.java b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/beans/factory/annotation/DubboConfigAliasPostProcessorTest.java
index 2e3f47adf4..b8c610df35 100644
--- a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/beans/factory/annotation/DubboConfigAliasPostProcessorTest.java
+++ b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/beans/factory/annotation/DubboConfigAliasPostProcessorTest.java
@@ -18,19 +18,20 @@ package org.apache.dubbo.config.spring.beans.factory.annotation;
 
 import org.apache.dubbo.config.ApplicationConfig;
 import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
+
 import org.junit.jupiter.api.Assertions;
 import org.junit.jupiter.api.Test;
 import org.springframework.context.annotation.AnnotationConfigApplicationContext;
 import org.springframework.context.annotation.Bean;
 import org.springframework.context.annotation.Configuration;
 
-public class DubboConfigAliasPostProcessorTest {
+class DubboConfigAliasPostProcessorTest {
 
     private static final String APP_NAME = "APP_NAME";
     private static final String APP_ID = "APP_ID";
 
     @Test
-    public void test() {
+    void test() {
         AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(TestConfigurationX.class);
         try {
             context.start();
diff --git a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/beans/factory/annotation/MergedAnnotationTest.java b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/beans/factory/annotation/MergedAnnotationTest.java
index 8abe1da276..3a4f4886b6 100644
--- a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/beans/factory/annotation/MergedAnnotationTest.java
+++ b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/beans/factory/annotation/MergedAnnotationTest.java
@@ -29,10 +29,10 @@ import org.springframework.util.ReflectionUtils;
 
 import java.lang.reflect.Field;
 
-public class MergedAnnotationTest {
+class MergedAnnotationTest {
 
     @Test
-    public void testMergedReference() {
+    void testMergedReference() {
         Field field = ReflectionUtils.findField(TestBean1.class, "demoService");
         Reference reference = AnnotatedElementUtils.getMergedAnnotation(field, Reference.class);
         Assertions.assertEquals("dubbo", reference.group());
@@ -45,7 +45,7 @@ public class MergedAnnotationTest {
     }
 
     @Test
-    public void testMergedService() {
+    void testMergedService() {
         Service service1 = AnnotatedElementUtils.getMergedAnnotation(DemoServiceImpl1.class, Service.class);
         Assertions.assertEquals("dubbo", service1.group());
         Assertions.assertEquals("1.0.0", service1.version());
@@ -73,4 +73,4 @@ public class MergedAnnotationTest {
         private DemoService demoService;
     }
 
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/beans/factory/annotation/MethodConfigCallbackTest.java b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/beans/factory/annotation/MethodConfigCallbackTest.java
index 1ac71b4860..9722e3cce9 100644
--- a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/beans/factory/annotation/MethodConfigCallbackTest.java
+++ b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/beans/factory/annotation/MethodConfigCallbackTest.java
@@ -52,7 +52,7 @@ import org.springframework.test.context.junit.jupiter.SpringExtension;
 })
 @EnableAspectJAutoProxy(proxyTargetClass = true, exposeProxy = true)
 @DirtiesContext(classMode = DirtiesContext.ClassMode.AFTER_EACH_TEST_METHOD)
-public class MethodConfigCallbackTest {
+class MethodConfigCallbackTest {
 
     @BeforeAll
     public static void beforeAll() {
@@ -84,7 +84,7 @@ public class MethodConfigCallbackTest {
     private HelloService helloServiceMethodCallBack2;
 
     @Test
-    public void testMethodAnnotationCallBack() {
+    void testMethodAnnotationCallBack() {
         int threadCnt = Math.min(4, Runtime.getRuntime().availableProcessors());
         int callCnt = 2 * threadCnt;
         for (int i = 0; i < threadCnt; i++) {
@@ -130,4 +130,4 @@ public class MethodConfigCallbackTest {
         }
 
     }
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/beans/factory/annotation/ParameterConvertTest.java b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/beans/factory/annotation/ParameterConvertTest.java
index cf100223de..a5bf17bb7c 100644
--- a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/beans/factory/annotation/ParameterConvertTest.java
+++ b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/beans/factory/annotation/ParameterConvertTest.java
@@ -29,10 +29,10 @@ import java.util.Map;
  * {@link DubboAnnotationUtils#convertParameters} Test
  */
 @DirtiesContext(classMode = DirtiesContext.ClassMode.AFTER_EACH_TEST_METHOD)
-public class ParameterConvertTest {
+class ParameterConvertTest {
 
     @Test
-    public void test() {
+    void test() {
         /**
          *     (array->map)
          *     ["a","b"] ==> {a=b}
@@ -63,4 +63,4 @@ public class ParameterConvertTest {
         Assertions.assertEquals(parametersMap, DubboAnnotationUtils.convertParameters(new String[]{"a", "0,100"}));
 
     }
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/beans/factory/annotation/ReferenceAnnotationBeanPostProcessorTest.java b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/beans/factory/annotation/ReferenceAnnotationBeanPostProcessorTest.java
index b913f61fed..06d0592668 100644
--- a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/beans/factory/annotation/ReferenceAnnotationBeanPostProcessorTest.java
+++ b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/beans/factory/annotation/ReferenceAnnotationBeanPostProcessorTest.java
@@ -78,7 +78,7 @@ import static org.springframework.test.annotation.DirtiesContext.ClassMode.AFTER
         "consumer.url = dubbo://127.0.0.1:12345?version=2.5.7",
 })
 @EnableAspectJAutoProxy(proxyTargetClass = true, exposeProxy = true)
-public class ReferenceAnnotationBeanPostProcessorTest {
+class ReferenceAnnotationBeanPostProcessorTest {
 
     @BeforeAll
     public static void setUp() {
@@ -138,7 +138,7 @@ public class ReferenceAnnotationBeanPostProcessorTest {
     private HelloService renamedHelloService2;
 
     @Test
-    public void testAop() throws Exception {
+    void testAop() throws Exception {
 
         Assertions.assertTrue(context.containsBean("helloService"));
 
@@ -182,7 +182,7 @@ public class ReferenceAnnotationBeanPostProcessorTest {
     }
 
     @Test
-    public void testGetInjectedFieldReferenceBeanMap() {
+    void testGetInjectedFieldReferenceBeanMap() {
 
         ReferenceAnnotationBeanPostProcessor beanPostProcessor = getReferenceAnnotationBeanPostProcessor();
 
@@ -215,7 +215,7 @@ public class ReferenceAnnotationBeanPostProcessorTest {
     }
 
     @Test
-    public void testGetInjectedMethodReferenceBeanMap() {
+    void testGetInjectedMethodReferenceBeanMap() {
 
         ReferenceAnnotationBeanPostProcessor beanPostProcessor = getReferenceAnnotationBeanPostProcessor();
 
@@ -245,7 +245,7 @@ public class ReferenceAnnotationBeanPostProcessorTest {
     }
 
     @Test
-    public void testReferenceBeansMethodAnnotation() {
+    void testReferenceBeansMethodAnnotation() {
 
         ReferenceBeanManager referenceBeanManager = context.getBean(ReferenceBeanManager.BEAN_NAME,
                 ReferenceBeanManager.class);
@@ -350,4 +350,4 @@ public class ReferenceAnnotationBeanPostProcessorTest {
         }
 
     }
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/beans/factory/annotation/ReferenceCreatorTest.java b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/beans/factory/annotation/ReferenceCreatorTest.java
index 0db3ce4ea8..60533b195d 100644
--- a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/beans/factory/annotation/ReferenceCreatorTest.java
+++ b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/beans/factory/annotation/ReferenceCreatorTest.java
@@ -69,7 +69,7 @@ import static org.springframework.util.ReflectionUtils.findField;
 @ExtendWith(SpringExtension.class)
 @ContextConfiguration(classes = {ReferenceCreatorTest.class, ReferenceCreatorTest.ConsumerConfiguration.class})
 @DirtiesContext(classMode = AFTER_EACH_TEST_METHOD)
-public class ReferenceCreatorTest {
+class ReferenceCreatorTest {
 
     private static final String MODULE_CONFIG_ID = "mymodule";
     private static final String CONSUMER_CONFIG_ID = "myconsumer";
@@ -122,7 +122,7 @@ public class ReferenceCreatorTest {
     }
 
     @Test
-    public void testBuild() throws Exception {
+    void testBuild() throws Exception {
 
         Field helloServiceField = findField(getClass(), "helloService");
         DubboReference reference = findAnnotation(helloServiceField, DubboReference.class);
@@ -244,4 +244,4 @@ public class ReferenceCreatorTest {
 
     }
 
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/beans/factory/annotation/ServiceAnnotationPostProcessorTest.java b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/beans/factory/annotation/ServiceAnnotationPostProcessorTest.java
index a4d26bfce5..52980c7f65 100644
--- a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/beans/factory/annotation/ServiceAnnotationPostProcessorTest.java
+++ b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/beans/factory/annotation/ServiceAnnotationPostProcessorTest.java
@@ -55,7 +55,7 @@ import static org.springframework.test.annotation.DirtiesContext.ClassMode.AFTER
         "provider.package = org.apache.dubbo.config.spring.context.annotation.provider",
 })
 @EnableDubbo(scanBasePackages = "${provider.package}")
-public class ServiceAnnotationPostProcessorTest {
+class ServiceAnnotationPostProcessorTest {
 
     @BeforeAll
     public static void setUp() {
@@ -71,7 +71,7 @@ public class ServiceAnnotationPostProcessorTest {
     private ConfigurableListableBeanFactory beanFactory;
 
     @Test
-    public void test() {
+    void test() {
 
         Map<String, HelloService> helloServicesMap = beanFactory.getBeansOfType(HelloService.class);
 
@@ -89,7 +89,7 @@ public class ServiceAnnotationPostProcessorTest {
     }
 
     @Test
-    public void testMethodAnnotation() {
+    void testMethodAnnotation() {
 
         Map<String, ServiceBean> serviceBeansMap = beanFactory.getBeansOfType(ServiceBean.class);
 
@@ -106,4 +106,4 @@ public class ServiceAnnotationPostProcessorTest {
 
     }
 
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/beans/factory/annotation/ServiceBeanNameBuilderTest.java b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/beans/factory/annotation/ServiceBeanNameBuilderTest.java
index 5bbbeaf80c..7f9cf28bb0 100644
--- a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/beans/factory/annotation/ServiceBeanNameBuilderTest.java
+++ b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/beans/factory/annotation/ServiceBeanNameBuilderTest.java
@@ -38,7 +38,7 @@ import static org.apache.dubbo.config.spring.beans.factory.annotation.ServiceBea
  */
 @Service(interfaceClass = DemoService.class, group = GROUP, version = VERSION,
         application = "application", module = "module", registry = {"1", "2", "3"})
-public class ServiceBeanNameBuilderTest {
+class ServiceBeanNameBuilderTest {
 
     @Reference(interfaceClass = DemoService.class, group = "DUBBO", version = "${dubbo.version}",
             application = "application", module = "module", registry = {"1", "2", "3"})
@@ -57,7 +57,7 @@ public class ServiceBeanNameBuilderTest {
     }
 
     @Test
-    public void testServiceAnnotation() {
+    void testServiceAnnotation() {
         Service service = AnnotationUtils.getAnnotation(ServiceBeanNameBuilderTest.class, Service.class);
         ServiceBeanNameBuilder builder = ServiceBeanNameBuilder.create(service, INTERFACE_CLASS, environment);
         Assertions.assertEquals("ServiceBean:org.apache.dubbo.config.spring.api.DemoService:1.0.0:DUBBO",
@@ -65,7 +65,7 @@ public class ServiceBeanNameBuilderTest {
     }
 
     @Test
-    public void testReferenceAnnotation() {
+    void testReferenceAnnotation() {
         Reference reference = AnnotationUtils.getAnnotation(ReflectionUtils.findField(ServiceBeanNameBuilderTest.class, "INTERFACE_CLASS"), Reference.class);
         ServiceBeanNameBuilder builder = ServiceBeanNameBuilder.create(reference, INTERFACE_CLASS, environment);
         Assertions.assertEquals("ServiceBean:org.apache.dubbo.config.spring.api.DemoService:1.0.0:DUBBO",
@@ -73,7 +73,7 @@ public class ServiceBeanNameBuilderTest {
     }
 
     @Test
-    public void testServiceNameBuild() {
+    void testServiceNameBuild() {
         ServiceBeanNameBuilder vBuilder = ServiceBeanNameBuilder.create(INTERFACE_CLASS, environment);
         String vBeanName = vBuilder.version("DUBBO").build();
 
@@ -82,4 +82,4 @@ public class ServiceBeanNameBuilderTest {
 
         Assertions.assertNotEquals(vBeanName, gBeanName);
     }
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/beans/factory/config/DubboConfigDefaultPropertyValueBeanPostProcessorTest.java b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/beans/factory/config/DubboConfigDefaultPropertyValueBeanPostProcessorTest.java
index d8299e0482..cdd05ff839 100644
--- a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/beans/factory/config/DubboConfigDefaultPropertyValueBeanPostProcessorTest.java
+++ b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/beans/factory/config/DubboConfigDefaultPropertyValueBeanPostProcessorTest.java
@@ -19,15 +19,16 @@ package org.apache.dubbo.config.spring.beans.factory.config;
 import org.apache.dubbo.config.ApplicationConfig;
 import org.apache.dubbo.config.ProtocolConfig;
 import org.apache.dubbo.config.spring.context.annotation.provider.ProviderConfiguration;
+
 import org.junit.jupiter.api.Assertions;
 import org.junit.jupiter.api.Test;
 import org.springframework.context.annotation.AnnotationConfigApplicationContext;
 
 
-public class DubboConfigDefaultPropertyValueBeanPostProcessorTest {
+class DubboConfigDefaultPropertyValueBeanPostProcessorTest {
 
     @Test
-    public void test() {
+    void test() {
         AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(ProviderConfiguration.class);
         try {
             context.start();
diff --git a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/beans/factory/config/MultipleServicesWithMethodConfigsTest.java b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/beans/factory/config/MultipleServicesWithMethodConfigsTest.java
index 625337168f..b9caff8a84 100644
--- a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/beans/factory/config/MultipleServicesWithMethodConfigsTest.java
+++ b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/beans/factory/config/MultipleServicesWithMethodConfigsTest.java
@@ -38,7 +38,7 @@ import static org.springframework.test.annotation.DirtiesContext.ClassMode.AFTER
 @ContextConfiguration(classes = MultipleServicesWithMethodConfigsTest.class)
 @DirtiesContext(classMode = AFTER_EACH_TEST_METHOD)
 @ImportResource(locations = "classpath:/META-INF/spring/multiple-services-with-methods.xml")
-public class MultipleServicesWithMethodConfigsTest {
+class MultipleServicesWithMethodConfigsTest {
 
     @BeforeAll
     public static void setUp() {
@@ -49,7 +49,7 @@ public class MultipleServicesWithMethodConfigsTest {
     private ApplicationContext applicationContext;
 
     @Test
-    public void test() {
+    void test() {
 
         Map<String, ServiceBean> serviceBeanMap = applicationContext.getBeansOfType(ServiceBean.class);
         for (ServiceBean serviceBean : serviceBeanMap.values()) {
@@ -58,4 +58,3 @@ public class MultipleServicesWithMethodConfigsTest {
     }
 }
 
-
diff --git a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/beans/factory/config/YamlPropertySourceFactoryTest.java b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/beans/factory/config/YamlPropertySourceFactoryTest.java
index faf98ae86e..a0f6b9eace 100644
--- a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/beans/factory/config/YamlPropertySourceFactoryTest.java
+++ b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/beans/factory/config/YamlPropertySourceFactoryTest.java
@@ -40,7 +40,7 @@ import static org.springframework.test.annotation.DirtiesContext.ClassMode.AFTER
 @Configuration
 @ContextConfiguration(classes = YamlPropertySourceFactoryTest.class)
 @DirtiesContext(classMode = AFTER_EACH_TEST_METHOD)
-public class YamlPropertySourceFactoryTest {
+class YamlPropertySourceFactoryTest {
 
     @Autowired
     private Environment environment;
@@ -64,7 +64,7 @@ public class YamlPropertySourceFactoryTest {
     private Integer queues;
 
     @Test
-    public void testProperty() {
+    void testProperty() {
         Assertions.assertEquals(isDefault, environment.getProperty("dubbo.consumer.default", Boolean.class));
         Assertions.assertEquals(client, environment.getProperty("dubbo.consumer.client", String.class));
         Assertions.assertEquals(threadPool, environment.getProperty("dubbo.consumer.threadpool", String.class));
@@ -72,4 +72,4 @@ public class YamlPropertySourceFactoryTest {
         Assertions.assertEquals(threads, environment.getProperty("dubbo.consumer.threads", Integer.class));
         Assertions.assertEquals(queues, environment.getProperty("dubbo.consumer.queues", Integer.class));
     }
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/boot/conditional1/XmlReferenceBeanConditionalTest.java b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/boot/conditional1/XmlReferenceBeanConditionalTest.java
index c18b64f7f8..468d1e0fd5 100644
--- a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/boot/conditional1/XmlReferenceBeanConditionalTest.java
+++ b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/boot/conditional1/XmlReferenceBeanConditionalTest.java
@@ -47,7 +47,7 @@ import java.util.Map;
 )
 @Configuration
 //@ComponentScan
-public class XmlReferenceBeanConditionalTest {
+class XmlReferenceBeanConditionalTest {
 
     @BeforeAll
     public static void beforeAll(){
@@ -66,7 +66,7 @@ public class XmlReferenceBeanConditionalTest {
     private ApplicationContext applicationContext;
 
     @Test
-    public void testConsumer() {
+    void testConsumer() {
 
         Map<String, HelloService> helloServiceMap = applicationContext.getBeansOfType(HelloService.class);
         Assertions.assertEquals(1, helloServiceMap.size());
@@ -97,4 +97,4 @@ public class XmlReferenceBeanConditionalTest {
             };
         }
     }
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/boot/conditional2/JavaConfigAnnotationReferenceBeanConditionalTest.java b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/boot/conditional2/JavaConfigAnnotationReferenceBeanConditionalTest.java
index ec4c71cc48..04adaba2dc 100644
--- a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/boot/conditional2/JavaConfigAnnotationReferenceBeanConditionalTest.java
+++ b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/boot/conditional2/JavaConfigAnnotationReferenceBeanConditionalTest.java
@@ -53,7 +53,7 @@ import java.util.Map;
 @Configuration
 //@ComponentScan
 @EnableDubbo
-public class JavaConfigAnnotationReferenceBeanConditionalTest {
+class JavaConfigAnnotationReferenceBeanConditionalTest {
 
     @BeforeAll
     public static void beforeAll(){
@@ -72,7 +72,7 @@ public class JavaConfigAnnotationReferenceBeanConditionalTest {
     private ApplicationContext applicationContext;
 
     @Test
-    public void testConsumer() {
+    void testConsumer() {
 
         Map<String, HelloService> helloServiceMap = applicationContext.getBeansOfType(HelloService.class);
         Assertions.assertEquals(1, helloServiceMap.size());
@@ -105,4 +105,4 @@ public class JavaConfigAnnotationReferenceBeanConditionalTest {
         }
     }
 
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/boot/conditional3/JavaConfigRawReferenceBeanConditionalTest.java b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/boot/conditional3/JavaConfigRawReferenceBeanConditionalTest.java
index ba5fa3ca70..d3fa5204e7 100644
--- a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/boot/conditional3/JavaConfigRawReferenceBeanConditionalTest.java
+++ b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/boot/conditional3/JavaConfigRawReferenceBeanConditionalTest.java
@@ -53,7 +53,7 @@ import java.util.Map;
 @Configuration
 //@ComponentScan
 @EnableDubbo
-public class JavaConfigRawReferenceBeanConditionalTest {
+class JavaConfigRawReferenceBeanConditionalTest {
 
     @BeforeAll
     public static void beforeAll(){
@@ -72,7 +72,7 @@ public class JavaConfigRawReferenceBeanConditionalTest {
     private ApplicationContext applicationContext;
 
     @Test
-    public void testConsumer() {
+    void testConsumer() {
 
         Map<String, HelloService> helloServiceMap = applicationContext.getBeansOfType(HelloService.class);
         Assertions.assertEquals(1, helloServiceMap.size());
@@ -107,4 +107,4 @@ public class JavaConfigRawReferenceBeanConditionalTest {
         }
     }
 
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/boot/configprops/SpringBootConfigPropsTest.java b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/boot/configprops/SpringBootConfigPropsTest.java
index 4d2b8e303b..696aaae351 100644
--- a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/boot/configprops/SpringBootConfigPropsTest.java
+++ b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/boot/configprops/SpringBootConfigPropsTest.java
@@ -78,7 +78,7 @@ import static org.apache.dubbo.common.constants.MetricsConstants.PROTOCOL_PROMET
 @Configuration
 @ComponentScan
 @EnableDubbo
-public class SpringBootConfigPropsTest {
+class SpringBootConfigPropsTest {
 
     @BeforeAll
     public static void beforeAll() {
@@ -97,7 +97,7 @@ public class SpringBootConfigPropsTest {
     private ModuleModel moduleModel;
 
     @Test
-    public void testConfigProps() {
+    void testConfigProps() {
 
         ApplicationConfig applicationConfig = configManager.getApplicationOrElseThrow();
         Assertions.assertEquals("dubbo-demo-application", applicationConfig.getName());
@@ -152,4 +152,4 @@ public class SpringBootConfigPropsTest {
 
     }
 
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/boot/configprops/SpringBootMultipleConfigPropsTest.java b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/boot/configprops/SpringBootMultipleConfigPropsTest.java
index 1bf1a653b7..9bb31c119c 100644
--- a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/boot/configprops/SpringBootMultipleConfigPropsTest.java
+++ b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/boot/configprops/SpringBootMultipleConfigPropsTest.java
@@ -78,7 +78,7 @@ import static org.apache.dubbo.common.constants.MetricsConstants.PROTOCOL_PROMET
 @Configuration
 @ComponentScan
 @EnableDubbo
-public class SpringBootMultipleConfigPropsTest {
+class SpringBootMultipleConfigPropsTest {
 
     @BeforeAll
     public static void beforeAll() {
@@ -97,7 +97,7 @@ public class SpringBootMultipleConfigPropsTest {
     private ModuleModel moduleModel;
 
     @Test
-    public void testConfigProps() {
+    void testConfigProps() {
 
         ApplicationConfig applicationConfig = configManager.getApplicationOrElseThrow();
         Assertions.assertEquals("dubbo-demo-application", applicationConfig.getName());
@@ -154,4 +154,4 @@ public class SpringBootMultipleConfigPropsTest {
 
     }
 
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/boot/importxml/SpringBootImportDubboXmlTest.java b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/boot/importxml/SpringBootImportDubboXmlTest.java
index 39759783b9..d116d82f45 100644
--- a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/boot/importxml/SpringBootImportDubboXmlTest.java
+++ b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/boot/importxml/SpringBootImportDubboXmlTest.java
@@ -41,7 +41,7 @@ import org.springframework.context.annotation.ImportResource;
 @Configuration
 @ComponentScan
 @ImportResource("classpath:/org/apache/dubbo/config/spring/boot/importxml/consumer/dubbo-consumer.xml")
-public class SpringBootImportDubboXmlTest {
+class SpringBootImportDubboXmlTest {
 
     @BeforeAll
     public static void beforeAll(){
@@ -57,7 +57,7 @@ public class SpringBootImportDubboXmlTest {
     private HelloService helloService;
 
     @Test
-    public void testConsumer() {
+    void testConsumer() {
         try {
             helloService.sayHello("dubbo");
             Assertions.fail("Should not be called successfully");
@@ -68,4 +68,4 @@ public class SpringBootImportDubboXmlTest {
         }
     }
 
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/boot/importxml2/SpringBootImportAndScanTest.java b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/boot/importxml2/SpringBootImportAndScanTest.java
index a13c44b9c3..4e5f5bec5e 100644
--- a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/boot/importxml2/SpringBootImportAndScanTest.java
+++ b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/boot/importxml2/SpringBootImportAndScanTest.java
@@ -49,7 +49,7 @@ import java.util.Map;
 @ComponentScan
 @DubboComponentScan
 @ImportResource("classpath:/org/apache/dubbo/config/spring/boot/importxml2/dubbo-provider.xml")
-public class SpringBootImportAndScanTest implements ApplicationContextAware {
+class SpringBootImportAndScanTest implements ApplicationContextAware {
 
     private ApplicationContext applicationContext;
 
@@ -67,7 +67,7 @@ public class SpringBootImportAndScanTest implements ApplicationContextAware {
     private HelloService helloService;
 
     @Test
-    public void testProvider() {
+    void testProvider() {
 
         String result = helloService.sayHello("dubbo");
         Assertions.assertEquals("Hello, dubbo", result);
@@ -95,4 +95,4 @@ public class SpringBootImportAndScanTest implements ApplicationContextAware {
 
     }
 
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/context/KeepRunningOnSpringClosedTest.java b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/context/KeepRunningOnSpringClosedTest.java
index 4cc6908f5e..f09fa55082 100644
--- a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/context/KeepRunningOnSpringClosedTest.java
+++ b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/context/KeepRunningOnSpringClosedTest.java
@@ -28,10 +28,10 @@ import org.junit.jupiter.api.Assertions;
 import org.junit.jupiter.api.Test;
 import org.springframework.context.support.ClassPathXmlApplicationContext;
 
-public class KeepRunningOnSpringClosedTest {
+class KeepRunningOnSpringClosedTest {
 
     @Test
-    public void test(){
+    void test(){
 
         // set KeepRunningOnSpringClosed flag for next spring context
         DubboSpringInitCustomizerHolder.get().addCustomizer(context-> {
@@ -78,4 +78,4 @@ public class KeepRunningOnSpringClosedTest {
             }
         }
     }
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/context/annotation/DubboComponentScanRegistrarTest.java b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/context/annotation/DubboComponentScanRegistrarTest.java
index a12c1bb138..e165f933db 100644
--- a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/context/annotation/DubboComponentScanRegistrarTest.java
+++ b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/context/annotation/DubboComponentScanRegistrarTest.java
@@ -37,7 +37,7 @@ import static org.springframework.core.annotation.AnnotationUtils.findAnnotation
  *
  * @since 2.5.8
  */
-public class DubboComponentScanRegistrarTest {
+class DubboComponentScanRegistrarTest {
 
     @BeforeEach
     public void setUp() {
@@ -49,7 +49,7 @@ public class DubboComponentScanRegistrarTest {
     }
 
     @Test
-    public void test() {
+    void test() {
 
         AnnotationConfigApplicationContext providerContext = new AnnotationConfigApplicationContext();
 
@@ -126,4 +126,4 @@ public class DubboComponentScanRegistrarTest {
     }
 
 
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/context/annotation/DubboConfigConfigurationTest.java b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/context/annotation/DubboConfigConfigurationTest.java
index 17a27f4a78..f4b705315e 100644
--- a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/context/annotation/DubboConfigConfigurationTest.java
+++ b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/context/annotation/DubboConfigConfigurationTest.java
@@ -36,7 +36,7 @@ import java.io.IOException;
  *
  * @since 2.5.8
  */
-public class DubboConfigConfigurationTest {
+class DubboConfigConfigurationTest {
 
     private AnnotationConfigApplicationContext context;
 
@@ -56,7 +56,7 @@ public class DubboConfigConfigurationTest {
     }
 
     @Test
-    public void testSingle() throws IOException {
+    void testSingle() throws IOException {
 
         context.register(DubboConfigConfiguration.Single.class);
         context.refresh();
@@ -80,7 +80,7 @@ public class DubboConfigConfigurationTest {
     }
 
     @Test
-    public void testMultiple() {
+    void testMultiple() {
         context.register(DubboConfigConfiguration.Multiple.class);
         context.refresh();
 
@@ -91,4 +91,4 @@ public class DubboConfigConfigurationTest {
         Assertions.assertEquals(2182, registry2.getPort());
     }
 
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/context/annotation/EnableDubboConfigTest.java b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/context/annotation/EnableDubboConfigTest.java
index 122a713a9e..803241d535 100644
--- a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/context/annotation/EnableDubboConfigTest.java
+++ b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/context/annotation/EnableDubboConfigTest.java
@@ -44,7 +44,7 @@ import static org.junit.jupiter.api.Assertions.assertFalse;
  *
  * @since 2.5.8
  */
-public class EnableDubboConfigTest {
+class EnableDubboConfigTest {
 
     @BeforeEach
     public void setUp() {
@@ -137,4 +137,4 @@ public class EnableDubboConfigTest {
     private static class TestConfig {
 
     }
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/context/annotation/EnableDubboTest.java b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/context/annotation/EnableDubboTest.java
index 75ff827a66..74898c719c 100644
--- a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/context/annotation/EnableDubboTest.java
+++ b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/context/annotation/EnableDubboTest.java
@@ -48,7 +48,7 @@ import static org.springframework.core.annotation.AnnotationUtils.findAnnotation
  *
  * @since 2.5.8
  */
-public class EnableDubboTest {
+class EnableDubboTest {
 
     private AnnotationConfigApplicationContext context;
 
@@ -65,7 +65,7 @@ public class EnableDubboTest {
     }
 
     @Test
-    public void testProvider() {
+    void testProvider() {
 
         context.register(TestProviderConfiguration.class);
 
@@ -88,7 +88,7 @@ public class EnableDubboTest {
     }
 
     @Test
-    public void testConsumer() {
+    void testConsumer() {
 
         context.register(TestProviderConfiguration.class, TestConsumerConfiguration.class);
         context.refresh();
@@ -176,4 +176,4 @@ public class EnableDubboTest {
     }
 
 
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/context/customize/DubboSpringInitCustomizerTest.java b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/context/customize/DubboSpringInitCustomizerTest.java
index f8b98bc2fe..ed2178bde6 100644
--- a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/context/customize/DubboSpringInitCustomizerTest.java
+++ b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/context/customize/DubboSpringInitCustomizerTest.java
@@ -32,7 +32,7 @@ import org.junit.jupiter.api.BeforeAll;
 import org.junit.jupiter.api.Test;
 import org.springframework.context.support.ClassPathXmlApplicationContext;
 
-public class DubboSpringInitCustomizerTest {
+class DubboSpringInitCustomizerTest {
 
     @BeforeAll
     public static void beforeAll() {
@@ -48,7 +48,7 @@ public class DubboSpringInitCustomizerTest {
     }
 
     @Test
-    public void testReloadSpringContext() {
+    void testReloadSpringContext() {
 
         ClassPathXmlApplicationContext providerContext1 = null;
         ClassPathXmlApplicationContext providerContext2 = null;
@@ -105,4 +105,4 @@ public class DubboSpringInitCustomizerTest {
     }
 
 
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/context/properties/DefaultDubboConfigBinderTest.java b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/context/properties/DefaultDubboConfigBinderTest.java
index ea42e1fd44..73240d56f9 100644
--- a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/context/properties/DefaultDubboConfigBinderTest.java
+++ b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/context/properties/DefaultDubboConfigBinderTest.java
@@ -38,7 +38,7 @@ import static org.springframework.test.annotation.DirtiesContext.ClassMode.AFTER
 @TestPropertySource(locations = "classpath:/dubbo-binder.properties")
 @ContextConfiguration(classes = DefaultDubboConfigBinder.class)
 @DirtiesContext(classMode = AFTER_EACH_TEST_METHOD)
-public class DefaultDubboConfigBinderTest {
+class DefaultDubboConfigBinderTest {
 
     @BeforeAll
     public static void setUp() {
@@ -49,7 +49,7 @@ public class DefaultDubboConfigBinderTest {
     private DubboConfigBinder dubboConfigBinder;
 
     @Test
-    public void testBinder() {
+    void testBinder() {
 
         ApplicationConfig applicationConfig = new ApplicationConfig();
         dubboConfigBinder.bind("dubbo.application", applicationConfig);
@@ -65,4 +65,4 @@ public class DefaultDubboConfigBinderTest {
         Assertions.assertEquals(Integer.valueOf(20881), protocolConfig.getPort());
 
     }
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/extension/SpringExtensionInjectorTest.java b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/extension/SpringExtensionInjectorTest.java
index 15bd67039f..c27f07595c 100644
--- a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/extension/SpringExtensionInjectorTest.java
+++ b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/extension/SpringExtensionInjectorTest.java
@@ -36,7 +36,7 @@ import org.springframework.context.annotation.Configuration;
 
 @EnableDubbo(scanBasePackages = "")
 @Configuration
-public class SpringExtensionInjectorTest {
+class SpringExtensionInjectorTest {
 
     @BeforeEach
     public void init() {
@@ -48,7 +48,7 @@ public class SpringExtensionInjectorTest {
     }
 
     @Test
-    public void testSpringInjector() {
+    void testSpringInjector() {
         AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext();
         try {
             context.setDisplayName("Context1");
@@ -99,4 +99,4 @@ public class SpringExtensionInjectorTest {
     public ApplicationConfig applicationConfig() {
         return new ApplicationConfig("test-app");
     }
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/issues/issue6000/Issue6000Test.java b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/issues/issue6000/Issue6000Test.java
index 3be2329f5b..4031af29aa 100644
--- a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/issues/issue6000/Issue6000Test.java
+++ b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/issues/issue6000/Issue6000Test.java
@@ -37,7 +37,7 @@ import org.springframework.context.annotation.PropertySource;
 @EnableDubbo
 @ComponentScan
 @PropertySource("classpath:/META-INF/issues/issue6000/config.properties")
-public class Issue6000Test {
+class Issue6000Test {
 
     @BeforeAll
     public static void beforeAll() {
@@ -50,7 +50,7 @@ public class Issue6000Test {
     }
 
     @Test
-    public void test() throws Exception {
+    void test() throws Exception {
         AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(Issue6000Test.class);
         try {
 
@@ -67,4 +67,4 @@ public class Issue6000Test {
         }
     }
 
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/issues/issue6252/Issue6252Test.java b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/issues/issue6252/Issue6252Test.java
index 51b6f145f9..8b1c332c67 100644
--- a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/issues/issue6252/Issue6252Test.java
+++ b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/issues/issue6252/Issue6252Test.java
@@ -36,7 +36,7 @@ import org.springframework.context.annotation.PropertySource;
 @Configuration
 @EnableDubboConfig
 @PropertySource("classpath:/META-INF/issues/issue6252/config.properties")
-public class Issue6252Test {
+class Issue6252Test {
 
     @BeforeAll
     public static void beforeAll() {
@@ -52,7 +52,7 @@ public class Issue6252Test {
     private DemoService demoService;
 
     @Test
-    public void test() throws Exception {
+    void test() throws Exception {
         AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(Issue6252Test.class);
         try {
             DemoService demoService = context.getBean(DemoService.class);
@@ -61,4 +61,4 @@ public class Issue6252Test {
         }
     }
 
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/issues/issue7003/Issue7003Test.java b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/issues/issue7003/Issue7003Test.java
index 71edfbe6e3..c1e0ede149 100644
--- a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/issues/issue7003/Issue7003Test.java
+++ b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/issues/issue7003/Issue7003Test.java
@@ -46,7 +46,7 @@ import java.util.Map;
 @EnableDubbo
 @ComponentScan
 @PropertySource("classpath:/META-INF/issues/issue7003/config.properties")
-public class Issue7003Test {
+class Issue7003Test {
 
     @BeforeAll
     public static void beforeAll() {
@@ -59,7 +59,7 @@ public class Issue7003Test {
     }
 
     @Test
-    public void test() throws Exception {
+    void test() throws Exception {
         AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(Issue7003Test.class);
         try {
 
@@ -90,4 +90,4 @@ public class Issue7003Test {
         private HelloService helloService;
 
     }
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/issues/issue9172/MultipleConsumerAndProviderTest.java b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/issues/issue9172/MultipleConsumerAndProviderTest.java
index 4e196b2210..716ba61a81 100644
--- a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/issues/issue9172/MultipleConsumerAndProviderTest.java
+++ b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/issues/issue9172/MultipleConsumerAndProviderTest.java
@@ -37,10 +37,10 @@ import org.springframework.context.annotation.PropertySource;
 /**
  * Test for issue 9172
  */
-public class MultipleConsumerAndProviderTest {
+class MultipleConsumerAndProviderTest {
 
     @Test
-    public void test() {
+    void test() {
 
         AnnotationConfigApplicationContext providerContext = null;
         AnnotationConfigApplicationContext consumerContext = null;
@@ -103,4 +103,4 @@ public class MultipleConsumerAndProviderTest {
             return new DemoServiceImpl();
         }
     }
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/issues/issue9207/ConfigCenterBeanTest.java b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/issues/issue9207/ConfigCenterBeanTest.java
index 78b891fe08..7d086cd199 100644
--- a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/issues/issue9207/ConfigCenterBeanTest.java
+++ b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/issues/issue9207/ConfigCenterBeanTest.java
@@ -44,13 +44,13 @@ import java.util.Map;
 import java.util.Properties;
 import java.util.stream.Collectors;
 
-public class ConfigCenterBeanTest {
+class ConfigCenterBeanTest {
 
     private static final String DUBBO_PROPERTIES_FILE = "/META-INF/issues/issue9207/dubbo-properties-in-configcenter.properties";
     private static final String DUBBO_EXTERNAL_CONFIG_KEY = "my-dubbo.properties";
 
     @Test
-    public void testConfigCenterBeanFromProps() throws IOException {
+    void testConfigCenterBeanFromProps() throws IOException {
         SysProps.setProperty("dubbo.config-center.include-spring-env", "true");
         SysProps.setProperty("dubbo.config-center.config-file", DUBBO_EXTERNAL_CONFIG_KEY);
 
@@ -106,4 +106,4 @@ public class ConfigCenterBeanTest {
         String content = reader.lines().collect(Collectors.joining("\n"));
         return content;
     }
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/propertyconfigurer/consumer/PropertyConfigurerTest.java b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/propertyconfigurer/consumer/PropertyConfigurerTest.java
index a10435539b..77e757c84d 100644
--- a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/propertyconfigurer/consumer/PropertyConfigurerTest.java
+++ b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/propertyconfigurer/consumer/PropertyConfigurerTest.java
@@ -33,7 +33,7 @@ import org.springframework.context.support.ClassPathXmlApplicationContext;
 
 import java.net.InetSocketAddress;
 
-public class PropertyConfigurerTest {
+class PropertyConfigurerTest {
 
     @BeforeAll
     public static void beforeAll() {
@@ -46,7 +46,7 @@ public class PropertyConfigurerTest {
     }
 
     @Test
-    public void testEarlyInit() {
+    void testEarlyInit() {
 
         ClassPathXmlApplicationContext providerContext = new ClassPathXmlApplicationContext("org/apache/dubbo/config/spring/propertyconfigurer/provider/dubbo-provider.xml");
         try {
@@ -79,4 +79,4 @@ public class PropertyConfigurerTest {
             return new DemoBeanFactoryPostProcessor(service);
         }
     }
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/propertyconfigurer/consumer2/PropertySourcesConfigurerTest.java b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/propertyconfigurer/consumer2/PropertySourcesConfigurerTest.java
index 89e56a7d10..4dcb6b29b9 100644
--- a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/propertyconfigurer/consumer2/PropertySourcesConfigurerTest.java
+++ b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/propertyconfigurer/consumer2/PropertySourcesConfigurerTest.java
@@ -34,7 +34,7 @@ import org.springframework.context.support.ClassPathXmlApplicationContext;
 
 import java.net.InetSocketAddress;
 
-public class PropertySourcesConfigurerTest {
+class PropertySourcesConfigurerTest {
 
     @BeforeAll
     public static void beforeAll() {
@@ -47,7 +47,7 @@ public class PropertySourcesConfigurerTest {
     }
 
     @Test
-    public void testEarlyInit() {
+    void testEarlyInit() {
 
         ClassPathXmlApplicationContext providerContext = new ClassPathXmlApplicationContext("org/apache/dubbo/config/spring/propertyconfigurer/provider/dubbo-provider.xml");
         try {
@@ -81,4 +81,4 @@ public class PropertySourcesConfigurerTest {
             return new DemoBeanFactoryPostProcessor(service);
         }
     }
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/propertyconfigurer/consumer3/PropertySourcesInJavaConfigTest.java b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/propertyconfigurer/consumer3/PropertySourcesInJavaConfigTest.java
index 776d731661..b8128b3044 100644
--- a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/propertyconfigurer/consumer3/PropertySourcesInJavaConfigTest.java
+++ b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/propertyconfigurer/consumer3/PropertySourcesInJavaConfigTest.java
@@ -38,7 +38,7 @@ import org.springframework.core.io.ClassPathResource;
 import java.io.IOException;
 import java.net.InetSocketAddress;
 
-public class PropertySourcesInJavaConfigTest {
+class PropertySourcesInJavaConfigTest {
 
     private static final String SCAN_PACKAGE_NAME = "org.apache.dubbo.config.spring.propertyconfigurer.consumer3.notexist";
     private static final String PACKAGE_PATH = "/org/apache/dubbo/config/spring/propertyconfigurer/consumer3";
@@ -60,7 +60,7 @@ public class PropertySourcesInJavaConfigTest {
     }
 
     @Test
-    public void testImportPropertySource() {
+    void testImportPropertySource() {
 
         ClassPathXmlApplicationContext providerContext = new ClassPathXmlApplicationContext(PROVIDER_CONFIG_PATH);
         try {
@@ -88,7 +88,7 @@ public class PropertySourcesInJavaConfigTest {
     }
 
     @Test
-    public void testCustomPropertySourceBean() {
+    void testCustomPropertySourceBean() {
 
         ClassPathXmlApplicationContext providerContext = new ClassPathXmlApplicationContext(PROVIDER_CONFIG_PATH);
         try {
@@ -149,4 +149,4 @@ public class PropertySourcesInJavaConfigTest {
             return propertyValue;
         }
     }
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/reference/DubboConfigBeanInitializerTest.java b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/reference/DubboConfigBeanInitializerTest.java
index 16617a49dd..9afc815496 100644
--- a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/reference/DubboConfigBeanInitializerTest.java
+++ b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/reference/DubboConfigBeanInitializerTest.java
@@ -58,7 +58,7 @@ import java.util.List;
 })
 @EnableAspectJAutoProxy(proxyTargetClass = true, exposeProxy = true)
 @DirtiesContext(classMode = DirtiesContext.ClassMode.AFTER_EACH_TEST_METHOD)
-public class DubboConfigBeanInitializerTest {
+class DubboConfigBeanInitializerTest {
 
     @BeforeAll
     public static void beforeAll() {
@@ -78,7 +78,7 @@ public class DubboConfigBeanInitializerTest {
     private ApplicationContext applicationContext;
 
     @Test
-    public void test() {
+    void test() {
         Assertions.assertNotNull(fooService, "fooService is null");
         Assertions.assertNotNull(fooService.helloService, "ooService.helloService is null");
 
@@ -123,4 +123,4 @@ public class DubboConfigBeanInitializerTest {
         @Autowired
         private HelloService helloService;
     }
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/reference/ReferenceKeyTest.java b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/reference/ReferenceKeyTest.java
index 398ac4e204..b187b195b6 100644
--- a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/reference/ReferenceKeyTest.java
+++ b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/reference/ReferenceKeyTest.java
@@ -44,7 +44,7 @@ import java.io.StringWriter;
 import java.lang.reflect.Field;
 import java.util.Map;
 
-public class ReferenceKeyTest {
+class ReferenceKeyTest {
 
     @BeforeEach
     protected void setUp() {
@@ -52,7 +52,7 @@ public class ReferenceKeyTest {
     }
 
     @Test
-    public void testReferenceKey() throws Exception {
+    void testReferenceKey() throws Exception {
 
         String helloService1 = getReferenceKey("helloService");
         String helloService2 = getReferenceKey("helloService2");
@@ -98,7 +98,7 @@ public class ReferenceKeyTest {
 
 
     @Test
-    public void testConfig() {
+    void testConfig() {
 
         AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(ConsumerConfiguration.class);
         context.start();
@@ -127,7 +127,7 @@ public class ReferenceKeyTest {
     }
 
     @Test
-    public void testConfig3() {
+    void testConfig3() {
         AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(ConsumerConfiguration3.class);
         context.start();
         Map<String, ReferenceBean> referenceBeanMap = context.getBeansOfType(ReferenceBean.class);
@@ -139,7 +139,7 @@ public class ReferenceKeyTest {
     }
 
     @Test
-    public void testConfig4() {
+    void testConfig4() {
         AnnotationConfigApplicationContext context = null;
         try {
             context = new AnnotationConfigApplicationContext(ConsumerConfiguration4.class);
@@ -157,7 +157,7 @@ public class ReferenceKeyTest {
     }
 
     @Test
-    public void testConfig5() {
+    void testConfig5() {
         try {
             AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(ConsumerConfiguration5.class);
             context.start();
@@ -169,7 +169,7 @@ public class ReferenceKeyTest {
     }
 
     @Test
-    public void testConfig6() {
+    void testConfig6() {
         try {
             AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(ConsumerConfiguration6.class);
             context.start();
@@ -318,4 +318,4 @@ public class ReferenceKeyTest {
 //        private HelloService helloService;
     }
 
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/reference/javaconfig/JavaConfigReferenceBeanTest.java b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/reference/javaconfig/JavaConfigReferenceBeanTest.java
index 474fad6590..af379ca7fe 100644
--- a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/reference/javaconfig/JavaConfigReferenceBeanTest.java
+++ b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/reference/javaconfig/JavaConfigReferenceBeanTest.java
@@ -45,7 +45,7 @@ import java.util.Arrays;
 import java.util.List;
 import java.util.Map;
 
-public class JavaConfigReferenceBeanTest {
+class JavaConfigReferenceBeanTest {
 
     @BeforeEach
     public void setUp() {
@@ -58,7 +58,7 @@ public class JavaConfigReferenceBeanTest {
     }
 
     @Test
-    public void testAnnotationAtField() {
+    void testAnnotationAtField() {
         AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(CommonConfig.class,
             AnnotationAtFieldConfiguration.class);
 
@@ -104,7 +104,7 @@ public class JavaConfigReferenceBeanTest {
     }
 
     @Test
-    public void testAnnotationBean() {
+    void testAnnotationBean() {
         AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(CommonConfig.class,
                 AnnotationBeanConfiguration.class);
 
@@ -126,7 +126,7 @@ public class JavaConfigReferenceBeanTest {
     }
 
     @Test
-    public void testGenericServiceAnnotationBean() {
+    void testGenericServiceAnnotationBean() {
         AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(CommonConfig.class,
             GenericServiceAnnotationBeanConfiguration.class);
 
@@ -163,7 +163,7 @@ public class JavaConfigReferenceBeanTest {
     }
 
     @Test
-    public void testReferenceBean() {
+    void testReferenceBean() {
         AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(CommonConfig.class,
                 ReferenceBeanConfiguration.class);
 
@@ -188,7 +188,7 @@ public class JavaConfigReferenceBeanTest {
     }
 
     @Test
-    public void testGenericServiceReferenceBean() {
+    void testGenericServiceReferenceBean() {
         AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(CommonConfig.class,
             GenericServiceReferenceBeanConfiguration.class);
 
@@ -215,7 +215,7 @@ public class JavaConfigReferenceBeanTest {
     }
 
     @Test
-    public void testRawReferenceBean() {
+    void testRawReferenceBean() {
         AnnotationConfigApplicationContext context = null;
         try {
             context = new AnnotationConfigApplicationContext(CommonConfig.class, ReferenceBeanWithoutGenericTypeConfiguration.class);
@@ -234,7 +234,7 @@ public class JavaConfigReferenceBeanTest {
     }
 
     @Test
-    public void testInconsistentBean() {
+    void testInconsistentBean() {
         AnnotationConfigApplicationContext context = null;
         try {
             context = new AnnotationConfigApplicationContext(CommonConfig.class, InconsistentBeanConfiguration.class);
@@ -252,7 +252,7 @@ public class JavaConfigReferenceBeanTest {
     }
 
     @Test
-    public void testMissingGenericTypeBean() {
+    void testMissingGenericTypeBean() {
         AnnotationConfigApplicationContext context = null;
         try {
             context = new AnnotationConfigApplicationContext(CommonConfig.class, MissingGenericTypeAnnotationBeanConfiguration.class);
@@ -269,7 +269,7 @@ public class JavaConfigReferenceBeanTest {
     }
 
     @Test
-    public void testMissingInterfaceTypeBean() {
+    void testMissingInterfaceTypeBean() {
         AnnotationConfigApplicationContext context = null;
         try {
             context = new AnnotationConfigApplicationContext(CommonConfig.class, MissingInterfaceTypeAnnotationBeanConfiguration.class);
@@ -435,4 +435,4 @@ public class JavaConfigReferenceBeanTest {
         }
     }
 
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/reference/localcall/LocalCallTest.java b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/reference/localcall/LocalCallTest.java
index eb5a8e5690..235e432ef6 100644
--- a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/reference/localcall/LocalCallTest.java
+++ b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/reference/localcall/LocalCallTest.java
@@ -37,7 +37,7 @@ import static org.springframework.test.annotation.DirtiesContext.ClassMode.AFTER
 @ContextConfiguration(locations = {"classpath:/org/apache/dubbo/config/spring/reference/localcall/local-call-provider.xml",
         "classpath:/org/apache/dubbo/config/spring/reference/localcall/local-call-consumer.xml"})
 @DirtiesContext(classMode = AFTER_EACH_TEST_METHOD)
-public class LocalCallTest {
+class LocalCallTest {
 
     @BeforeAll
     public static void beforeAll() {
@@ -57,7 +57,7 @@ public class LocalCallTest {
     private HelloService localHelloService;
 
     @Test
-    public void testLocalCall() {
+    void testLocalCall() {
         // see also: org.apache.dubbo.rpc.protocol.injvm.InjvmInvoker.doInvoke
         // InjvmInvoker set remote address to 127.0.0.1:0
         String result = helloService.sayHello("world");
@@ -68,4 +68,4 @@ public class LocalCallTest {
         Assertions.assertEquals("Hello world, response from provider: null", originResult);
     }
 
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/reference/localcalla/LocalCallReferenceAnnotationTest.java b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/reference/localcalla/LocalCallReferenceAnnotationTest.java
index a4e9466b98..9c3edd00fe 100644
--- a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/reference/localcalla/LocalCallReferenceAnnotationTest.java
+++ b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/reference/localcalla/LocalCallReferenceAnnotationTest.java
@@ -45,7 +45,7 @@ import static org.springframework.test.annotation.DirtiesContext.ClassMode.AFTER
 @PropertySource("classpath:/org/apache/dubbo/config/spring/reference/localcalla/local-call-config.properties")
 @ContextConfiguration(classes = {LocalCallReferenceAnnotationTest.class, LocalCallReferenceAnnotationTest.LocalCallConfiguration.class})
 @DirtiesContext(classMode = AFTER_EACH_TEST_METHOD)
-public class LocalCallReferenceAnnotationTest {
+class LocalCallReferenceAnnotationTest {
 
     @BeforeAll
     public static void setUp() {
@@ -64,7 +64,7 @@ public class LocalCallReferenceAnnotationTest {
     private ApplicationContext applicationContext;
 
     @Test
-    public void testLocalCall() {
+    void testLocalCall() {
         // see also: org.apache.dubbo.rpc.protocol.injvm.InjvmInvoker.doInvoke
         // InjvmInvoker set remote address to 127.0.0.1:0
         String result = helloService.sayHello("world");
@@ -84,4 +84,4 @@ public class LocalCallReferenceAnnotationTest {
             return "Hello " + name + ", response from provider: " + RpcContext.getContext().getLocalAddress();
         }
     }
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/reference/localcallam/LocalCallMultipleReferenceAnnotationsTest.java b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/reference/localcallam/LocalCallMultipleReferenceAnnotationsTest.java
index 718b7514e2..f579e00076 100644
--- a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/reference/localcallam/LocalCallMultipleReferenceAnnotationsTest.java
+++ b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/reference/localcallam/LocalCallMultipleReferenceAnnotationsTest.java
@@ -46,7 +46,7 @@ import static org.springframework.test.annotation.DirtiesContext.ClassMode.AFTER
 @PropertySource("classpath:/org/apache/dubbo/config/spring/reference/localcallam/local-call-config.properties")
 @ContextConfiguration(classes = {LocalCallMultipleReferenceAnnotationsTest.class, LocalCallMultipleReferenceAnnotationsTest.LocalCallConfiguration.class})
 @DirtiesContext(classMode = AFTER_EACH_TEST_METHOD)
-public class LocalCallMultipleReferenceAnnotationsTest {
+class LocalCallMultipleReferenceAnnotationsTest {
 
     @BeforeAll
     public static void setUp() {
@@ -63,7 +63,7 @@ public class LocalCallMultipleReferenceAnnotationsTest {
     private ApplicationContext applicationContext;
 
     @Test
-    public void testLocalCall() {
+    void testLocalCall() {
         // see also: org.apache.dubbo.rpc.protocol.injvm.InjvmInvoker.doInvoke
         // InjvmInvoker set remote address to 127.0.0.1:0
         String result = helloService.sayHello("world");
@@ -131,4 +131,4 @@ public class LocalCallMultipleReferenceAnnotationsTest {
             return "Hello " + name + ", response from provider: " + RpcContext.getContext().getLocalAddress();
         }
     }
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/reference/localcallmix/LocalCallReferenceMixTest.java b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/reference/localcallmix/LocalCallReferenceMixTest.java
index be3b274ac4..e05ef64b99 100644
--- a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/reference/localcallmix/LocalCallReferenceMixTest.java
+++ b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/reference/localcallmix/LocalCallReferenceMixTest.java
@@ -47,7 +47,7 @@ import static org.springframework.test.annotation.DirtiesContext.ClassMode.AFTER
 @ContextConfiguration(classes = {LocalCallReferenceMixTest.class, LocalCallReferenceMixTest.LocalCallConfiguration.class})
 @DirtiesContext(classMode = AFTER_EACH_TEST_METHOD)
 @ImportResource("classpath:/org/apache/dubbo/config/spring/reference/localcallmix/local-call-consumer.xml")
-public class LocalCallReferenceMixTest {
+class LocalCallReferenceMixTest {
 
     @BeforeAll
     public static void setUp() {
@@ -66,7 +66,7 @@ public class LocalCallReferenceMixTest {
     private ApplicationContext applicationContext;
 
     @Test
-    public void testLocalCall() {
+    void testLocalCall() {
         // see also: org.apache.dubbo.rpc.protocol.injvm.InjvmInvoker.doInvoke
         // InjvmInvoker set remote address to 127.0.0.1:0
         String result = helloService.sayHello("world");
@@ -86,4 +86,4 @@ public class LocalCallReferenceMixTest {
             return "Hello " + name + ", response from provider: " + RpcContext.getContext().getLocalAddress();
         }
     }
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/registry/nacos/nacos/NacosServiceNameTest.java b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/registry/nacos/nacos/NacosServiceNameTest.java
index 0ea50e6af0..58714a50e8 100644
--- a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/registry/nacos/nacos/NacosServiceNameTest.java
+++ b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/registry/nacos/nacos/NacosServiceNameTest.java
@@ -32,7 +32,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
  *
  * @since 2.7.3
  */
-public class NacosServiceNameTest {
+class NacosServiceNameTest {
 
     private static final String category = DEFAULT_CATEGORY;
 
@@ -53,7 +53,7 @@ public class NacosServiceNameTest {
     }
 
     @Test
-    public void testGetter() {
+    void testGetter() {
         assertEquals(category, name.getCategory());
         assertEquals(serviceInterface, name.getServiceInterface());
         assertEquals(version, name.getVersion());
@@ -62,12 +62,12 @@ public class NacosServiceNameTest {
     }
 
     @Test
-    public void testToString() {
+    void testToString() {
         assertEquals("providers:org.apache.dubbo.registry.nacos.NacosServiceName:1.0.0:default", name.toString());
     }
 
     @Test
-    public void testIsConcrete() {
+    void testIsConcrete() {
 
         assertTrue(name.isConcrete());
 
@@ -86,7 +86,7 @@ public class NacosServiceNameTest {
     }
 
     @Test
-    public void testIsCompatible() {
+    void testIsCompatible() {
 
         NacosServiceName concrete = new NacosServiceName();
 
@@ -122,4 +122,4 @@ public class NacosServiceNameTest {
         name.setVersion(version + ",2.0.0");
         assertTrue(name.isCompatible(concrete));
     }
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/schema/DubboNamespaceHandlerTest.java b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/schema/DubboNamespaceHandlerTest.java
index 69bb8d7c5c..fdd8795028 100644
--- a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/schema/DubboNamespaceHandlerTest.java
+++ b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/schema/DubboNamespaceHandlerTest.java
@@ -56,7 +56,7 @@ import static org.hamcrest.MatcherAssert.assertThat;
 import static org.junit.jupiter.api.Assertions.assertEquals;
 import static org.junit.jupiter.api.Assertions.assertNotNull;
 
-public class DubboNamespaceHandlerTest {
+class DubboNamespaceHandlerTest {
 
     private static String resourcePath = ConfigTest.class.getPackage().getName().replace('.', '/');
 
@@ -78,7 +78,7 @@ public class DubboNamespaceHandlerTest {
     }
 
     @Test
-    public void testProviderXmlOnConfigurationClass() {
+    void testProviderXmlOnConfigurationClass() {
         AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext();
         applicationContext.register(XmlConfiguration.class);
         applicationContext.refresh();
@@ -86,7 +86,7 @@ public class DubboNamespaceHandlerTest {
     }
 
     @Test
-    public void testProviderXml() {
+    void testProviderXml() {
         ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext(
                 resourcePath + "/demo-provider.xml",
                 resourcePath + "/demo-provider-properties.xml"
@@ -123,7 +123,7 @@ public class DubboNamespaceHandlerTest {
     }
 
     @Test
-    public void testMultiProtocol() {
+    void testMultiProtocol() {
         ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext(resourcePath + "/multi-protocol.xml");
         ctx.start();
 
@@ -142,7 +142,7 @@ public class DubboNamespaceHandlerTest {
     }
 
     @Test
-    public void testDefaultProtocol() {
+    void testDefaultProtocol() {
         ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext(resourcePath + "/override-protocol.xml");
         ctx.start();
 
@@ -152,7 +152,7 @@ public class DubboNamespaceHandlerTest {
     }
 
     @Test
-    public void testCustomParameter() {
+    void testCustomParameter() {
         ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext(resourcePath + "/customize-parameter.xml");
         ctx.start();
 
@@ -167,7 +167,7 @@ public class DubboNamespaceHandlerTest {
 
 
     @Test
-    public void testDelayFixedTime() {
+    void testDelayFixedTime() {
         ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("classpath:/" + resourcePath + "/delay-fixed-time.xml");
         ctx.start();
 
@@ -175,7 +175,7 @@ public class DubboNamespaceHandlerTest {
     }
 
     @Test
-    public void testTimeoutConfig() {
+    void testTimeoutConfig() {
         ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext(resourcePath + "/provider-nested-service.xml");
         ctx.start();
 
@@ -195,7 +195,7 @@ public class DubboNamespaceHandlerTest {
     }
 
     @Test
-    public void testMonitor() {
+    void testMonitor() {
         ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext(resourcePath + "/provider-with-monitor.xml");
         ctx.start();
 
@@ -219,7 +219,7 @@ public class DubboNamespaceHandlerTest {
 //    }
 
     @Test
-    public void testModuleInfo() {
+    void testModuleInfo() {
         ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext(resourcePath + "/provider-with-module.xml");
         ctx.start();
 
@@ -228,7 +228,7 @@ public class DubboNamespaceHandlerTest {
     }
 
     @Test
-    public void testNotificationWithWrongBean() {
+    void testNotificationWithWrongBean() {
         Assertions.assertThrows(BeanCreationException.class, () -> {
             ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext(resourcePath + "/consumer-notification.xml");
             ctx.start();
@@ -236,7 +236,7 @@ public class DubboNamespaceHandlerTest {
     }
 
     @Test
-    public void testProperty() {
+    void testProperty() {
         ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext(resourcePath + "/service-class.xml");
         ctx.start();
 
@@ -247,7 +247,7 @@ public class DubboNamespaceHandlerTest {
     }
 
     @Test
-    public void testMetricsAggregation() {
+    void testMetricsAggregation() {
         ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext(resourcePath + "/metrics-aggregation.xml");
         ctx.start();
 
@@ -266,7 +266,7 @@ public class DubboNamespaceHandlerTest {
     }
 
     @Test
-    public void testMetricsPrometheus() {
+    void testMetricsPrometheus() {
         ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext(resourcePath + "/metrics-prometheus.xml");
         ctx.start();
 
@@ -301,4 +301,4 @@ public class DubboNamespaceHandlerTest {
         assertEquals(metricsBean.getPrometheus().getPushgateway().getPassword(), "password");
         assertEquals(metricsBean.getPrometheus().getPushgateway().getJob(), "job");
     }
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/schema/GenericServiceTest.java b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/schema/GenericServiceTest.java
index 061130f43f..4103f9c569 100644
--- a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/schema/GenericServiceTest.java
+++ b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/schema/GenericServiceTest.java
@@ -42,7 +42,7 @@ import static org.springframework.test.annotation.DirtiesContext.ClassMode.AFTER
 @ContextConfiguration(classes = GenericServiceTest.class)
 @DirtiesContext(classMode = AFTER_EACH_TEST_METHOD)
 @ImportResource(locations = "classpath:/META-INF/spring/dubbo-generic-consumer.xml")
-public class GenericServiceTest {
+class GenericServiceTest {
 
     @BeforeAll
     public static void beforeAll() {
@@ -63,7 +63,7 @@ public class GenericServiceTest {
     private ServiceBean serviceBean;
 
     @Test
-    public void testGeneric() {
+    void testGeneric() {
         assertNotNull(demoServiceRef);
         assertNotNull(serviceBean);
 
@@ -76,4 +76,4 @@ public class GenericServiceTest {
         Assertions.assertEquals("Welcome dubbo", result);
 
     }
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/schema/GenericServiceWithoutInterfaceTest.java b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/schema/GenericServiceWithoutInterfaceTest.java
index e5a947f434..8fbb450817 100644
--- a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/schema/GenericServiceWithoutInterfaceTest.java
+++ b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/schema/GenericServiceWithoutInterfaceTest.java
@@ -39,7 +39,7 @@ import static org.springframework.test.annotation.DirtiesContext.ClassMode.AFTER
 @ContextConfiguration(classes = GenericServiceWithoutInterfaceTest.class)
 @DirtiesContext(classMode = AFTER_EACH_TEST_METHOD)
 @ImportResource(locations = "classpath:/META-INF/spring/dubbo-generic-consumer-without-interface.xml")
-public class GenericServiceWithoutInterfaceTest {
+class GenericServiceWithoutInterfaceTest {
 
     @BeforeAll
     public static void beforeAll() {
@@ -56,7 +56,7 @@ public class GenericServiceWithoutInterfaceTest {
     private GenericService genericServiceWithoutInterfaceRef;
 
     @Test
-    public void testGenericWithoutInterface() {
+    void testGenericWithoutInterface() {
 
         // Test generic service without interface class locally
         Object result = genericServiceWithoutInterfaceRef.$invoke("sayHello", new String[]{"java.lang.String"}, new Object[]{"generic"});
@@ -67,4 +67,4 @@ public class GenericServiceWithoutInterfaceTest {
         Assertions.assertEquals("org.apache.dubbo.config.spring.api.LocalMissClass", reference.getInterface());
         Assertions.assertThrows(ClassNotFoundException.class, () -> ClassUtils.forName(reference.getInterface()));
     }
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/status/DataSourceStatusCheckerTest.java b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/status/DataSourceStatusCheckerTest.java
index 1606258a8f..14d74f4113 100644
--- a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/status/DataSourceStatusCheckerTest.java
+++ b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/status/DataSourceStatusCheckerTest.java
@@ -41,7 +41,7 @@ import static org.mockito.BDDMockito.given;
 import static org.mockito.Mockito.mock;
 import static org.mockito.MockitoAnnotations.initMocks;
 
-public class DataSourceStatusCheckerTest {
+class DataSourceStatusCheckerTest {
     private DataSourceStatusChecker dataSourceStatusChecker;
 
     @Mock
@@ -60,14 +60,14 @@ public class DataSourceStatusCheckerTest {
     }
 
     @Test
-    public void testWithoutApplicationContext() {
+    void testWithoutApplicationContext() {
         Status status = dataSourceStatusChecker.check();
 
         assertThat(status.getLevel(), is(Status.Level.UNKNOWN));
     }
 
     @Test
-    public void testWithoutDatasource() {
+    void testWithoutDatasource() {
         Map<String, DataSource> map = new HashMap<String, DataSource>();
         given(applicationContext.getBeansOfType(eq(DataSource.class), anyBoolean(), anyBoolean())).willReturn(map);
 
@@ -77,7 +77,7 @@ public class DataSourceStatusCheckerTest {
     }
 
     @Test
-    public void testWithDatasourceHasNextResult() throws SQLException {
+    void testWithDatasourceHasNextResult() throws SQLException {
         Map<String, DataSource> map = new HashMap<String, DataSource>();
         DataSource dataSource = mock(DataSource.class);
         Connection connection = mock(Connection.class, Answers.RETURNS_DEEP_STUBS);
@@ -92,7 +92,7 @@ public class DataSourceStatusCheckerTest {
     }
 
     @Test
-    public void testWithDatasourceNotHasNextResult() throws SQLException {
+    void testWithDatasourceNotHasNextResult() throws SQLException {
         Map<String, DataSource> map = new HashMap<String, DataSource>();
         DataSource dataSource = mock(DataSource.class);
         Connection connection = mock(Connection.class, Answers.RETURNS_DEEP_STUBS);
@@ -105,4 +105,4 @@ public class DataSourceStatusCheckerTest {
 
         assertThat(status.getLevel(), is(Status.Level.ERROR));
     }
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/status/SpringStatusCheckerTest.java b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/status/SpringStatusCheckerTest.java
index 5eeb0cbeb9..da3fe0061b 100644
--- a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/status/SpringStatusCheckerTest.java
+++ b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/status/SpringStatusCheckerTest.java
@@ -31,7 +31,7 @@ import static org.hamcrest.MatcherAssert.assertThat;
 import static org.mockito.BDDMockito.given;
 import static org.mockito.Mockito.mock;
 
-public class SpringStatusCheckerTest {
+class SpringStatusCheckerTest {
 
 //    @Mock
 //    private ApplicationLifeCycle applicationContext;
@@ -47,7 +47,7 @@ public class SpringStatusCheckerTest {
     }
 
     @Test
-    public void testWithoutApplicationContext() {
+    void testWithoutApplicationContext() {
         SpringStatusChecker springStatusChecker = new SpringStatusChecker((ApplicationContext) null);
         Status status = springStatusChecker.check();
 
@@ -55,7 +55,7 @@ public class SpringStatusCheckerTest {
     }
 
     @Test
-    public void testWithLifeCycleRunning() {
+    void testWithLifeCycleRunning() {
         ApplicationLifeCycle applicationLifeCycle = mock(ApplicationLifeCycle.class);
         given(applicationLifeCycle.getConfigLocations()).willReturn(new String[]{"test1", "test2"});
         given(applicationLifeCycle.isRunning()).willReturn(true);
@@ -68,7 +68,7 @@ public class SpringStatusCheckerTest {
     }
 
     @Test
-    public void testWithoutLifeCycleRunning() {
+    void testWithoutLifeCycleRunning() {
         ApplicationLifeCycle applicationLifeCycle = mock(ApplicationLifeCycle.class);
         given(applicationLifeCycle.isRunning()).willReturn(false);
 
@@ -84,7 +84,7 @@ public class SpringStatusCheckerTest {
 
     // TODO improve GenericWebApplicationContext test scenario
     @Test
-    public void testGenericWebApplicationContext() {
+    void testGenericWebApplicationContext() {
         GenericWebApplicationContext context = mock(GenericWebApplicationContext.class);
         given(context.isRunning()).willReturn(true);
 
@@ -93,4 +93,4 @@ public class SpringStatusCheckerTest {
         Assertions.assertEquals(Status.Level.OK, status.getLevel());
     }
 
-}
+}
\ No newline at end of file
diff --git a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/util/EnvironmentUtilsTest.java b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/util/EnvironmentUtilsTest.java
index f68dc089b5..96f995bba3 100644
--- a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/util/EnvironmentUtilsTest.java
+++ b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/util/EnvironmentUtilsTest.java
@@ -36,10 +36,10 @@ import static org.apache.dubbo.config.spring.util.EnvironmentUtils.filterDubboPr
  * @see EnvironmentUtils
  * @since 2.7.0
  */
-public class EnvironmentUtilsTest {
+class EnvironmentUtilsTest {
 
     @Test
-    public void testExtraProperties() {
+    void testExtraProperties() {
 
         String key = "test.name";
         System.setProperty(key, "Tom");
@@ -71,7 +71,7 @@ public class EnvironmentUtilsTest {
     }
 
     @Test
-    public void testFilterDubboProperties() {
+    void testFilterDubboProperties() {
 
         MockEnvironment environment = new MockEnvironment();
         environment.setProperty("message", "Hello,World");
@@ -85,4 +85,4 @@ public class EnvironmentUtilsTest {
         Assertions.assertEquals("false", dubboProperties.get("dubbo.consumer.check"));
 
     }
-}
+}
\ No newline at end of file