From 9624d64d41cb852bc114bbaafeb0eecd95625110 Mon Sep 17 00:00:00 2001 From: xueye Date: Tue, 6 Jul 2021 10:16:22 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E4=BF=AE=E6=94=B9=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E7=B1=BB=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cicdi/notify/dingtalk/DingTalkTest.java | 47 +++++++++++++------ .../cicdi/notify/email/DefaultEmailTest.java | 11 ++++- .../com/cicdi/notify/sms/TelecomSmsTest.java | 42 ++++++++--------- 3 files changed, 62 insertions(+), 38 deletions(-) diff --git a/notify-dingtalk/src/test/java/com/cicdi/notify/dingtalk/DingTalkTest.java b/notify-dingtalk/src/test/java/com/cicdi/notify/dingtalk/DingTalkTest.java index 1aa355e..352e1bf 100644 --- a/notify-dingtalk/src/test/java/com/cicdi/notify/dingtalk/DingTalkTest.java +++ b/notify-dingtalk/src/test/java/com/cicdi/notify/dingtalk/DingTalkTest.java @@ -1,11 +1,12 @@ package com.cicdi.notify.dingtalk; -import com.alibaba.fastjson.JSONObject; +import com.alibaba.fastjson.JSON; import com.cicdi.notify.*; import com.cicdi.notify.template.AbstractTemplateManager; import com.cicdi.notify.template.Template; import com.cicdi.notify.template.TemplateManager; import com.cicdi.notify.template.TemplateProperties; +import org.junit.Before; import org.junit.Test; import java.util.HashMap; @@ -15,14 +16,32 @@ import java.util.Map; * @author xueye */ public class DingTalkTest { + /** + * 模板管理器 + */ + private TemplateManager templateManager; + /** + * 通知器管理器 + */ + private NotifierManager notifierManager; + + /** + * 测试钉钉消息发送 + */ @Test public void test() { + Notifier