org.mule.transport.email.functional
Class AbstractEmailFunctionalTestCase

java.lang.Object
  extended by org.mule.tck.junit4.AbstractMuleTestCase
      extended by org.mule.tck.junit4.AbstractMuleContextTestCase
          extended by org.mule.tck.junit4.FunctionalTestCase
              extended by org.mule.tck.AbstractServiceAndFlowTestCase
                  extended by org.mule.transport.email.functional.AbstractEmailFunctionalTestCase
Direct Known Subclasses:
ImapCustomSeenHandlingTestCase, ImapFunctionalTestCase, ImapFunctionalWithAttachmentsTestCase, ImapMimeFunctionalTestCase, ImapsFunctionalTestCase, ImapWithAddressConfigFunctionalTestCase, NonInfiniteMoveToCopiesMule6069TestCase, Pop3FunctionalTestCase, Pop3MimeFunctionalTestCase, Pop3MimeNonAsciiFunctionalTestCase, Pop3MimeWithConnectorMule2042TestCase, Pop3NonAsciiFunctionalTestCase, Pop3sFunctionalTestCase, Pop3WithConnectorMule2042TestCase, SmtpAttachmentsFunctionalInboundAttachmentsOnlyTestCase, SmtpAttachmentsFunctionalOutboundAttachmentsOnlyTestCase, SmtpAttachmentsFunctionalTestCase, SmtpFunctionalTestCase, SmtpMimeFunctionalTestCase, SmtpMimeNonAsciiFunctionalTestCase, SmtpNonAsciiFunctionalTestCase, SmtpsFunctionalTestCase

public abstract class AbstractEmailFunctionalTestCase
extends AbstractServiceAndFlowTestCase


Nested Class Summary
 
Nested classes/interfaces inherited from class org.mule.tck.AbstractServiceAndFlowTestCase
AbstractServiceAndFlowTestCase.ConfigVariant
 
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_PROCESSED_MAILBOX
           
protected static String DEFAULT_USER
           
static long DELIVERY_DELAY_MS
           
 DynamicPort dynamicPort1
           
 DynamicPort dynamicPort2
           
protected static boolean MIME_MESSAGE
           
protected  com.icegreen.greenmail.util.GreenMail server
           
protected  com.icegreen.greenmail.util.ServerSetup setup
           
protected  com.icegreen.greenmail.util.ServerSetup smtpSetup
           
protected static boolean STRING_MESSAGE
           
 
Fields inherited from class org.mule.tck.AbstractServiceAndFlowTestCase
configResources, variant
 
Fields inherited from class org.mule.tck.junit4.AbstractMuleContextTestCase
callbackCalled, CLASSNAME_ANNOTATIONS_CONFIG_BUILDER, IGNORED_DOT_MULE_DIRS, LOCK_TIMEOUT, muleContext, RECEIVE_TIMEOUT, TEST_MESSAGE
 
Fields inherited from class org.mule.tck.junit4.AbstractMuleTestCase
DEFAULT_TEST_TIMEOUT_SECS, globalTimeout, logger, name, TEST_TIMEOUT_SYSTEM_PROPERTY
 
Constructor Summary
protected AbstractEmailFunctionalTestCase(AbstractServiceAndFlowTestCase.ConfigVariant variant, boolean isMimeMessage, String protocol)
           
protected AbstractEmailFunctionalTestCase(AbstractServiceAndFlowTestCase.ConfigVariant variant, boolean isMimeMessage, String protocol, Locale locale, String charset)
           
protected AbstractEmailFunctionalTestCase(AbstractServiceAndFlowTestCase.ConfigVariant variant, boolean isMimeMessage, String protocol, String configResources)
           
protected AbstractEmailFunctionalTestCase(AbstractServiceAndFlowTestCase.ConfigVariant variant, boolean isMimeMessage, String protocol, String configResources, boolean addSmtp)
           
protected AbstractEmailFunctionalTestCase(AbstractServiceAndFlowTestCase.ConfigVariant variant, boolean isMimeMessage, String protocol, String configResources, Locale locale, String charset)
           
protected AbstractEmailFunctionalTestCase(AbstractServiceAndFlowTestCase.ConfigVariant variant, boolean isMimeMessage, String protocol, String configResources, String email, String user, String message, String password, String charset)
           
 
Method Summary
protected  MuleContext createMuleContext()
           
protected  void doRequest()
           
protected  void doSend()
           
 void doTearDown()
          Enables the adding of extra behavior on the tear down stage of a test before the mule context is disposed in AbstractMuleContextTestCase.disposeContextPerTest().
 void setAddAttachments(boolean addAttachments)
           
