Update EmailServiceTest.java
This commit is contained in:
parent
757713effe
commit
5a0ba9db20
@ -12,7 +12,7 @@ public class EmailServiceTest {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testSendVerifyCode() {
|
public void testSendVerifyCode() {
|
||||||
String email = "864508127@qq.com"; // 使用实际的QQ邮箱
|
String email = "example@qq.com"; // 使用实际的QQ邮箱
|
||||||
String type = "REGISTER";
|
String type = "REGISTER";
|
||||||
|
|
||||||
String verifyCode = emailService.sendVerifyCode(email, type);
|
String verifyCode = emailService.sendVerifyCode(email, type);
|
||||||
@ -25,7 +25,7 @@ public class EmailServiceTest {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testSendFrequencyLimit() {
|
public void testSendFrequencyLimit() {
|
||||||
String email = "864508127@qq.com"; // 使用实际的QQ邮箱
|
String email = "example@qq.com"; // 使用实际的QQ邮箱
|
||||||
|
|
||||||
// 第一次发送应该成功
|
// 第一次发送应该成功
|
||||||
assert emailService.canSendCode(email) : "Should be able to send first code";
|
assert emailService.canSendCode(email) : "Should be able to send first code";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user