spurcell
Sep 12th, 2007, 09:50 AM
Hello,
Implementing the JavaMailSender iface, and using DI for configuration. Within a UnitTest that includes sending an email, I would like to be able to mock in the MailSender and have it validate the TO, FROM, subject, etc. I do not want the sender to actually send emails.
Is there a mock already created for this? I googled, but I am coming up with nothing at this time.
Thanks,
Implementing the JavaMailSender iface, and using DI for configuration. Within a UnitTest that includes sending an email, I would like to be able to mock in the MailSender and have it validate the TO, FROM, subject, etc. I do not want the sender to actually send emails.
Is there a mock already created for this? I googled, but I am coming up with nothing at this time.
Thanks,