阅读背景:

JUnit中的测试方法可防止电子邮件发送

来源:互联网 

I'm developing in Java and using JUnit to test some of my methods. Some of my methods send emails. The emails are actually sent by a separate thread that is spawned. The problem is that whenever I test these methods everything goes fine except that the emails are not actually sent. I've followed the execution through the whole stack and every method related to sending the emails is being called and executed correctly. So I tested the methods outside of JUnit and the emails send fine.I'm developing in Java and using JUnit to test




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: