org.mule.transport.email.functional
Class AbstractEmailFunctionalTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.mule.tck.AbstractMuleTestCase
              extended by org.mule.tck.FunctionalTestCase
                  extended by org.mule.tck.DynamicPortTestCase
                      extended by org.mule.transport.email.functional.AbstractEmailFunctionalTestCase
All Implemented Interfaces:
junit.framework.Test, TestCaseWatchdogTimeoutHandler
Direct Known Subclasses:
ImapCustomSeenHandlingTestCase, ImapFunctionalTestCase, ImapMimeFunctionalTestCase, ImapsFunctionalTestCase, ImapWithAddressConfigFunctionalTestCase, Pop3FunctionalTestCase, Pop3MimeFunctionalTestCase, Pop3MimeNonAsciiFunctionalTestCase, Pop3MimeWithConnectorMule2042TestCase, Pop3NonAsciiFunctionalTestCase, Pop3sFunctionalTestCase, Pop3WithConnectorMule2042TestCase, SmtpAttachmentsFunctionalInboundAttachmentsOnlyTestCase, SmtpAttachmentsFunctionalOutboundAttachmentsOnlyTestCase, SmtpAttachmentsFunctionalTestCase, SmtpFunctionalTestCase, SmtpMimeFunctionalTestCase, SmtpMimeNonAsciiFunctionalTestCase, SmtpNonAsciiFunctionalTestCase, SmtpsFunctionalTestCase

public abstract class AbstractEmailFunctionalTestCase
extends DynamicPortTestCase


Nested Class Summary
 
Nested classes/interfaces inherited from class org.mule.tck.AbstractMuleTestCase
AbstractMuleTestCase.TestInfo
 
Field Summary
protected static String CONFIG_BASE
           
protected static String DEFAULT_EMAIL
           
protected static String DEFAULT_MESSAGE
           
protected static String DEFAULT_PASSWORD
           
protected static String DEFAULT_USER
           
static long DELIVERY_DELAY_MS
           
protected static boolean MIME_MESSAGE
           
protected  com.icegreen.greenmail.util.GreenMail server
           
protected static boolean STRING_MESSAGE
           
 
Fields inherited from class org.mule.tck.AbstractMuleTestCase
callbackCalled, CLASSNAME_ANNOTATIONS_CONFIG_BUILDER, DEFAULT_MULE_TEST_TIMEOUT_SECS, IGNORED_DOT_MULE_DIRS, LOCK_TIMEOUT, logger, muleContext, numPorts, ports, PROPERTY_MULE_TEST_TIMEOUT, RECEIVE_TIMEOUT, TEST_MESSAGE, testTimeoutSecs
 
Constructor Summary
protected AbstractEmailFunctionalTestCase(boolean isMimeMessage, String protocol)
           
protected AbstractEmailFunctionalTestCase(boolean isMimeMessage, String protocol, Locale locale, String charset)
           
protected AbstractEmailFunctionalTestCase(boolean isMimeMessage, String protocol, String configFile)
           
protected AbstractEmailFunctionalTestCase(boolean isMimeMessage, String protocol, String configFile, Locale locale, String charset)
           
protected AbstractEmailFunctionalTestCase(boolean isMimeMessage, String protocol, String configFile, String email, String user, String message, String password, String charset)
           
 
Method Summary
protected  void doRequest()
           
protected  void doSend()
           
protected  String getConfigResources()
           
protected  int getNumPortsToFind()
           
 void setAddAttachments(boolean addAttachments)
           
protected  void suitePostTearDown()
          Run after all testcase teardowns.
protected  void suitePreSetUp()
          Run before any testcase setup.
protected  void verifyMessage(MimeMessage received)
           
protected  void verifyMessage(MimeMultipart mimeMultipart)
           
protected  void verifyMessage(String receivedText)
           
 
Methods inherited from class org.mule.tck.DynamicPortTestCase
doSetUp, doTearDown
 
Methods inherited from class org.mule.tck.FunctionalTestCase
getBuilder, getComponent, getComponent, getFunctionalTestComponent, loadResource, loadResourceAsString
 
Methods inherited from class org.mule.tck.AbstractMuleTestCase
addBuilders, checkPorts, configureMuleContext, createMuleContext, createObject, createObject, createTestInfo, createWatchdog, disposeManager, findFreePorts, getConfigurationResources, getPorts, getSensingNullMessageProcessor, getStartUpProperties, getTestConnector, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEventContext, getTestEventContext, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEvent, getTestInboundEvent, getTestInboundEvent, getTestInfo, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestService, getTestService, getTestService, getTestSession, getTestTimeoutSecs, getTestTransactedInboundEndpoint, getTestTransformer, getTriggerableMessageSource, getTriggerableMessageSource, giveTheTestSomeTimeToCleanUpAndThenKillIt, handleTimeout, initialiseObject, initTestTimeoutSecs, isDisabledInThisEnvironment, isDisabledInThisEnvironment, isDisposeManagerPerSuite, isExcluded, isGracefulShutdown, isOffline, isPortFree, isStartContext, registerTestMethod, run, runBare, setDisposeManagerPerSuite, setFailOnTimeout, setName, setStartContext, setUp, tearDown
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, runTest, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DELIVERY_DELAY_MS

public static final long DELIVERY_DELAY_MS
See Also:
Constant Field Values

CONFIG_BASE

protected static final String CONFIG_BASE
See Also:
Constant Field Values

MIME_MESSAGE

protected static final boolean MIME_MESSAGE
See Also:
Constant Field Values

STRING_MESSAGE

protected static final boolean STRING_MESSAGE
See Also:
Constant Field Values

DEFAULT_EMAIL

protected static final String DEFAULT_EMAIL
See Also:
Constant Field Values

DEFAULT_USER

protected static final String DEFAULT_USER
See Also:
Constant Field Values

DEFAULT_MESSAGE

protected static final String DEFAULT_MESSAGE
See Also:
Constant Field Values

DEFAULT_PASSWORD

protected static final String DEFAULT_PASSWORD
See Also:
Constant Field Values

server

protected com.icegreen.greenmail.util.GreenMail server
Constructor Detail

AbstractEmailFunctionalTestCase

protected AbstractEmailFunctionalTestCase(boolean isMimeMessage,
                                          String protocol)

AbstractEmailFunctionalTestCase

protected AbstractEmailFunctionalTestCase(boolean isMimeMessage,
                                          String protocol,
                                          Locale locale,
                                          String charset)

AbstractEmailFunctionalTestCase

protected AbstractEmailFunctionalTestCase(boolean isMimeMessage,
                                          String protocol,
                                          String configFile)

AbstractEmailFunctionalTestCase

protected AbstractEmailFunctionalTestCase(boolean isMimeMessage,
                                          String protocol,
                                          String configFile,
                                          Locale locale,
                                          String charset)

AbstractEmailFunctionalTestCase

protected AbstractEmailFunctionalTestCase(boolean isMimeMessage,
                                          String protocol,
                                          String configFile,
                                          String email,
                                          String user,
                                          String message,
                                          String password,
                                          String charset)
Method Detail

getConfigResources

protected String getConfigResources()
Specified by:
getConfigResources in class FunctionalTestCase

suitePreSetUp

protected void suitePreSetUp()
                      throws Exception
Description copied from class: AbstractMuleTestCase
Run before any testcase setup. This is called once only before the test suite runs.

Overrides:
suitePreSetUp in class AbstractMuleTestCase
Throws:
Exception

suitePostTearDown

protected void suitePostTearDown()
                          throws Exception
Description copied from class: AbstractMuleTestCase
Run after all testcase teardowns. This is called once only after all the tests in the suite have run.

Overrides:
suitePostTearDown in class AbstractMuleTestCase
Throws:
Exception

doSend

protected void doSend()
               throws Exception
Throws:
Exception

verifyMessage

protected void verifyMessage(MimeMessage received)
                      throws Exception
Throws:
Exception

verifyMessage

protected void verifyMessage(MimeMultipart mimeMultipart)
                      throws Exception
Throws:
Exception

verifyMessage

protected void verifyMessage(String receivedText)

doRequest

protected void doRequest()
                  throws Exception
Throws:
Exception

getNumPortsToFind

protected int getNumPortsToFind()
Specified by:
getNumPortsToFind in class DynamicPortTestCase

setAddAttachments

public void setAddAttachments(boolean addAttachments)


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