From 8e7bdfa276f2a9c55ee07beff7a1c72e0ba9babd Mon Sep 17 00:00:00 2001 From: lenboo Date: Mon, 22 Jun 2020 10:17:48 +0800 Subject: [PATCH] update ut --- .../alert/template/impl/DefaultHTMLTemplateTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dolphinscheduler-alert/src/test/java/org/apache/dolphinscheduler/alert/template/impl/DefaultHTMLTemplateTest.java b/dolphinscheduler-alert/src/test/java/org/apache/dolphinscheduler/alert/template/impl/DefaultHTMLTemplateTest.java index 576b567eba..c88f69224d 100644 --- a/dolphinscheduler-alert/src/test/java/org/apache/dolphinscheduler/alert/template/impl/DefaultHTMLTemplateTest.java +++ b/dolphinscheduler-alert/src/test/java/org/apache/dolphinscheduler/alert/template/impl/DefaultHTMLTemplateTest.java @@ -61,16 +61,16 @@ public class DefaultHTMLTemplateTest{ LinkedHashMap map1 = new LinkedHashMap<>(); map1.put("mysql service name","mysql200"); map1.put("mysql address","192.168.xx.xx"); + map1.put("database client connections","190"); map1.put("port","3306"); map1.put("no index of number","80"); - map1.put("database client connections","190"); LinkedHashMap map2 = new LinkedHashMap<>(); map2.put("mysql service name","mysql210"); map2.put("mysql address","192.168.xx.xx"); + map2.put("database client connections","90"); map2.put("port","3306"); map2.put("no index of number","10"); - map2.put("database client connections","90"); List> maps = new ArrayList<>(); maps.add(0,map1); @@ -84,8 +84,8 @@ public class DefaultHTMLTemplateTest{ private String generateMockTableTypeResultByHand(){ return Constants.HTML_HEADER_PREFIX + - "mysql service namemysql addressportno index of numberdatabase client connections\n" + - "mysql200192.168.xx.xx330680190mysql210192.168.xx.xx33061090" + Constants.TABLE_BODY_HTML_TAIL; + "mysql service namemysql addressdatabase client connectionsportno index of number\n" + + "mysql200192.168.xx.xx190330680mysql210192.168.xx.xx90330610" + Constants.TABLE_BODY_HTML_TAIL; }