org.mule.providers.email
Class SmtpConnectorTestCase

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.mule.tck.AbstractMuleTestCase
              extended byorg.mule.tck.providers.AbstractConnectorTestCase
                  extended byorg.mule.providers.email.AbstractMailConnectorFunctionalTestCase
                      extended byorg.mule.providers.email.SmtpConnectorTestCase
All Implemented Interfaces:
Test
Direct Known Subclasses:
SmtpsConnectorTestCase

public class SmtpConnectorTestCase
extends AbstractMailConnectorFunctionalTestCase

Send a message via SMTP to a (greenmail) server.


Nested Class Summary
 
Nested classes inherited from class org.mule.tck.AbstractMuleTestCase
org.mule.tck.AbstractMuleTestCase.TestInfo
 
Field Summary
static long DELIVERY_DELAY_MS
           
 
Fields inherited from class org.mule.providers.email.AbstractMailConnectorFunctionalTestCase
FROM, LOCALHOST, PASSWORD, RETRY_LIMIT, TO, USER
 
Fields inherited from class org.mule.tck.providers.AbstractConnectorTestCase
connector, descriptor, model
 
Fields inherited from class org.mule.tck.AbstractMuleTestCase
logger
 
Constructor Summary
SmtpConnectorTestCase()
           
 
Method Summary
 void doTestSend()
           
 org.mule.umo.provider.UMOConnector getConnector(boolean init)
           
 String getTestEndpointURI()
           
 void testConnectorListenerSupport()
          The SmtpConnector does not accept listeners, so the test in the superclass makes no sense here.
 void testSend()
           
 
Methods inherited from class org.mule.providers.email.AbstractMailConnectorFunctionalTestCase
assertMessageOk, doSetUp, doTearDown, getConnector, getConnectorName, getImapsTestEndpointURI, getImapTestEndpointURI, getPop3sTestEndpointURI, getPop3TestEndpointURI, getServers, getSmtpsTestEndpointURI, getSmtpTestEndpointURI, getValidMessage, repeatTest, startServers, stopServers
 
Methods inherited from class org.mule.tck.providers.AbstractConnectorTestCase
testConnectorBeanProps, testConnectorExceptionHandling, testConnectorInitialise, testConnectorLifecycle, testConnectorMessageAdapter, testConnectorMessageDispatcherFactory
 
Methods inherited from class org.mule.tck.AbstractMuleTestCase
addTest, disposeManager, finalize, getDefaultModel, getManager, getName, getTestComponent, getTestConnector, getTestDescriptor, getTestEndpoint, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEventContext, getTestInfo, getTestManager, getTestSession, getTestTransformer, isDisabledInThisEnvironment, isDisabledInThisEnvironment, isOffline, run, runBare, setDisposeManagerPerSuite, setUp, suitePostSetUp, suitePostTearDown, suitePreSetUp, suitePreTearDown, tearDown
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, run, runTest, setName, 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
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DELIVERY_DELAY_MS

public static final long DELIVERY_DELAY_MS
See Also:
Constant Field Values
Constructor Detail

SmtpConnectorTestCase

public SmtpConnectorTestCase()
Method Detail

getConnector

public org.mule.umo.provider.UMOConnector getConnector(boolean init)
                                                throws Exception
Specified by:
getConnector in class AbstractMailConnectorFunctionalTestCase
Throws:
Exception

getTestEndpointURI

public String getTestEndpointURI()

testConnectorListenerSupport

public void testConnectorListenerSupport()
                                  throws Exception
The SmtpConnector does not accept listeners, so the test in the superclass makes no sense here. Instead, we simply check that a listener is rejected.

Throws:
Exception

testSend

public void testSend()
              throws Exception
Throws:
Exception

doTestSend

public void doTestSend()
                throws Exception
Throws:
Exception


Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.