错误 MailServiceIT.testSendEmailFromTemplate:143

ERROR MailServiceIT.testSendEmailFromTemplate:143

我正在使用 JHipster 7.6.0 (Spring boot + React),当我 运行 集成测试时,我得到了以下错误。我在互联网上搜索但我什么也没找到 提前致谢!

[ERROR]   MailServiceIT.testSendEmailFromTemplate:143 
expected: "test title"
 but was: "Activation de votre compte gestionUtilisateurs"
[INFO] 
[ERROR] Tests run: 225, Failures: 1, Errors: 0, Skipped: 0
[INFO] 
[INFO] 
[INFO] --- jacoco-maven-plugin:0.8.7:report-integration (post-integration-tests) @ gestion-utilisateurs ---
[INFO] Loading execution data file C:\Users\ASUS\.jenkins\workspace\apisation portnet\target\jacoco-it.exec
[INFO] Analyzed bundle 'Gestion Utilisateurs' with 83 classes
[INFO] 
[INFO] --- maven-checkstyle-plugin:3.1.2:check (default) @ gestion-utilisateurs ---
[INFO] You have 0 Checkstyle violations.
[INFO] 
[INFO] --- maven-failsafe-plugin:3.0.0-M5:verify (verify) @ gestion-utilisateurs ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  03:20 min
[INFO] Finished at: 2022-02-21T14:36:42+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-failsafe-plugin:3.0.0-M5:verify (verify) on project gestion-utilisateurs: There are test failures.
[ERROR] 

如果您选择法语作为应用程序的本机语言,则会发生此故障。我在 JHipster GitHub 存储库上报告了这一点。我还提到了我是如何解决它的,这样集成测试就不会失败。 这是失败的详细信息:

https://github.com/jhipster/generator-jhipster/issues/17946

您可以在 建议修复 中找到我的问题解决方案 上面link部分

更新

此问题已在 JHipster 版本 7.7.0

后得到解决