public class TestMailSender
extends java.lang.Object
implements org.springframework.mail.MailSender
Constructor and Description |
---|
TestMailSender() |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
java.util.List<org.springframework.mail.SimpleMailMessage> |
getReceivedMessages() |
void |
send(org.springframework.mail.SimpleMailMessage... simpleMessages) |
void |
send(org.springframework.mail.SimpleMailMessage simpleMessage) |
void |
setSubjectsToFail(java.util.List<java.lang.String> subjectsToFail) |
public void clear()
public void send(org.springframework.mail.SimpleMailMessage simpleMessage) throws org.springframework.mail.MailException
send
in interface org.springframework.mail.MailSender
org.springframework.mail.MailException
public void setSubjectsToFail(java.util.List<java.lang.String> subjectsToFail)
public void send(org.springframework.mail.SimpleMailMessage... simpleMessages) throws org.springframework.mail.MailException
send
in interface org.springframework.mail.MailSender
org.springframework.mail.MailException
public java.util.List<org.springframework.mail.SimpleMailMessage> getReceivedMessages()