From e31d9d7be80de48a92bb764eec428513edefdf1b Mon Sep 17 00:00:00 2001 From: Odboy Date: Thu, 25 Dec 2025 22:11:16 +0800 Subject: [PATCH] =?UTF-8?q?fix(test):=20=E4=BF=AE=E5=A4=8D=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E7=B1=BB=E4=B8=AD=E5=AE=9E=E4=BD=93=E5=AF=B9=E8=B1=A1?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修复SystemApplicationTests中导入SystemUserVo类 - 修正测试数据创建时使用SystemUserVo替换SystemUserTb - 更新Spring Boot父版本从3.3.13到3.5.9 --- .../src/test/java/cn/odboy/SystemApplicationTests.java | 3 ++- cutejava-springboot3/pom.xml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/cutejava-springboot3/cutejava-starter/src/test/java/cn/odboy/SystemApplicationTests.java b/cutejava-springboot3/cutejava-starter/src/test/java/cn/odboy/SystemApplicationTests.java index 1a27925b..5523ea94 100644 --- a/cutejava-springboot3/cutejava-starter/src/test/java/cn/odboy/SystemApplicationTests.java +++ b/cutejava-springboot3/cutejava-starter/src/test/java/cn/odboy/SystemApplicationTests.java @@ -21,6 +21,7 @@ import cn.odboy.system.dal.dataobject.SystemDeptTb; import cn.odboy.system.dal.dataobject.SystemJobTb; import cn.odboy.system.dal.dataobject.SystemRoleTb; import cn.odboy.system.dal.dataobject.SystemUserTb; +import cn.odboy.system.dal.model.SystemUserVo; import cn.odboy.system.service.SystemUserService; import java.util.Set; import org.junit.jupiter.api.Test; @@ -48,7 +49,7 @@ public class SystemApplicationTests { String pwd = passwordEncoder.encode("123456"); for (int i = 100; i < 200; i++) { - SystemUserTb systemUser = new SystemUserTb(); + SystemUserVo systemUser = new SystemUserVo(); systemUser.setDept(systemDept); systemUser.setJobs(systemJobs); systemUser.setRoles(systemRoles); diff --git a/cutejava-springboot3/pom.xml b/cutejava-springboot3/pom.xml index 7cde54eb..d6a3d2d6 100644 --- a/cutejava-springboot3/pom.xml +++ b/cutejava-springboot3/pom.xml @@ -19,7 +19,8 @@ org.springframework.boot spring-boot-starter-parent - 3.3.13 + + 3.5.9