protected  void verifyMessage(MimeMessage received)
           
protected  void verifyMessage(MimeMultipart mimeMultipart)
           
protected  void verifyMessage(String receivedText)
           
 
Methods inherited from class org.mule.tck.AbstractServiceAndFlowTestCase
doSetUp, doSetUpForFlow, doSetUpForService, getConfigResources, getTestHeader
 
Methods inherited from class org.mule.tck.junit4.FunctionalTestCase
clearFlowAssertions, getBuilder, getComponent, getComponent, getFlowConstruct, getFunctionalTestComponent, loadResource, loadResourceAsString, stopFlowConstruct, testFlow, testFlow
 
Methods inherited from class org.mule.tck.junit4.AbstractMuleContextTestCase
addBuilders, configureMuleContext, createObject, createObject, disposeContext, disposeContextPerTest, getConfigurationResources, getSensingNullMessageProcessor, getStartUpProperties, getTestConnector, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEventContext, getTestEventContext, getTestEventUsingFlow, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestService, getTestService, getTestService, getTestSession, getTestTransactedInboundEndpoint, getTestTransformer, getTriggerableMessageSource, getTriggerableMessageSource, initialiseObject, isDisposeContextPerClass, isGracefulShutdown, isStartContext, setDisposeContextPerClass, setStartContext, setUpMuleContext
 
Methods inherited from class org.mule.tck.junit4.AbstractMuleTestCase
clearExcludedFlag, clearRequestContext, createTestTimeoutRule, getTestTimeoutSecs, getTimeoutSystemProperty, initializeMuleTest, isDisabledInThisEnvironment, isDisabledInThisEnvironment, isExcluded, isFailOnTimeout, isOffline, isTestIncludedInExclusionFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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

DEFAULT_PROCESSED_MAILBOX

protected static final String DEFAULT_PROCESSED_MAILBOX
See Also:
Constant Field Values

server

protected com.icegreen.greenmail.util.GreenMail server

setup

protected com.icegreen.greenmail.util.ServerSetup setup

smtpSetup

protected com.icegreen.greenmail.util.ServerSetup smtpSetup

dynamicPort1

public DynamicPort dynamicPort1

dynamicPort2

public DynamicPort dynamicPort2
Constructor Detail

AbstractEmailFunctionalTestCase

protected AbstractEmailFunctionalTestCase(AbstractServiceAndFlowTestCase.ConfigVariant variant,
                                          boolean isMimeMessage,
                                          String protocol)

AbstractEmailFunctionalTestCase

protected AbstractEmailFunctionalTestCase(AbstractServiceAndFlowTestCase.ConfigVariant variant,
                                          boolean isMimeMessage,
                                          String protocol,
                                          Locale locale,
                                          String charset)

AbstractEmailFunctionalTestCase

protected AbstractEmailFunctionalTestCase(AbstractServiceAndFlowTestCase.ConfigVariant variant,
                                          boolean isMimeMessage,
                                          String protocol,
                                          String configResources)

AbstractEmailFunctionalTestCase

protected AbstractEmailFunctionalTestCase(AbstractServiceAndFlowTestCase.ConfigVariant variant,
                                          boolean isMimeMessage,
                                          String protocol,
                                          String configResources,
                                          boolean addSmtp)

AbstractEmailFunctionalTestCase

protected AbstractEmailFunctionalTestCase(AbstractServiceAndFlowTestCase.ConfigVariant variant,
                                          boolean isMimeMessage,
                                          String protocol,
                                          String configResources,
                                          Locale locale,
                                          String charset)

AbstractEmailFunctionalTestCase

protected AbstractEmailFunctionalTestCase(AbstractServiceAndFlowTestCase.ConfigVariant variant,
                                          boolean isMimeMessage,
                                          String protocol,
                                          String configResources,
                                          String email,
                                          String user,
                                          String message,
                                          String password,
                                          String charset)
Method Detail

createMuleContext

protected MuleContext createMuleContext()
                                 throws Exception
Overrides:
createMuleContext in class AbstractMuleContextTestCase
Throws:
Exception

doTearDown

public void doTearDown()
Description copied from class: AbstractMuleContextTestCase
Enables the adding of extra behavior on the tear down stage of a test before the mule context is disposed in AbstractMuleContextTestCase.disposeContextPerTest().

Under normal circumstances this method could be replace with a @After annotated method.

Overrides:
doTearDown in class AbstractMuleContextTestCase

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

setAddAttachments

public void setAddAttachments(boolean addAttachments)


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