public class TestMailSender extends CubaMailSender
NAME
Constructor and Description |
---|
TestMailSender() |
Modifier and Type | Method and Description |
---|---|
void |
clearBuffer() |
void |
failPlease() |
javax.mail.internet.MimeMessage |
fetchSentEmail() |
int |
getBufferSize() |
boolean |
isEmpty() |
void |
send(javax.mail.internet.MimeMessage mimeMessage) |
void |
workNormallyPlease() |
getHost, getPassword, getPort, getSession, getUsername, setConfiguration, setHost, setPassword, setPort, setUsername
createMimeMessage, createMimeMessage, getDefaultEncoding, getDefaultFileTypeMap, getJavaMailProperties, getProtocol, send, send, send, send, send, setDefaultEncoding, setDefaultFileTypeMap, setJavaMailProperties, setProtocol, setSession, testConnection
public void clearBuffer()
public int getBufferSize()
public javax.mail.internet.MimeMessage fetchSentEmail()
public void send(javax.mail.internet.MimeMessage mimeMessage) throws org.springframework.mail.MailException
send
in interface org.springframework.mail.javamail.JavaMailSender
send
in class org.springframework.mail.javamail.JavaMailSenderImpl
org.springframework.mail.MailException
public boolean isEmpty()
public void failPlease()
public void workNormallyPlease()