org.mule.tck.functional
Class AbstractProviderFunctionalTestCase

java.lang.Object
  extended byTestCase
      extended byorg.mule.tck.AbstractMuleTestCase
          extended byorg.mule.tck.functional.AbstractProviderFunctionalTestCase

public abstract class AbstractProviderFunctionalTestCase
extends AbstractMuleTestCase

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class org.mule.tck.AbstractMuleTestCase
AbstractMuleTestCase.TestInfo
 
Field Summary
protected  boolean callbackCalled
           
protected  int callbackCount
           
protected  UMOConnector connector
           
protected  MuleDescriptor descriptor
           
protected static UMOManager manager
           
protected static int NUM_MESSAGES_TO_SEND
           
protected  boolean transacted
           
 
Fields inherited from class org.mule.tck.AbstractMuleTestCase
logger, prereqs
 
Constructor Summary
AbstractProviderFunctionalTestCase()
           
 
Method Summary
 void afterInitialise()
           
protected abstract  UMOConnector createConnector()
           
 EventCallback createEventCallback()
           
protected  UMOEndpoint createInboundEndpoint()
          Implementing tests can overide this to add further configuration to the inbound endpoint
protected  UMOEndpoint createOutboundEndpoint()
          Implementing tests can overide this to add further configuration to the outbound endpoint
protected  void doSetUp()
           
protected  void doTearDown()
           
protected abstract  UMOEndpointURI getInDest()
           
protected abstract  UMOEndpointURI getOutDest()
           
static MuleDescriptor getTestDescriptor(String name, String implementation)
           
 UMOComponent initialiseComponent(UMODescriptor descriptor, EventCallback callback)
           
protected abstract  void receiveAndTestResults()
           
protected abstract  void sendTestData(int iterations)
           
 void testSend()
           
 
Methods inherited from class org.mule.tck.AbstractMuleTestCase
addTest, checkPreReqs, disposeManager, finalize, getManager, getName, getTestComponent, getTestConnector, getTestEndpoint, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEventContext, getTestInfo, getTestManager, getTestSession, getTestTransformer, isOffline, isPrereqsMet, setDisposeManagerPerSuite, setUp, suitePostSetUp, suitePostTearDown, suitePreSetUp, suitePreTearDown, tearDown
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NUM_MESSAGES_TO_SEND

protected static final int NUM_MESSAGES_TO_SEND
See Also:
Constant Field Values

connector

protected UMOConnector connector

manager

protected static UMOManager manager

callbackCalled

protected boolean callbackCalled

callbackCount

protected int callbackCount

transacted

protected boolean transacted

descriptor

protected MuleDescriptor descriptor
Constructor Detail

AbstractProviderFunctionalTestCase

public AbstractProviderFunctionalTestCase()
Method Detail

doSetUp

protected void doSetUp()
                throws Exception
Overrides:
doSetUp in class AbstractMuleTestCase
Throws:
Exception

doTearDown

protected void doTearDown()
                   throws Exception
Overrides:
doTearDown in class AbstractMuleTestCase
Throws:
Exception

testSend

public void testSend()
              throws Exception
Throws:
Exception

initialiseComponent

public UMOComponent initialiseComponent(UMODescriptor descriptor,
                                        EventCallback callback)
                                 throws Exception
Throws:
Exception

createOutboundEndpoint

protected UMOEndpoint createOutboundEndpoint()
Implementing tests can overide this to add further configuration to the outbound endpoint

Returns:

createInboundEndpoint

protected UMOEndpoint createInboundEndpoint()
Implementing tests can overide this to add further configuration to the inbound endpoint

Returns:

getTestDescriptor

public static MuleDescriptor getTestDescriptor(String name,
                                               String implementation)

afterInitialise

public void afterInitialise()
                     throws Exception
Throws:
Exception

createEventCallback

public EventCallback createEventCallback()

sendTestData

protected abstract void sendTestData(int iterations)
                              throws Exception
Throws:
Exception

receiveAndTestResults

protected abstract void receiveAndTestResults()
                                       throws Exception
Throws:
Exception

getInDest

protected abstract UMOEndpointURI getInDest()

getOutDest

protected abstract UMOEndpointURI getOutDest()

createConnector

protected abstract UMOConnector createConnector()
                                         throws Exception
Throws:
Exception


Copyright © 2003-2006 MuleSource Inc.. All Rights Reserved.