-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Bug fix on test case * Polish #327 & #325 * Polish #321 * Polish #220 no program * Switch Yaml file * Update version to be 0.2.0 * Polish #218 * Update Documents * Fix the test case's bugs * Fix plugins' issues * Fix test-cases * Fix test cases * Fixes an issue on DubboMvcEndpoint * Polish: Fix a relaxed property name issue
- Loading branch information
1 parent
fa7405a
commit c58053d
Showing
4 changed files
with
25 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,7 +39,6 @@ | |
|
||
/** | ||
* {@link DubboUtils} Test | ||
*Ø | ||
* @author <a href="mailto:[email protected]">Mercy</a> | ||
* @see DubboUtils | ||
* @since 1.0.0 | ||
|
@@ -49,17 +48,17 @@ public class DubboUtilsTest { | |
@Test | ||
public void testConstants() { | ||
|
||
Assert.assertEquals("dubbo", DUBBO_PREFIX); | ||
Assert.assertEquals("dubbo.", DUBBO_PREFIX); | ||
|
||
Assert.assertEquals("dubbo.scan", DUBBO_SCAN_PREFIX); | ||
Assert.assertEquals("dubbo.scan.", DUBBO_SCAN_PREFIX); | ||
|
||
Assert.assertEquals("dubbo.scan.base-packages", BASE_PACKAGES_PROPERTY_NAME); | ||
Assert.assertEquals("dubbo.scan.base-packages", DUBBO_SCAN_PREFIX + BASE_PACKAGES_PROPERTY_NAME); | ||
|
||
Assert.assertEquals("dubbo.config", DUBBO_CONFIG_PREFIX); | ||
Assert.assertEquals("dubbo.config.", DUBBO_CONFIG_PREFIX); | ||
|
||
Assert.assertEquals("dubbo.config.multiple", MULTIPLE_CONFIG_PROPERTY_NAME); | ||
Assert.assertEquals("dubbo.config.multiple", DUBBO_CONFIG_PREFIX + MULTIPLE_CONFIG_PROPERTY_NAME); | ||
|
||
Assert.assertEquals("dubbo.config.override", OVERRIDE_CONFIG_PROPERTY_NAME); | ||
Assert.assertEquals("dubbo.config.override", DUBBO_CONFIG_PREFIX + OVERRIDE_CONFIG_PROPERTY_NAME); | ||
|
||
Assert.assertEquals("https://github.com/apache/incubator-dubbo-spring-boot-project", DUBBO_SPRING_BOOT_GITHUB_URL); | ||
Assert.assertEquals("https://github.com/apache/incubator-dubbo-spring-boot-project.git", DUBBO_SPRING_BOOT_GIT_URL); | ||
|
@@ -81,13 +80,13 @@ public void testFilterDubboProperties() { | |
|
||
MockEnvironment environment = new MockEnvironment(); | ||
environment.setProperty("message", "Hello,World"); | ||
environment.setProperty(MULTIPLE_CONFIG_PROPERTY_NAME, "true"); | ||
environment.setProperty(OVERRIDE_CONFIG_PROPERTY_NAME, "true"); | ||
environment.setProperty(DUBBO_CONFIG_PREFIX + MULTIPLE_CONFIG_PROPERTY_NAME, "true"); | ||
environment.setProperty(DUBBO_CONFIG_PREFIX + OVERRIDE_CONFIG_PROPERTY_NAME, "true"); | ||
|
||
SortedMap<String, Object> dubboProperties = filterDubboProperties(environment); | ||
|
||
Assert.assertEquals("true",dubboProperties.get(MULTIPLE_CONFIG_PROPERTY_NAME)); | ||
Assert.assertEquals("true",dubboProperties.get(OVERRIDE_CONFIG_PROPERTY_NAME)); | ||
Assert.assertEquals("true", dubboProperties.get(DUBBO_CONFIG_PREFIX + MULTIPLE_CONFIG_PROPERTY_NAME)); | ||
Assert.assertEquals("true", dubboProperties.get(DUBBO_CONFIG_PREFIX + OVERRIDE_CONFIG_PROPERTY_NAME)); | ||
|
||
} | ||
|
||
|