org.codehaus.plexus.mailsender.test

Class MockMailSender

public class MockMailSender extends AbstractMailSender

Version: $Id: MockMailSender.java 1313 2004-11-23 15:17:37Z evenisse $

Author: Trygve Laugstøl Emmanuel Venisse

Method Summary
MailMessagegetLastReceivedEmail()
Returns the last received email or null if no emails has been sent.
IteratorgetReceivedEmail()
Get email received by this instance since start up.
MailMessagegetReceivedEmail(int index)
Returns the email with the specified index in the list of sent emails.
intgetReceivedEmailSize()
Get the number of messages received.
voidinitialize()
voidsend(MailMessage message)

Method Detail

getLastReceivedEmail

public MailMessage getLastReceivedEmail()
Returns the last received email or null if no emails has been sent.

Returns: Returns the last received email or null if no emails has been sent.

getReceivedEmail

public Iterator getReceivedEmail()
Get email received by this instance since start up.

Returns: Returns a Iterator of MailMessages.

getReceivedEmail

public MailMessage getReceivedEmail(int index)
Returns the email with the specified index in the list of sent emails.

Parameters: index The index.

Returns: Returns the email with the specified index in the list of sent emails.

getReceivedEmailSize

public int getReceivedEmailSize()
Get the number of messages received.

Returns: Returns the number of received mails.

initialize

public void initialize()

send

public void send(MailMessage message)
Copyright © {inceptionYear}-2007 null. All Rights Reserved.