org.mule.transport.email.connectors
Class SmtpConnectorTestCase
java.lang.Object
org.mule.tck.junit4.AbstractMuleTestCase
org.mule.tck.junit4.AbstractMuleContextTestCase
org.mule.transport.AbstractConnectorTestCase
org.mule.transport.email.connectors.AbstractMailConnectorFunctionalTestCase
org.mule.transport.email.connectors.SmtpConnectorTestCase
- Direct Known Subclasses:
- SmtpsConnectorTestCase
public class SmtpConnectorTestCase
- extends AbstractMailConnectorFunctionalTestCase
Send a message via SMTP to a (greenmail) server.
Fields inherited from class org.mule.transport.email.connectors.AbstractMailConnectorFunctionalTestCase |
dynamicPort, EMAIL, LOCALHOST, MESSAGE, NO_INITIAL_EMAIL, PASSWORD, PROVIDER, SEND_INITIAL_EMAIL, START_ATTEMPTS, STARTUP_PERIOD_MS, TEST_ATTEMPTS, USER |
Methods inherited from class org.mule.tck.junit4.AbstractMuleContextTestCase |
addBuilders, configureMuleContext, createMuleContext, createObject, createObject, disposeContext, disposeContextPerTest, getBuilder, 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, 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 |
SmtpConnectorTestCase
public SmtpConnectorTestCase()
SmtpConnectorTestCase
protected SmtpConnectorTestCase(boolean initialEmail,
String protocol)
createConnector
public Connector createConnector()
throws Exception
- Specified by:
createConnector
in class AbstractConnectorTestCase
- Throws:
Exception
transformInboundMessage
protected boolean transformInboundMessage()
- Overrides:
transformInboundMessage
in class AbstractMailConnectorFunctionalTestCase
testConnectorListenerSupport
public void testConnectorListenerSupport()
throws Exception
- The SmtpConnector does not accept listeners, so the test in the superclass makes no sense
here. The SMTP transport does not even support inbound endpoints, as SMTP is an outbound
transport only so you cannot even create an inbound endpoint to register as listener.
- Overrides:
testConnectorListenerSupport
in class AbstractConnectorTestCase
- Throws:
Exception
testSmtpDoesNotSupportOutboundEndpoints
public void testSmtpDoesNotSupportOutboundEndpoints()
throws MuleException
- Throws:
MuleException
testSend
public void testSend()
throws Exception
- Throws:
Exception
testConnectorRestart
public void testConnectorRestart()
throws Exception
- Throws:
Exception
testNullUsernameAndPassword
public void testNullUsernameAndPassword()
throws Exception
- Throws:
Exception
Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.