org.unitils.mail
Interface SmtpServer

All Known Implementing Classes:
SmtpServerImpl

public interface SmtpServer

Interface for the wrapper of the SimpleSmtpServer of Wiser.

Author:
Jeroen Horemans, Thomas De Rycke, Willemijn Wouters

Method Summary
 List<SmtpMessage> getReceivedEmail()
          This email sends you a list of all the mails you've sent to the fake SMTP server.
 int getReceivedEmailSize()
          This method give you the amount of mails that you've sent to the SMTP server.
 Boolean isRunning()
          Returns if the server is running or not.
 void stop()
          This method will stop the SMTP server.
 

Method Detail

getReceivedEmailSize

int getReceivedEmailSize()
This method give you the amount of mails that you've sent to the SMTP server.

Returns:
int

getReceivedEmail

List<SmtpMessage> getReceivedEmail()
                                   throws IOException,
                                          javax.mail.MessagingException
This email sends you a list of all the mails you've sent to the fake SMTP server.

Returns:
List
Throws:
javax.mail.MessagingException
IOException

stop

void stop()
This method will stop the SMTP server.


isRunning

Boolean isRunning()
Returns if the server is running or not.

Returns:
Boolean


Copyright © 2013. All Rights Reserved.