From 0664f21a48bd9cb3f8e96b700be3481275dbd900 Mon Sep 17 00:00:00 2001 From: "jimin.jm" Date: Thu, 30 May 2019 20:24:43 +0800 Subject: [PATCH 1/4] [Test] add test for common-config Signed-off-by: jimin.jm --- .../config/EnvironmentConfigurationTest.java | 50 +++++++++++++ .../config/InmemoryConfigurationTest.java | 60 +++++++++++++++ .../config/SystemConfigurationTest.java | 75 +++++++++++++++++++ 3 files changed, 185 insertions(+) create mode 100644 dubbo-common/src/test/java/org/apache/dubbo/common/config/EnvironmentConfigurationTest.java create mode 100644 dubbo-common/src/test/java/org/apache/dubbo/common/config/InmemoryConfigurationTest.java create mode 100644 dubbo-common/src/test/java/org/apache/dubbo/common/config/SystemConfigurationTest.java diff --git a/dubbo-common/src/test/java/org/apache/dubbo/common/config/EnvironmentConfigurationTest.java b/dubbo-common/src/test/java/org/apache/dubbo/common/config/EnvironmentConfigurationTest.java new file mode 100644 index 00000000000..1f36871dc09 --- /dev/null +++ b/dubbo-common/src/test/java/org/apache/dubbo/common/config/EnvironmentConfigurationTest.java @@ -0,0 +1,50 @@ +package org.apache.dubbo.common.config; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; + +/** + * @author slievrly + */ +class EnvironmentConfigurationTest { + + private static EnvironmentConfiguration environmentConfig; + private static final String MOCK_KEY = "mockKey"; + private static final String MOCK_VALUE = "mockValue"; + private static final String PATH_KEY="PATH"; + + @BeforeEach + public void init() { + + environmentConfig = new EnvironmentConfiguration(); + } + + @Test + public void testGetInternalProperty(){ + Assertions.assertNull(environmentConfig.getInternalProperty(MOCK_KEY)); + Assertions.assertEquals(System.getenv(PATH_KEY),environmentConfig.getInternalProperty(PATH_KEY)); + + } + + @Test + public void testContainsKey(){ + Assertions.assertTrue(environmentConfig.containsKey(PATH_KEY)); + Assertions.assertFalse(environmentConfig.containsKey(MOCK_KEY)); + } + + @Test + public void testGetString(){ + Assertions.assertNull(environmentConfig.getString(MOCK_KEY)); + Assertions.assertEquals(MOCK_VALUE,environmentConfig.getString(MOCK_KEY,MOCK_VALUE)); + } + + @Test + public void testGetProperty(){ + Assertions.assertNull(environmentConfig.getProperty(MOCK_KEY)); + Assertions.assertEquals(MOCK_VALUE,environmentConfig.getProperty(MOCK_KEY,MOCK_VALUE)); + } + + + +} \ No newline at end of file diff --git a/dubbo-common/src/test/java/org/apache/dubbo/common/config/InmemoryConfigurationTest.java b/dubbo-common/src/test/java/org/apache/dubbo/common/config/InmemoryConfigurationTest.java new file mode 100644 index 00000000000..b2c08629263 --- /dev/null +++ b/dubbo-common/src/test/java/org/apache/dubbo/common/config/InmemoryConfigurationTest.java @@ -0,0 +1,60 @@ +package org.apache.dubbo.common.config; + +import java.util.HashMap; +import java.util.Map; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; + +/** + * @author slievrly + */ +class InmemoryConfigurationTest { + + private static InmemoryConfiguration memConfig; + private static final String MOCK_KEY = "mockKey"; + private static final String MOCK_VALUE = "mockValue"; + private static final String MOCK_ONE_KEY = "one"; + private static final String MOCK_TWO_KEY = "two"; + private static final String MOCK_THREE_KEY = "three"; + + @BeforeEach + public void init() { + + memConfig = new InmemoryConfiguration(); + } + + @Test + public void testGetMemProperty() { + Assertions.assertNull(memConfig.getInternalProperty(MOCK_KEY)); + Assertions.assertFalse(memConfig.containsKey(MOCK_KEY)); + Assertions.assertNull(memConfig.getString(MOCK_KEY)); + Assertions.assertNull(memConfig.getProperty(MOCK_KEY)); + memConfig.addProperty(MOCK_KEY, MOCK_VALUE); + Assertions.assertTrue(memConfig.containsKey(MOCK_KEY)); + Assertions.assertEquals(MOCK_VALUE, memConfig.getInternalProperty(MOCK_KEY)); + Assertions.assertEquals(MOCK_VALUE, memConfig.getString(MOCK_KEY, MOCK_VALUE)); + Assertions.assertEquals(MOCK_VALUE, memConfig.getProperty(MOCK_KEY, MOCK_VALUE)); + + } + + @Test + public void testGetProperties() { + Assertions.assertNull(memConfig.getInternalProperty(MOCK_ONE_KEY)); + Assertions.assertNull(memConfig.getInternalProperty(MOCK_TWO_KEY)); + Map proMap = new HashMap<>(); + proMap.put(MOCK_ONE_KEY, MOCK_VALUE); + proMap.put(MOCK_TWO_KEY, MOCK_VALUE); + memConfig.addProperties(proMap); + Assertions.assertNotNull(memConfig.getInternalProperty(MOCK_ONE_KEY)); + Assertions.assertNotNull(memConfig.getInternalProperty(MOCK_TWO_KEY)); + Map anotherProMap = new HashMap<>(); + anotherProMap.put(MOCK_THREE_KEY, MOCK_VALUE); + memConfig.setProperties(anotherProMap); + Assertions.assertNotNull(memConfig.getInternalProperty(MOCK_THREE_KEY)); + Assertions.assertNull(memConfig.getInternalProperty(MOCK_ONE_KEY)); + Assertions.assertNull(memConfig.getInternalProperty(MOCK_TWO_KEY)); + + } +} \ No newline at end of file diff --git a/dubbo-common/src/test/java/org/apache/dubbo/common/config/SystemConfigurationTest.java b/dubbo-common/src/test/java/org/apache/dubbo/common/config/SystemConfigurationTest.java new file mode 100644 index 00000000000..6fa4707c08a --- /dev/null +++ b/dubbo-common/src/test/java/org/apache/dubbo/common/config/SystemConfigurationTest.java @@ -0,0 +1,75 @@ +package org.apache.dubbo.common.config; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; + +/** + * @author slievrly + */ +class SystemConfigurationTest { + + private static SystemConfiguration sysConfig; + private static final String MOCK_KEY = "mockKey"; + private static final String MOCK_STRING_VALUE = "mockValue"; + private static final Boolean MOCK_BOOL_VALUE = Boolean.FALSE; + private static final Integer MOCK_INT_VALUE = Integer.MAX_VALUE; + private static final Long MOCK_LONG_VALUE = Long.MIN_VALUE; + private static final Short MOCK_SHORT_VALUE = Short.MIN_VALUE; + private static final Float MOCK_FLOAT_VALUE = Float.MIN_VALUE; + private static final Double MOCK_DOUBLE_VALUE = Double.MIN_VALUE; + private static final Byte MOCK_BYTE_VALUE = Byte.MIN_VALUE; + private static final String NOT_EXIST_KEY = "NOTEXIST"; + + @BeforeEach + public void init() { + + sysConfig = new SystemConfiguration(); + } + + @Test + public void testGetSysProperty() { + Assertions.assertNull(sysConfig.getInternalProperty(MOCK_KEY)); + Assertions.assertFalse(sysConfig.containsKey(MOCK_KEY)); + Assertions.assertNull(sysConfig.getString(MOCK_KEY)); + Assertions.assertNull(sysConfig.getProperty(MOCK_KEY)); + System.setProperty(MOCK_KEY, MOCK_STRING_VALUE); + Assertions.assertTrue(sysConfig.containsKey(MOCK_KEY)); + Assertions.assertEquals(MOCK_STRING_VALUE, sysConfig.getInternalProperty(MOCK_KEY)); + Assertions.assertEquals(MOCK_STRING_VALUE, sysConfig.getString(MOCK_KEY, MOCK_STRING_VALUE)); + Assertions.assertEquals(MOCK_STRING_VALUE, sysConfig.getProperty(MOCK_KEY, MOCK_STRING_VALUE)); + + } + + @Test + public void testConvert() { + Assertions.assertEquals( + MOCK_STRING_VALUE, sysConfig.convert(String.class, NOT_EXIST_KEY, MOCK_STRING_VALUE)); + System.setProperty(MOCK_KEY, String.valueOf(MOCK_BOOL_VALUE)); + Assertions.assertEquals(MOCK_BOOL_VALUE, sysConfig.convert(Boolean.class, MOCK_KEY, null)); + System.setProperty(MOCK_KEY, String.valueOf(MOCK_STRING_VALUE)); + Assertions.assertEquals(MOCK_STRING_VALUE, sysConfig.convert(String.class, MOCK_KEY, null)); + System.setProperty(MOCK_KEY, String.valueOf(MOCK_INT_VALUE)); + Assertions.assertEquals(MOCK_INT_VALUE, sysConfig.convert(Integer.class, MOCK_KEY, null)); + System.setProperty(MOCK_KEY, String.valueOf(MOCK_LONG_VALUE)); + Assertions.assertEquals(MOCK_LONG_VALUE, sysConfig.convert(Long.class, MOCK_KEY, null)); + System.setProperty(MOCK_KEY, String.valueOf(MOCK_SHORT_VALUE)); + Assertions.assertEquals(MOCK_SHORT_VALUE, sysConfig.convert(Short.class, MOCK_KEY, null)); + System.setProperty(MOCK_KEY, String.valueOf(MOCK_FLOAT_VALUE)); + Assertions.assertEquals(MOCK_FLOAT_VALUE, sysConfig.convert(Float.class, MOCK_KEY, null)); + System.setProperty(MOCK_KEY, String.valueOf(MOCK_DOUBLE_VALUE)); + Assertions.assertEquals(MOCK_DOUBLE_VALUE, sysConfig.convert(Double.class, MOCK_KEY, null)); + System.setProperty(MOCK_KEY, String.valueOf(MOCK_BYTE_VALUE)); + Assertions.assertEquals(MOCK_BYTE_VALUE, sysConfig.convert(Byte.class, MOCK_KEY, null)); + System.setProperty(MOCK_KEY, String.valueOf(ConfigMock.MockOne)); + Assertions.assertEquals(ConfigMock.MockOne, sysConfig.convert(ConfigMock.class, MOCK_KEY, null)); + } + + enum ConfigMock { + MockOne, + MockTwo + } + + + +} \ No newline at end of file From 646f7a790360f4a39c934fd3d1af3394a1df0ad5 Mon Sep 17 00:00:00 2001 From: "jimin.jm" Date: Thu, 30 May 2019 20:48:49 +0800 Subject: [PATCH 2/4] fix review Signed-off-by: jimin.jm --- .../config/EnvironmentConfigurationTest.java | 19 +++++++++++++--- .../config/InmemoryConfigurationTest.java | 12 +++++++++- .../config/SystemConfigurationTest.java | 22 ++++++++++++++++--- 3 files changed, 46 insertions(+), 7 deletions(-) diff --git a/dubbo-common/src/test/java/org/apache/dubbo/common/config/EnvironmentConfigurationTest.java b/dubbo-common/src/test/java/org/apache/dubbo/common/config/EnvironmentConfigurationTest.java index 1f36871dc09..376a0ec0d7c 100644 --- a/dubbo-common/src/test/java/org/apache/dubbo/common/config/EnvironmentConfigurationTest.java +++ b/dubbo-common/src/test/java/org/apache/dubbo/common/config/EnvironmentConfigurationTest.java @@ -5,7 +5,7 @@ import org.junit.jupiter.api.Test; /** - * @author slievrly + * The type Environment configuration test. */ class EnvironmentConfigurationTest { @@ -14,12 +14,18 @@ class EnvironmentConfigurationTest { private static final String MOCK_VALUE = "mockValue"; private static final String PATH_KEY="PATH"; + /** + * Init. + */ @BeforeEach public void init() { environmentConfig = new EnvironmentConfiguration(); } + /** + * Test get internal property. + */ @Test public void testGetInternalProperty(){ Assertions.assertNull(environmentConfig.getInternalProperty(MOCK_KEY)); @@ -27,24 +33,31 @@ public void testGetInternalProperty(){ } + /** + * Test contains key. + */ @Test public void testContainsKey(){ Assertions.assertTrue(environmentConfig.containsKey(PATH_KEY)); Assertions.assertFalse(environmentConfig.containsKey(MOCK_KEY)); } + /** + * Test get string. + */ @Test public void testGetString(){ Assertions.assertNull(environmentConfig.getString(MOCK_KEY)); Assertions.assertEquals(MOCK_VALUE,environmentConfig.getString(MOCK_KEY,MOCK_VALUE)); } + /** + * Test get property. + */ @Test public void testGetProperty(){ Assertions.assertNull(environmentConfig.getProperty(MOCK_KEY)); Assertions.assertEquals(MOCK_VALUE,environmentConfig.getProperty(MOCK_KEY,MOCK_VALUE)); } - - } \ No newline at end of file diff --git a/dubbo-common/src/test/java/org/apache/dubbo/common/config/InmemoryConfigurationTest.java b/dubbo-common/src/test/java/org/apache/dubbo/common/config/InmemoryConfigurationTest.java index b2c08629263..681002ab15f 100644 --- a/dubbo-common/src/test/java/org/apache/dubbo/common/config/InmemoryConfigurationTest.java +++ b/dubbo-common/src/test/java/org/apache/dubbo/common/config/InmemoryConfigurationTest.java @@ -8,7 +8,7 @@ import org.junit.jupiter.api.Test; /** - * @author slievrly + * The type Inmemory configuration test. */ class InmemoryConfigurationTest { @@ -19,12 +19,18 @@ class InmemoryConfigurationTest { private static final String MOCK_TWO_KEY = "two"; private static final String MOCK_THREE_KEY = "three"; + /** + * Init. + */ @BeforeEach public void init() { memConfig = new InmemoryConfiguration(); } + /** + * Test get mem property. + */ @Test public void testGetMemProperty() { Assertions.assertNull(memConfig.getInternalProperty(MOCK_KEY)); @@ -39,6 +45,9 @@ public void testGetMemProperty() { } + /** + * Test get properties. + */ @Test public void testGetProperties() { Assertions.assertNull(memConfig.getInternalProperty(MOCK_ONE_KEY)); @@ -57,4 +66,5 @@ public void testGetProperties() { Assertions.assertNull(memConfig.getInternalProperty(MOCK_TWO_KEY)); } + } \ No newline at end of file diff --git a/dubbo-common/src/test/java/org/apache/dubbo/common/config/SystemConfigurationTest.java b/dubbo-common/src/test/java/org/apache/dubbo/common/config/SystemConfigurationTest.java index 6fa4707c08a..ccd3b40c5f3 100644 --- a/dubbo-common/src/test/java/org/apache/dubbo/common/config/SystemConfigurationTest.java +++ b/dubbo-common/src/test/java/org/apache/dubbo/common/config/SystemConfigurationTest.java @@ -5,7 +5,7 @@ import org.junit.jupiter.api.Test; /** - * @author slievrly + * The type System configuration test. */ class SystemConfigurationTest { @@ -21,12 +21,18 @@ class SystemConfigurationTest { private static final Byte MOCK_BYTE_VALUE = Byte.MIN_VALUE; private static final String NOT_EXIST_KEY = "NOTEXIST"; + /** + * Init. + */ @BeforeEach public void init() { sysConfig = new SystemConfiguration(); } + /** + * Test get sys property. + */ @Test public void testGetSysProperty() { Assertions.assertNull(sysConfig.getInternalProperty(MOCK_KEY)); @@ -41,6 +47,9 @@ public void testGetSysProperty() { } + /** + * Test convert. + */ @Test public void testConvert() { Assertions.assertEquals( @@ -65,11 +74,18 @@ public void testConvert() { Assertions.assertEquals(ConfigMock.MockOne, sysConfig.convert(ConfigMock.class, MOCK_KEY, null)); } + /** + * The enum Config mock. + */ enum ConfigMock { + /** + * Mock one config mock. + */ MockOne, + /** + * Mock two config mock. + */ MockTwo } - - } \ No newline at end of file From 45aef5445a87656efad7052c7b658a0df3697890 Mon Sep 17 00:00:00 2001 From: "jimin.jm" Date: Fri, 31 May 2019 14:15:25 +0800 Subject: [PATCH 3/4] add after clean Signed-off-by: jimin.jm --- .../common/config/EnvironmentConfigurationTest.java | 9 +++++++++ .../common/config/InmemoryConfigurationTest.java | 9 +++++++++ .../dubbo/common/config/SystemConfigurationTest.java | 12 +++++++++++- 3 files changed, 29 insertions(+), 1 deletion(-) diff --git a/dubbo-common/src/test/java/org/apache/dubbo/common/config/EnvironmentConfigurationTest.java b/dubbo-common/src/test/java/org/apache/dubbo/common/config/EnvironmentConfigurationTest.java index 376a0ec0d7c..2968c3ad958 100644 --- a/dubbo-common/src/test/java/org/apache/dubbo/common/config/EnvironmentConfigurationTest.java +++ b/dubbo-common/src/test/java/org/apache/dubbo/common/config/EnvironmentConfigurationTest.java @@ -1,5 +1,6 @@ package org.apache.dubbo.common.config; +import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; @@ -60,4 +61,12 @@ public void testGetProperty(){ Assertions.assertEquals(MOCK_VALUE,environmentConfig.getProperty(MOCK_KEY,MOCK_VALUE)); } + /** + * Clean. + */ + @AfterEach + public void clean(){ + + } + } \ No newline at end of file diff --git a/dubbo-common/src/test/java/org/apache/dubbo/common/config/InmemoryConfigurationTest.java b/dubbo-common/src/test/java/org/apache/dubbo/common/config/InmemoryConfigurationTest.java index 681002ab15f..734084a87bc 100644 --- a/dubbo-common/src/test/java/org/apache/dubbo/common/config/InmemoryConfigurationTest.java +++ b/dubbo-common/src/test/java/org/apache/dubbo/common/config/InmemoryConfigurationTest.java @@ -3,6 +3,7 @@ import java.util.HashMap; import java.util.Map; +import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; @@ -67,4 +68,12 @@ public void testGetProperties() { } + /** + * Clean. + */ + @AfterEach + public void clean(){ + + } + } \ No newline at end of file diff --git a/dubbo-common/src/test/java/org/apache/dubbo/common/config/SystemConfigurationTest.java b/dubbo-common/src/test/java/org/apache/dubbo/common/config/SystemConfigurationTest.java index ccd3b40c5f3..1a6365f22b6 100644 --- a/dubbo-common/src/test/java/org/apache/dubbo/common/config/SystemConfigurationTest.java +++ b/dubbo-common/src/test/java/org/apache/dubbo/common/config/SystemConfigurationTest.java @@ -1,5 +1,6 @@ package org.apache.dubbo.common.config; +import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; @@ -44,7 +45,6 @@ public void testGetSysProperty() { Assertions.assertEquals(MOCK_STRING_VALUE, sysConfig.getInternalProperty(MOCK_KEY)); Assertions.assertEquals(MOCK_STRING_VALUE, sysConfig.getString(MOCK_KEY, MOCK_STRING_VALUE)); Assertions.assertEquals(MOCK_STRING_VALUE, sysConfig.getProperty(MOCK_KEY, MOCK_STRING_VALUE)); - } /** @@ -74,6 +74,16 @@ public void testConvert() { Assertions.assertEquals(ConfigMock.MockOne, sysConfig.convert(ConfigMock.class, MOCK_KEY, null)); } + /** + * Clean. + */ + @AfterEach + public void clean() { + if (null != System.getProperty(MOCK_KEY)) { + System.clearProperty(MOCK_KEY); + } + } + /** * The enum Config mock. */ From 78cbe915d7dbe631c0f08e0cfb51b385f1233c9e Mon Sep 17 00:00:00 2001 From: "jimin.jm" Date: Fri, 31 May 2019 14:32:22 +0800 Subject: [PATCH 4/4] add license Signed-off-by: jimin.jm --- .../config/EnvironmentConfigurationTest.java | 16 ++++++++++++++++ .../common/config/InmemoryConfigurationTest.java | 16 ++++++++++++++++ .../common/config/SystemConfigurationTest.java | 16 ++++++++++++++++ 3 files changed, 48 insertions(+) diff --git a/dubbo-common/src/test/java/org/apache/dubbo/common/config/EnvironmentConfigurationTest.java b/dubbo-common/src/test/java/org/apache/dubbo/common/config/EnvironmentConfigurationTest.java index 2968c3ad958..00fda4356b9 100644 --- a/dubbo-common/src/test/java/org/apache/dubbo/common/config/EnvironmentConfigurationTest.java +++ b/dubbo-common/src/test/java/org/apache/dubbo/common/config/EnvironmentConfigurationTest.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.apache.dubbo.common.config; import org.junit.jupiter.api.AfterEach; diff --git a/dubbo-common/src/test/java/org/apache/dubbo/common/config/InmemoryConfigurationTest.java b/dubbo-common/src/test/java/org/apache/dubbo/common/config/InmemoryConfigurationTest.java index 734084a87bc..b577631d366 100644 --- a/dubbo-common/src/test/java/org/apache/dubbo/common/config/InmemoryConfigurationTest.java +++ b/dubbo-common/src/test/java/org/apache/dubbo/common/config/InmemoryConfigurationTest.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.apache.dubbo.common.config; import java.util.HashMap; diff --git a/dubbo-common/src/test/java/org/apache/dubbo/common/config/SystemConfigurationTest.java b/dubbo-common/src/test/java/org/apache/dubbo/common/config/SystemConfigurationTest.java index 1a6365f22b6..75576be5b5a 100644 --- a/dubbo-common/src/test/java/org/apache/dubbo/common/config/SystemConfigurationTest.java +++ b/dubbo-common/src/test/java/org/apache/dubbo/common/config/SystemConfigurationTest.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.apache.dubbo.common.config; import org.junit.jupiter.api.AfterEach;