diff --git a/dolphinscheduler-api/src/test/java/org/apache/dolphinscheduler/api/service/UiPluginServiceTest.java b/dolphinscheduler-api/src/test/java/org/apache/dolphinscheduler/api/service/UiPluginServiceTest.java index 9e03bcce880c..e9ef94fee92a 100644 --- a/dolphinscheduler-api/src/test/java/org/apache/dolphinscheduler/api/service/UiPluginServiceTest.java +++ b/dolphinscheduler-api/src/test/java/org/apache/dolphinscheduler/api/service/UiPluginServiceTest.java @@ -91,7 +91,9 @@ public void testQueryPluginDetailById() { String pluginParams = data.getPluginParams(); ArrayNode arrayNode = JSONUtils.parseArray(pluginParams); String placeholder = arrayNode.path(0).path("props").path("placeholder").asText(); - Assertions.assertEquals(2, JSONUtils.toMap(placeholder).size()); + Map placeholderMap = JSONUtils.toMap(placeholder); + Assertions.assertEquals("请输入收件人", placeholderMap.get("zhMsg")); + Assertions.assertEquals("pleaseinputreceivers", placeholderMap.get("enMsg")); } }