org.mule.transport.email.functional
Class AbstractEmailFunctionalTestCase
java.lang.Object
org.mule.tck.junit4.AbstractMuleTestCase
org.mule.tck.junit4.AbstractMuleContextTestCase
org.mule.tck.junit4.FunctionalTestCase
org.mule.transport.email.functional.AbstractEmailFunctionalTestCase
- Direct Known Subclasses:
- ImapCustomSeenHandlingTestCase, ImapFunctionalTestCase, ImapFunctionalWithAttachmentsTestCase, ImapMimeFunctionalTestCase, ImapsFunctionalTestCase, ImapUndeployTestCase, ImapWithAddressConfigFunctionalTestCase, Pop3FunctionalTestCase, Pop3MimeFunctionalTestCase, Pop3MimeNonAsciiFunctionalTestCase, Pop3MimeWithConnectorMule2042TestCase, Pop3NonAsciiFunctionalTestCase, Pop3sFunctionalTestCase, Pop3WithConnectorMule2042TestCase, SmtpAttachmentsFunctionalInboundAttachmentsOnlyTestCase, SmtpAttachmentsFunctionalOutboundAttachmentsOnlyTestCase, SmtpAttachmentsFunctionalTestCase, SmtpFunctionalTestCase, SmtpMimeFunctionalTestCase, SmtpMimeNonAsciiFunctionalTestCase, SmtpNonAsciiFunctionalTestCase, SmtpsFunctionalTestCase
public abstract class AbstractEmailFunctionalTestCase
- extends FunctionalTestCase
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,
boolean addSmtp)
|
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)
|
Methods inherited from class org.mule.tck.junit4.AbstractMuleContextTestCase |
addBuilders, configureMuleContext, createObject, createObject, disposeContext, disposeContextPerTest, doSetUp, getConfigurationResources, getSensingNullMessageProcessor, getStartUpProperties, getTestConnector, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEventContext, getTestEventContext, getTestEventUsingFlow, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEvent, getTestInboundEvent, getTestInboundEvent, 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, getTestHeader, 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 |
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
setup
protected com.icegreen.greenmail.util.ServerSetup setup
smtpSetup
protected com.icegreen.greenmail.util.ServerSetup smtpSetup
dynamicPort1
public DynamicPort dynamicPort1
dynamicPort2
public DynamicPort dynamicPort2
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,
boolean addSmtp)
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)
getConfigResources
protected String getConfigResources()
- Specified by:
getConfigResources
in class FunctionalTestCase
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
generateAndStoreEmail
protected void generateAndStoreEmail()
throws Exception
- Generates and store emails on the server.
- Throws:
Exception
- If there's a problem with the storing of the messages in the server.
storeEmail
protected void storeEmail(List<MimeMessage> messages)
throws Exception
- Helper method to store email on the server. Can be overriden by subclasses if other tests want to store
a different list of messages.
- Parameters:
messages
- The list of messages to be stored.
- Throws:
Exception
- If there's a problem with the storing of the messages in the server.
setAddAttachments
public void setAddAttachments(boolean addAttachments)
Copyright © 2003-2014 MuleSoft, Inc.. All Rights Reserved.