From efdb99f8cecc4afb592afad79c761081d5d5cf22 Mon Sep 17 00:00:00 2001
From: lee <4766465@qq.com>
Date: Wed, 18 Dec 2024 13:27:00 +0800
Subject: [PATCH] init

---
 xxl-job/xxl-job-admin/src/test/java/com/xxl/job/admin/dao/XxlJobLogGlueDaoTest.java |   36 ++++++++++++++++++++++++++++++++++++
 1 files changed, 36 insertions(+), 0 deletions(-)

diff --git a/xxl-job/xxl-job-admin/src/test/java/com/xxl/job/admin/dao/XxlJobLogGlueDaoTest.java b/xxl-job/xxl-job-admin/src/test/java/com/xxl/job/admin/dao/XxlJobLogGlueDaoTest.java
new file mode 100644
index 0000000..1e9eee3
--- /dev/null
+++ b/xxl-job/xxl-job-admin/src/test/java/com/xxl/job/admin/dao/XxlJobLogGlueDaoTest.java
@@ -0,0 +1,36 @@
+package com.xxl.job.admin.dao;
+
+import com.xxl.job.admin.core.model.XxlJobLogGlue;
+import org.junit.jupiter.api.Test;
+import org.springframework.boot.test.context.SpringBootTest;
+
+import javax.annotation.Resource;
+import java.util.Date;
+import java.util.List;
+
+@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
+public class XxlJobLogGlueDaoTest {
+
+    @Resource
+    private XxlJobLogGlueDao xxlJobLogGlueDao;
+
+    @Test
+    public void test(){
+        XxlJobLogGlue logGlue = new XxlJobLogGlue();
+        logGlue.setJobId(1);
+        logGlue.setGlueType("1");
+        logGlue.setGlueSource("1");
+        logGlue.setGlueRemark("1");
+
+        logGlue.setAddTime(new Date());
+        logGlue.setUpdateTime(new Date());
+        int ret = xxlJobLogGlueDao.save(logGlue);
+
+        List<XxlJobLogGlue> list = xxlJobLogGlueDao.findByJobId(1);
+
+        int ret2 = xxlJobLogGlueDao.removeOld(1, 1);
+
+        int ret3 =xxlJobLogGlueDao.deleteByJobId(1);
+    }
+
+}

--
Gitblit v1.9.3