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
 java.util.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.
 java.lang.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

java.util.List<SmtpMessage> getReceivedEmail()
                                             throws java.io.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
java.io.IOException

stop

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


isRunning

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

Returns:
Boolean


Copyright © 2013-2014. All Rights Reserved.