org.unitils.mail
Class MailModule
java.lang.Object
org.unitils.mail.MailModule
- All Implemented Interfaces:
- org.unitils.core.Module
public class MailModule
- extends java.lang.Object
- implements org.unitils.core.Module
- Author:
- Jeroen Horemans, Thomas De Rycke, Willemijn Wouters
|
Field Summary |
static java.lang.String |
SMTP_DEFAULT_PORT
property in unitils.properties to set the mail port |
|
Method Summary |
void |
afterInit()
|
org.unitils.core.TestListener |
getTestListener()
|
void |
init(java.util.Properties configuration)
This method will do the initialization. |
void |
initSmtpServer(java.lang.Object testObject)
This will initialize a new SMTP server and the method will put it in the correct field (SimpleSmtpServer) of the testedObject. |
void |
stopSmtpServer(java.lang.Object testObject)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SMTP_DEFAULT_PORT
public static final java.lang.String SMTP_DEFAULT_PORT
- property in unitils.properties to set the mail port
- See Also:
- Constant Field Values
MailModule
public MailModule()
init
public void init(java.util.Properties configuration)
- This method will do the initialization.
This method checks if the user gives a smtp port otherwise the default smtp port (25) will be used.
- Specified by:
init in interface org.unitils.core.Module
- See Also:
Module.init(java.util.Properties)
afterInit
public void afterInit()
- Specified by:
afterInit in interface org.unitils.core.Module
initSmtpServer
public void initSmtpServer(java.lang.Object testObject)
- This will initialize a new SMTP server and the method will put it in the correct field (SimpleSmtpServer) of the testedObject.
- Parameters:
testObject - of type Object
stopSmtpServer
public void stopSmtpServer(java.lang.Object testObject)
- Parameters:
testObject -
getTestListener
public org.unitils.core.TestListener getTestListener()
- Specified by:
getTestListener in interface org.unitils.core.Module
- See Also:
Module.getTestListener()
Copyright © 2013-2014. All Rights Reserved.