From 24681c81c09022f584a57006f2534b5f74723414 Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期二, 30 六月 2026 09:27:31 +0800
Subject: [PATCH] 初始化项目

---
 yudao-module-system/src/test/java/cn/iocoder/yudao/module/system/service/notify/NotifyTemplateServiceImplTest.java |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/yudao-module-system/src/test/java/cn/iocoder/yudao/module/system/service/notify/NotifyTemplateServiceImplTest.java b/yudao-module-system/src/test/java/cn/iocoder/yudao/module/system/service/notify/NotifyTemplateServiceImplTest.java
index ba1f98e..6217a6f 100644
--- a/yudao-module-system/src/test/java/cn/iocoder/yudao/module/system/service/notify/NotifyTemplateServiceImplTest.java
+++ b/yudao-module-system/src/test/java/cn/iocoder/yudao/module/system/service/notify/NotifyTemplateServiceImplTest.java
@@ -12,6 +12,7 @@
 
 import jakarta.annotation.Resource;
 import java.util.HashMap;
+import java.util.List;
 import java.util.Map;
 
 import static cn.iocoder.yudao.framework.common.util.date.LocalDateTimeUtils.buildBetweenTime;
@@ -137,6 +138,23 @@
     }
 
     @Test
+    public void testGetNotifyTemplateListByStatus() {
+        // mock 鏁版嵁
+        NotifyTemplateDO dbNotifyTemplate = randomPojo(NotifyTemplateDO.class,
+                o -> o.setStatus(CommonStatusEnum.ENABLE.getStatus()));
+        notifyTemplateMapper.insert(dbNotifyTemplate);
+        notifyTemplateMapper.insert(cloneIgnoreId(dbNotifyTemplate,
+                o -> o.setStatus(CommonStatusEnum.DISABLE.getStatus())));
+
+        // 璋冪敤
+        List<NotifyTemplateDO> list = notifyTemplateService.getNotifyTemplateListByStatus(
+                CommonStatusEnum.ENABLE.getStatus());
+        // 鏂█
+        assertEquals(1, list.size());
+        assertPojoEquals(dbNotifyTemplate, list.get(0));
+    }
+
+    @Test
     public void testGetNotifyTemplate() {
         // mock 鏁版嵁
         NotifyTemplateDO dbNotifyTemplate = randomPojo(NotifyTemplateDO.class);

--
Gitblit v1.9.3