mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-10-31 10:18:42 +08:00 
			
		
		
		
	修复 yudao-module-system-impl 的单元测试
This commit is contained in:
		| @@ -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); | ||||
|   | ||||
| @@ -48,3 +48,4 @@ yudao: | ||||
|     timeout: 5m | ||||
|     width: 160 | ||||
|     height: 60 | ||||
|     enable: true | ||||
|   | ||||
| @@ -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, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 YunaiV
					YunaiV