完善 LoginLogServiceImplTest 单元测试

This commit is contained in:
YunaiV
2023-02-01 08:16:52 +08:00
parent 589aaab298
commit d60ff1688e
2 changed files with 48 additions and 80 deletions

View File

@@ -50,7 +50,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();