org.mule.transport
Class AbstractConnectorTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.mule.tck.AbstractMuleTestCase
              extended by org.mule.transport.AbstractConnectorTestCase
All Implemented Interfaces:
junit.framework.Test, TestCaseWatchdogTimeoutHandler
Direct Known Subclasses:
AbstractMailConnectorFunctionalTestCase, AjaxEmbeddedConnectorTestCase, AjaxServletConnectorTestCase, AxisConnectorTestCase, EjbConnectorTestCase, FileConnectorTestCase, FTPConnectorTestCase, HttpConnectorTestCase, HttpsConnectorTestCase, IBeansConnectorTestCase, JdbcConnectorTestCase, JnpConnectorTestCase, MulticastConnectorTestCase, PromptStdioConnectorTestCase, QuartzConnectorTestCase, RmiConnectorTestCase, ServletConnectorTestCase, SslConnectorTestCase, TcpConnectorTestCase, UdpConnectorTestCase, VMConnectorTestCase, XmppConnectorTestCase

public abstract class AbstractConnectorTestCase
extends AbstractMuleTestCase

AbstractConnectorTestCase tests common behaviour of all endpoints and provides 'reminder' methods for implementation specific interface methods


Nested Class Summary
 
Nested classes/interfaces inherited from class org.mule.tck.AbstractMuleTestCase
AbstractMuleTestCase.TestInfo
 
Field Summary
protected  String connectorName
           
protected  String encoding
           
 
Fields inherited from class org.mule.tck.AbstractMuleTestCase
callbackCalled, CLASSNAME_ANNOTATIONS_CONFIG_BUILDER, DEFAULT_MULE_TEST_TIMEOUT_SECS, IGNORED_DOT_MULE_DIRS, LOCK_TIMEOUT, logger, muleContext, numPorts, ports, PROPERTY_MULE_TEST_TIMEOUT, RECEIVE_TIMEOUT, TEST_MESSAGE, testTimeoutSecs
 
Constructor Summary
AbstractConnectorTestCase()
           
 
Method Summary
abstract  Connector createConnector()
           
protected  void doSetUp()
          Exactly the same a AbstractMuleTestCase.setUp() in normal JUnit test cases.
protected  void doTearDown()
          Exactly the same a AbstractMuleTestCase.tearDown() in normal JUnit test cases.
protected  Connector getConnector()
          Look up the connector from the Registry
protected  Connector getConnectorAndAssert()
           
abstract  String getTestEndpointURI()
           
abstract  Object getValidMessage()
           
 void testConnectorBeanProps()
           
 void testConnectorExceptionHandling()
           
 void testConnectorInitialise()
           
 void testConnectorLifecycle()
           
 void testConnectorListenerSupport()
           
 void testConnectorMessageDispatcherFactory()
           
 void testConnectorMessageRequesterFactory()
           
 void testConnectorMuleMessageFactory()
          This test only asserts that the transport descriptor mechanism works for creating the MuleMessageFactory.
 
Methods inherited from class org.mule.tck.AbstractMuleTestCase
addBuilders, checkPorts, configureMuleContext, createMuleContext, createObject, createObject, createTestInfo, createWatchdog, disposeManager, findFreePorts, getBuilder, getConfigurationResources, getPorts, getSensingNullMessageProcessor, getStartUpProperties, getTestConnector, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEventContext, getTestEventContext, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEvent, getTestInboundEvent, getTestInboundEvent, getTestInfo, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestService, getTestService, getTestService, getTestSession, getTestTimeoutSecs, getTestTransactedInboundEndpoint, getTestTransformer, getTriggerableMessageSource, getTriggerableMessageSource, giveTheTestSomeTimeToCleanUpAndThenKillIt, handleTimeout, initialiseObject, initTestTimeoutSecs, isDisabledInThisEnvironment, isDisabledInThisEnvironment, isDisposeManagerPerSuite, isExcluded, isGracefulShutdown, isOffline, isPortFree, isStartContext, registerTestMethod, run, runBare, setDisposeManagerPerSuite, setFailOnTimeout, setName, setStartContext, setUp, suitePostTearDown, suitePreSetUp, tearDown
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, runTest, 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, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

connectorName

protected String connectorName

encoding

protected String encoding
Constructor Detail

AbstractConnectorTestCase

public AbstractConnectorTestCase()
Method Detail

doSetUp

protected void doSetUp()
                throws Exception
Description copied from class: AbstractMuleTestCase
Exactly the same a AbstractMuleTestCase.setUp() in normal JUnit test cases. this is called before a test method has been called.

Overrides:
doSetUp in class AbstractMuleTestCase
Throws:
Exception - if something fails that should halt the testcase

doTearDown

protected void doTearDown()
                   throws Exception
Description copied from class: AbstractMuleTestCase
Exactly the same a AbstractMuleTestCase.tearDown() in normal JUnit test cases. this is called after a test method has been called.

Overrides:
doTearDown in class AbstractMuleTestCase
Throws:
Exception - if something fails that should halt the testcase

getConnector

protected Connector getConnector()
Look up the connector from the Registry


getConnectorAndAssert

protected Connector getConnectorAndAssert()

testConnectorExceptionHandling

public void testConnectorExceptionHandling()
                                    throws Exception
Throws:
Exception

testConnectorLifecycle

public void testConnectorLifecycle()
                            throws Exception
Throws:
Exception

testConnectorListenerSupport

public void testConnectorListenerSupport()
                                  throws Exception
Throws:
Exception

testConnectorBeanProps

public void testConnectorBeanProps()
                            throws Exception
Throws:
Exception

testConnectorMuleMessageFactory

public void testConnectorMuleMessageFactory()
                                     throws Exception
This test only asserts that the transport descriptor mechanism works for creating the MuleMessageFactory. For exhaustive tests of MuleMessageFactory implementations see AbstractMuleMessageFactoryTestCase and subclasses.

Throws:
Exception

testConnectorMessageDispatcherFactory

public void testConnectorMessageDispatcherFactory()
                                           throws Exception
Throws:
Exception

testConnectorMessageRequesterFactory

public void testConnectorMessageRequesterFactory()
                                          throws Exception
Throws:
Exception

testConnectorInitialise

public void testConnectorInitialise()
                             throws Exception
Throws:
Exception

createConnector

public abstract Connector createConnector()
                                   throws Exception
Throws:
Exception

getValidMessage

public abstract Object getValidMessage()
                                throws Exception
Throws:
Exception

getTestEndpointURI

public abstract String getTestEndpointURI()


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