org.mule.transport.email.connectors
Class AbstractReceivingMailConnectorTestCase

java.lang.Object
  extended by org.mule.tck.junit4.AbstractMuleTestCase
      extended by org.mule.tck.junit4.AbstractMuleContextTestCase
          extended by org.mule.transport.AbstractConnectorTestCase
              extended by org.mule.transport.email.connectors.AbstractMailConnectorFunctionalTestCase
                  extended by org.mule.transport.email.connectors.AbstractReceivingMailConnectorTestCase
Direct Known Subclasses:
ImapConnectorTestCase, ImapsConnectorTestCase, Pop3ConnectorTestCase, Pop3sConnectorTestCase

public abstract class AbstractReceivingMailConnectorTestCase
extends AbstractMailConnectorFunctionalTestCase

Given an endpoint (AbstractMailConnectorFunctionalTestCase.getTestEndpointURI()) this waits for up to 10 seconds, hoping to receive the message stored in the mail server. It also runs the unit tests defined way down in AbstractConnectorTestCase.


Field Summary
static int POLL_PERIOD_MS
           
static int WAIT_PERIOD_MS
           
 
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
 
Fields inherited from class org.mule.transport.AbstractConnectorTestCase
connectorName, encoding
 
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 AbstractReceivingMailConnectorTestCase(String protocol)
           
 
Method Summary
protected static Map newEmailToStringServiceOverrides()
           
 void testReceiver()
           
 
Methods inherited from class org.mule.transport.email.connectors.AbstractMailConnectorFunctionalTestCase
assertMessageOk, doSetUp, doTearDown, getServers, getTestEndpointURI, getValidMessage, transformInboundMessage, uniqueName
 
Methods inherited from class org.mule.transport.AbstractConnectorTestCase
createConnector, getConnector, getConnectorAndAssert, testConnectorBeanProps, testConnectorExceptionHandling, testConnectorInitialise, testConnectorLifecycle, testConnectorListenerSupport, testConnectorMessageDispatcherFactory, testConnectorMessageRequesterFactory, testConnectorMuleMessageFactory
 
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
 

Field Detail

POLL_PERIOD_MS

public static final int POLL_PERIOD_MS
See Also:
Constant Field Values

WAIT_PERIOD_MS

public static final int WAIT_PERIOD_MS
See Also:
Constant Field Values
Constructor Detail

AbstractReceivingMailConnectorTestCase

protected AbstractReceivingMailConnectorTestCase(String protocol)
Method Detail

testReceiver

public void testReceiver()
                  throws Exception
Throws:
Exception

newEmailToStringServiceOverrides

protected static Map newEmailToStringServiceOverrides()


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