1. 验证码的单元测试

2. 修复 h2 脚本的问题
This commit is contained in:
YunaiV
2021-03-13 19:34:26 +08:00
parent cee1aa3e60
commit 8af60fdaa6
13 changed files with 119 additions and 57 deletions

View File

@@ -15,9 +15,9 @@ import org.springframework.test.context.ActiveProfiles;
import org.springframework.test.context.jdbc.Sql;
/**
* 依赖内存 DB 的单元测试
* 依赖内存 DB + Redis 的单元测试
*
* 注意Service 层同样适用。对于 Service 层的单元测试,我们针对自己模块的 Mapper 走的是 H2 内存数据库,针对别的模块的 Service 走的是 Mock 方法
* 相比 {@link BaseDbUnitTest} 来说,额外增加了内存 Redis
*
* @author 芋道源码
*/