org.mule.transport.email
Class AbstractGreenMailSupport

java.lang.Object
  extended by org.mule.transport.email.AbstractGreenMailSupport
Direct Known Subclasses:
FixedPortGreenMailSupport

public abstract class AbstractGreenMailSupport
extends Object


Field Summary
static String ALICE
           
static String ALICE_EMAIL
           
static String AT_EXAMPLE_COM
           
static String BOB
           
static String BOB_EMAIL
           
static String LOCALHOST
           
protected  Log logger
           
static String MESSAGE
           
static String PASSWORD
           
static long STARTUP_PERIOD_MS
           
 
Constructor Summary
AbstractGreenMailSupport()
           
 
Method Summary
 void createAliceAndStoreEmail(Object message)
           
 void createBobAndStoreEmail(Object message)
           
 com.icegreen.greenmail.user.GreenMailUser createUser(String email, String user, String password)
           
protected  void createUserAndStoreEmail(String email, String user, String password, Object message)
           
 com.icegreen.greenmail.util.GreenMail getServers()
           
 MimeMessage getValidMessage(String to)
           
protected abstract  int nextPort()
           
 void startServers(List<Integer> list)
           
protected  void stopServers()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOCALHOST

public static final String LOCALHOST
See Also:
Constant Field Values

MESSAGE

public static final String MESSAGE
See Also:
Constant Field Values

AT_EXAMPLE_COM

public static final String AT_EXAMPLE_COM
See Also:
Constant Field Values

BOB

public static final String BOB
See Also:
Constant Field Values

BOB_EMAIL

public static final String BOB_EMAIL
See Also:
Constant Field Values

ALICE

public static final String ALICE
See Also:
Constant Field Values

ALICE_EMAIL

public static final String ALICE_EMAIL
See Also:
Constant Field Values

PASSWORD

public static final String PASSWORD
See Also:
Constant Field Values

STARTUP_PERIOD_MS

public static final long STARTUP_PERIOD_MS
See Also:
Constant Field Values

logger

protected final Log logger
Constructor Detail

AbstractGreenMailSupport

public AbstractGreenMailSupport()
Method Detail

createUserAndStoreEmail

protected void createUserAndStoreEmail(String email,
                                       String user,
                                       String password,
                                       Object message)
                                throws Exception
Throws:
Exception

createUser

public com.icegreen.greenmail.user.GreenMailUser createUser(String email,
                                                            String user,
                                                            String password)
                                                     throws com.icegreen.greenmail.user.UserException
Throws:
com.icegreen.greenmail.user.UserException

createBobAndStoreEmail

public void createBobAndStoreEmail(Object message)
                            throws Exception
Throws:
Exception

createAliceAndStoreEmail

public void createAliceAndStoreEmail(Object message)
                              throws Exception
Throws:
Exception

startServers

public void startServers(List<Integer> list)
                  throws Exception
Throws:
Exception

nextPort

protected abstract int nextPort()

stopServers

protected void stopServers()
                    throws Exception
Throws:
Exception

getServers

public com.icegreen.greenmail.util.GreenMail getServers()

getValidMessage

public MimeMessage getValidMessage(String to)
                            throws Exception
Throws:
Exception


Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.