邮箱模块:完善 template 的单元测试

This commit is contained in:
YunaiV
2023-01-26 23:32:18 +08:00
parent 0895ee7d98
commit c0b029b244
9 changed files with 300 additions and 22 deletions

View File

@ -41,6 +41,11 @@ public class LocalDateTimeUtils {
return LocalDateTime.of(year, mouth, day, 0, 0, 0);
}
public static LocalDateTime[] buildBetweenTime(int year1, int mouth1, int day1,
int year2, int mouth2, int day2) {
return new LocalDateTime[]{buildTime(year1, mouth1, day1), buildTime(year2, mouth2, day2)};
}
/**
* 判断当前时间是否在该时间范围内
*