org.codehaus.plexus.mailsender.test
public class MockMailSender extends AbstractMailSender
Version: $Id: MockMailSender.java 1313 2004-11-23 15:17:37Z evenisse $
| Method Summary | |
|---|---|
| MailMessage | getLastReceivedEmail()
Returns the last received email or null if no emails has been sent.
|
| Iterator | getReceivedEmail()
Get email received by this instance since start up.
|
| MailMessage | getReceivedEmail(int index)
Returns the email with the specified index in the list of sent emails.
|
| int | getReceivedEmailSize()
Get the number of messages received.
|
| void | initialize() |
| void | send(MailMessage message) |
null if no emails has been sent.
Returns: Returns the last received email or null if no emails has been sent.
Returns: Returns a Iterator of MailMessages.
Parameters: index The index.
Returns: Returns the email with the specified index in the list of sent emails.
Returns: Returns the number of received mails.