Commit 9882142a4691e4126a5dce565bfbbb671391d0f3
1 parent
822f4e81
修复 yudao-module-system-impl 的单元测试
Showing
6 changed files
with
15 additions
and
3 deletions
yudao-module-system/yudao-module-system-impl/src/test/java/cn/iocoder/yudao/module/system/service/auth/AuthServiceImplTest.java
| @@ -27,6 +27,7 @@ import org.springframework.security.core.AuthenticationException; | @@ -27,6 +27,7 @@ import org.springframework.security.core.AuthenticationException; | ||
| 27 | import org.springframework.security.core.userdetails.UsernameNotFoundException; | 27 | import org.springframework.security.core.userdetails.UsernameNotFoundException; |
| 28 | 28 | ||
| 29 | import javax.annotation.Resource; | 29 | import javax.annotation.Resource; |
| 30 | +import javax.validation.Validator; | ||
| 30 | import java.util.Set; | 31 | import java.util.Set; |
| 31 | 32 | ||
| 32 | import static cn.iocoder.yudao.module.system.enums.ErrorCodeConstants.*; | 33 | import static cn.iocoder.yudao.module.system.enums.ErrorCodeConstants.*; |
| @@ -62,6 +63,9 @@ public class AuthServiceImplTest extends BaseDbUnitTest { | @@ -62,6 +63,9 @@ public class AuthServiceImplTest extends BaseDbUnitTest { | ||
| 62 | @MockBean | 63 | @MockBean |
| 63 | private PostService postService; | 64 | private PostService postService; |
| 64 | 65 | ||
| 66 | + @MockBean | ||
| 67 | + private Validator validator; | ||
| 68 | + | ||
| 65 | @BeforeEach | 69 | @BeforeEach |
| 66 | public void setUp() { | 70 | public void setUp() { |
| 67 | when(captchaService.isCaptchaEnable()).thenReturn(true); | 71 | when(captchaService.isCaptchaEnable()).thenReturn(true); |
yudao-module-system/yudao-module-system-impl/src/test/resources/application-unit-test.yaml
yudao-module-system/yudao-module-system-impl/src/test/resources/sql/create_tables.sql
| @@ -23,6 +23,8 @@ CREATE TABLE IF NOT EXISTS "system_dict_data" ( | @@ -23,6 +23,8 @@ CREATE TABLE IF NOT EXISTS "system_dict_data" ( | ||
| 23 | "value" varchar(100) NOT NULL DEFAULT '', | 23 | "value" varchar(100) NOT NULL DEFAULT '', |
| 24 | "dict_type" varchar(100) NOT NULL DEFAULT '', | 24 | "dict_type" varchar(100) NOT NULL DEFAULT '', |
| 25 | "status" tinyint NOT NULL DEFAULT '0', | 25 | "status" tinyint NOT NULL DEFAULT '0', |
| 26 | + "color_type" varchar(100) NOT NULL DEFAULT '', | ||
| 27 | + "css_class" varchar(100) NOT NULL DEFAULT '', | ||
| 26 | "remark" varchar(500) DEFAULT NULL, | 28 | "remark" varchar(500) DEFAULT NULL, |
| 27 | "creator" varchar(64) DEFAULT '', | 29 | "creator" varchar(64) DEFAULT '', |
| 28 | "create_time" timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, | 30 | "create_time" timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, |
yudao-ui-admin/src/views/tool/build/README.md
yudao-ui-admin/src/views/tool/build/main.js
| @@ -11,6 +11,8 @@ Vue.component('tinymce', Tinymce) | @@ -11,6 +11,8 @@ Vue.component('tinymce', Tinymce) | ||
| 11 | Vue.config.productionTip = false | 11 | Vue.config.productionTip = false |
| 12 | Vue.prototype.$axios = axios | 12 | Vue.prototype.$axios = axios |
| 13 | 13 | ||
| 14 | +// add by 芋道源码:引用自 https://github.com/JakHuang/form-generator/tree/dev/src/views/index | ||
| 15 | + | ||
| 14 | new Vue({ | 16 | new Vue({ |
| 15 | router, | 17 | router, |
| 16 | render: h => h(App) | 18 | render: h => h(App) |
更新日志.md
| @@ -11,15 +11,19 @@ | @@ -11,15 +11,19 @@ | ||
| 11 | * 升级 mybatis plus 最新版本,优化多租户的实现 | 11 | * 升级 mybatis plus 最新版本,优化多租户的实现 |
| 12 | * RedisKeyDefine 的发现机制 | 12 | * RedisKeyDefine 的发现机制 |
| 13 | 13 | ||
| 14 | -## [v.1.5.0] 【进行中】计划 2022.02.28 发布 | 14 | +## [v.1.6.0] 【进行中】计划 2022.03.04 发布 |
| 15 | 15 | ||
| 16 | * 基于 flowable 实现工作流 | 16 | * 基于 flowable 实现工作流 |
| 17 | * 基于 uniapp 实现小程序,完成用户中心相关的功能(社交登陆、修改密码、忘记密码、修改个人信息等等功能) | 17 | * 基于 uniapp 实现小程序,完成用户中心相关的功能(社交登陆、修改密码、忘记密码、修改个人信息等等功能) |
| 18 | 18 | ||
| 19 | +## [v.1.5.0] 【进行中】2022.02.18 发布 | ||
| 20 | + | ||
| 21 | + | ||
| 22 | + | ||
| 19 | ### ⚠️ Warning | 23 | ### ⚠️ Warning |
| 20 | 24 | ||
| 21 | * 修复各种多 Maven Module 重构带来的 Bug,感谢大量群友的 PR 支持! | 25 | * 修复各种多 Maven Module 重构带来的 Bug,感谢大量群友的 PR 支持! |
| 22 | -* 跟进 ruoyi-vue 3.4.0、3.5.0 版本,感谢这么优秀的开源项目! | 26 | +* 跟进 ruoyi-vue 3.4.0 ~ 3.8.1 版本,感谢这么优秀的开源项目! |
| 23 | 27 | ||
| 24 | ### 📈 Statistic | 28 | ### 📈 Statistic |
| 25 | 29 |