修复 yudao-module-system-impl 的单元测试

This commit is contained in:
YunaiV
2022-02-17 19:52:11 +08:00
parent 822f4e8192
commit 9882142a46
6 changed files with 15 additions and 3 deletions

View File

@ -27,6 +27,7 @@ import org.springframework.security.core.AuthenticationException;
import org.springframework.security.core.userdetails.UsernameNotFoundException;
import javax.annotation.Resource;
import javax.validation.Validator;
import java.util.Set;
import static cn.iocoder.yudao.module.system.enums.ErrorCodeConstants.*;
@ -62,6 +63,9 @@ public class AuthServiceImplTest extends BaseDbUnitTest {
@MockBean
private PostService postService;
@MockBean
private Validator validator;
@BeforeEach
public void setUp() {
when(captchaService.isCaptchaEnable()).thenReturn(true);

View File

@ -48,3 +48,4 @@ yudao:
timeout: 5m
width: 160
height: 60
enable: true

View File

@ -23,6 +23,8 @@ CREATE TABLE IF NOT EXISTS "system_dict_data" (
"value" varchar(100) NOT NULL DEFAULT '',
"dict_type" varchar(100) NOT NULL DEFAULT '',
"status" tinyint NOT NULL DEFAULT '0',
"color_type" varchar(100) NOT NULL DEFAULT '',
"css_class" varchar(100) NOT NULL DEFAULT '',
"remark" varchar(500) DEFAULT NULL,
"creator" varchar(64) DEFAULT '',
"create_time" timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,