测试类编写

This commit is contained in:
2022-01-24 23:52:29 +08:00
parent ca65b5e8fc
commit 0c074c046f
11 changed files with 215 additions and 24 deletions

View File

@@ -91,7 +91,7 @@ public class MonitorItemBeanManager implements ApplicationListener<ContextRefres
CheckResult checkResult = item.check();
if (checkResult.isTriggered()) {
logger.info("定时任务[{}]触发成功,发送通知:[{}]", taskId, checkResult.getNotifyContent());
notifyService.notify(checkResult.getNotifyContent(), NotifyType.MAIL_TYPE);
notifyService.notify(checkResult.getNotifyContent(), NotifyType.TYPE_MAIL);
}
}, new CronTrigger(cron)));
}