diff --git a/hutool-extra/src/test/java/cn/hutool/extra/mail/JakartaMailTest.java b/hutool-extra/src/test/java/cn/hutool/extra/mail/JakartaMailTest.java index 20b419cff..683580118 100644 --- a/hutool-extra/src/test/java/cn/hutool/extra/mail/JakartaMailTest.java +++ b/hutool-extra/src/test/java/cn/hutool/extra/mail/JakartaMailTest.java @@ -1,7 +1,6 @@ package cn.hutool.extra.mail; import cn.hutool.core.io.FileUtil; -import static org.junit.jupiter.api.Assertions.*; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; @@ -10,6 +9,8 @@ import java.util.HashMap; import java.util.Map; import java.util.Properties; +import static org.junit.jupiter.api.Assertions.assertEquals; + /** * 邮件发送测试 * @author looly @@ -42,7 +43,7 @@ public class JakartaMailTest { @Disabled public void sendHtmlWithImageTest() { Map map = new HashMap<>(); - InputStream in = getClass().getClassLoader().getResourceAsStream("image/Dromara.png"); + InputStream in = getClass().getClassLoader().getResourceAsStream("image/hutool.png"); map.put("", in); JakartaMailUtil.sendHtml("hutool@foxmail.com;li7hai26@outlook.com", "测试", "

邮件来自Hutool测试

", map); } @@ -62,7 +63,7 @@ public class JakartaMailTest { account.setSslEnable(true); account.setFrom("hutool@yeah.net"); account.setUser("hutool"); - account.setPass("q1w2e3"); + account.setPass("123456"); JakartaMailUtil.send(account, "hutool@foxmail.com", "测试", "

邮件来自Hutool测试

", true); } diff --git a/hutool-extra/src/test/java/cn/hutool/extra/mail/MailTest.java b/hutool-extra/src/test/java/cn/hutool/extra/mail/MailTest.java index 3a29c9ec2..785e4b199 100644 --- a/hutool-extra/src/test/java/cn/hutool/extra/mail/MailTest.java +++ b/hutool-extra/src/test/java/cn/hutool/extra/mail/MailTest.java @@ -1,7 +1,6 @@ package cn.hutool.extra.mail; import cn.hutool.core.io.FileUtil; -import static org.junit.jupiter.api.Assertions.*; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; @@ -10,6 +9,8 @@ import java.util.HashMap; import java.util.Map; import java.util.Properties; +import static org.junit.jupiter.api.Assertions.assertEquals; + /** * 邮件发送测试 * @author looly @@ -42,7 +43,7 @@ public class MailTest { @Disabled public void sendHtmlWithImageTest() { Map map = new HashMap<>(); - InputStream in = getClass().getClassLoader().getResourceAsStream("image/Dromara.png"); + InputStream in = getClass().getClassLoader().getResourceAsStream("image/hutool.png"); map.put("", in); MailUtil.sendHtml("hutool@foxmail.com;li7hai26@outlook.com", "测试", "

邮件来自Hutool测试

", map); } @@ -62,7 +63,7 @@ public class MailTest { account.setSslEnable(true); account.setFrom("hutool@yeah.net"); account.setUser("hutool"); - account.setPass("q1w2e3"); + account.setPass("123456"); MailUtil.send(account, "hutool@foxmail.com", "测试", "

邮件来自Hutool测试

", true); } diff --git a/hutool-extra/src/test/resources/config/mail.setting b/hutool-extra/src/test/resources/config/mail.setting index 2fd907007..c1981444d 100644 --- a/hutool-extra/src/test/resources/config/mail.setting +++ b/hutool-extra/src/test/resources/config/mail.setting @@ -13,7 +13,7 @@ from = 小磊 # 用户名(注意:如果使用foxmail邮箱,此处user为qq号) user = hutool@yeah.net # 密码 -pass = q1w2e3 +pass = 123456 # 使用 STARTTLS安全连接 starttlsEnable = true # 是否开启SSL diff --git a/hutool-extra/src/test/resources/example/mail-example.setting b/hutool-extra/src/test/resources/example/mail-example.setting index 94784ec03..a7f53a4c4 100644 --- a/hutool-extra/src/test/resources/example/mail-example.setting +++ b/hutool-extra/src/test/resources/example/mail-example.setting @@ -13,7 +13,7 @@ from = 小磊 # 用户名 user = hutool # 密码 -pass = q1w2e3 +pass = 123456 # 是否打开调试模式,调试模式会显示与邮件服务器通信过程,默认不开启 debug = true diff --git a/hutool-extra/src/test/resources/image/Dromara.png b/hutool-extra/src/test/resources/image/Dromara.png deleted file mode 100644 index b5c594ff9..000000000 Binary files a/hutool-extra/src/test/resources/image/Dromara.png and /dev/null differ diff --git a/hutool-extra/src/test/resources/image/hutool.png b/hutool-extra/src/test/resources/image/hutool.png new file mode 100644 index 000000000..fa5d60a5e Binary files /dev/null and b/hutool-extra/src/test/resources/image/hutool.png differ diff --git a/hutool-json/src/test/resources/suiteReport.json b/hutool-json/src/test/resources/suiteReport.json index c1adeba94..f22a6ed69 100644 --- a/hutool-json/src/test/resources/suiteReport.json +++ b/hutool-json/src/test/resources/suiteReport.json @@ -11,7 +11,7 @@ "charset": "UTF-8", "debug": false, "auth": true, - "pass": "q1w2e3", + "pass": "123456", "socketFactoryFallback": false, "socketFactoryPort": 465, "startttlsEnable": false,