完善 LoginLogServiceImplTest 单元测试

This commit is contained in:
YunaiV
2023-02-01 08:17:03 +08:00
parent 9ca793919d
commit 987fcd366c
2 changed files with 47 additions and 79 deletions

View File

@ -47,7 +47,7 @@ public class RandomUtils {
}
// 如果是 type、status 结尾的字段,返回 tinyint 范围
if (StrUtil.endWithAnyIgnoreCase(attributeMetadata.getAttributeName(),
"type", "status", "category", "scope")) {
"type", "status", "category", "scope", "result")) {
return RandomUtil.randomInt(0, TINYINT_MAX + 1);
}
return RandomUtil.randomInt();