org.mule.providers.email
Class SmtpConnectorTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.mule.tck.AbstractMuleTestCase
              extended by org.mule.tck.providers.AbstractConnectorTestCase
                  extended by org.mule.providers.email.AbstractMailConnectorFunctionalTestCase
                      extended by org.mule.providers.email.SmtpConnectorTestCase
All Implemented Interfaces:
Test, org.mule.tck.TestCaseWatchdogTimeoutHandler
Direct Known Subclasses:
SmtpsConnectorTestCase

public class SmtpConnectorTestCase
extends AbstractMailConnectorFunctionalTestCase

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


Nested Class Summary
 
Nested classes/interfaces 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.AbstractMuleTestCase
IGNORED_DOT_MULE_DIRS, logger
 
Constructor Summary
SmtpConnectorTestCase()
           
 
Method Summary
 org.mule.umo.provider.UMOConnector createConnector(boolean init)
           
 void doTestSend()
           
 String getTestEndpointURI()
           
 void testConnectorListenerSupport()
          The SmtpConnector does not accept listeners, so the test in the superclass makes no sense here.
 void testConnectorReinitialise()
           
 void testSend()
           
 
Methods inherited from class org.mule.providers.email.AbstractMailConnectorFunctionalTestCase
assertMessageOk, createConnector, doSetUp, doTearDown, getConnectorName, getImapsTestEndpointURI, getImapTestEndpointURI, getPop3sTestEndpointURI, getPop3TestEndpointURI, getServers, getSmtpsTestEndpointURI, getSmtpTestEndpointURI, getValidMessage, repeatTest, startServers, stopServers
 
Methods inherited from class org.mule.tck.providers.AbstractConnectorTestCase
getConnector, getDescriptor, getModel, testConnectorBeanProps, testConnectorExceptionHandling, testConnectorInitialise, testConnectorLifecycle, testConnectorMessageAdapter, testConnectorMessageDispatcherFactory
 
Methods inherited from class org.mule.tck.AbstractMuleTestCase
createTestInfo, createWatchdog, disposeManager, getDefaultModel, getManager, getName, getTestComponent, getTestConnector, getTestDescriptor, getTestEndpoint, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEventContext, getTestInfo, getTestManager, getTestSession, getTestTransformer, handleTimeout, isDisabledInThisEnvironment, isDisabledInThisEnvironment, isDisposeManagerPerSuite, isExcluded, 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
 
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
Constructor Detail

SmtpConnectorTestCase

public SmtpConnectorTestCase()
Method Detail

createConnector

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

getTestEndpointURI

public String getTestEndpointURI()
Specified by:
getTestEndpointURI in class org.mule.tck.providers.AbstractConnectorTestCase

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.

Overrides:
testConnectorListenerSupport in class org.mule.tck.providers.AbstractConnectorTestCase
Throws:
Exception

testSend

public void testSend()
              throws Exception
Throws:
Exception

doTestSend

public void doTestSend()
                throws Exception
Throws:
Exception

testConnectorReinitialise

public void testConnectorReinitialise()
                               throws Exception
Throws:
Exception


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