org.mule.tck.functional
Class AbstractProviderFunctionalTestCase

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.mule.tck.AbstractMuleTestCase
              extended byorg.mule.tck.functional.AbstractProviderFunctionalTestCase
All Implemented Interfaces:
Test

public abstract class AbstractProviderFunctionalTestCase
extends org.mule.tck.AbstractMuleTestCase


Nested Class Summary
 
Nested classes inherited from class org.mule.tck.AbstractMuleTestCase
org.mule.tck.AbstractMuleTestCase.TestInfo
 
Field Summary
protected  boolean callbackCalled
           
protected  int callbackCount
           
protected  org.mule.umo.provider.UMOConnector connector
           
protected  org.mule.impl.MuleDescriptor descriptor
           
protected static org.mule.umo.manager.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  org.mule.umo.provider.UMOConnector createConnector()
           
 EventCallback createEventCallback()
           
protected  org.mule.umo.endpoint.UMOEndpoint createInboundEndpoint()
          Implementing tests can overide this to add further configuration to the inbound endpoint
protected  org.mule.umo.endpoint.UMOEndpoint createOutboundEndpoint()
          Implementing tests can overide this to add further configuration to the outbound endpoint
protected  void doSetUp()
           
protected  void doTearDown()
           
protected abstract  org.mule.umo.endpoint.UMOEndpointURI getInDest()
           
protected abstract  org.mule.umo.endpoint.UMOEndpointURI getOutDest()
           
static org.mule.impl.MuleDescriptor getTestDescriptor(String name, String implementation)
           
 org.mule.umo.UMOComponent initialiseComponent(org.mule.umo.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 junit.framework.TestCase
countTestCases, createResult, run, run, runBare, 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, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NUM_MESSAGES_TO_SEND

protected static final int NUM_MESSAGES_TO_SEND
See Also:
Constant Field Values

connector

protected org.mule.umo.provider.UMOConnector connector

manager

protected static org.mule.umo.manager.UMOManager manager

callbackCalled

protected boolean callbackCalled

callbackCount

protected int callbackCount

transacted

protected boolean transacted

descriptor

protected org.mule.impl.MuleDescriptor descriptor
Constructor Detail

AbstractProviderFunctionalTestCase

public AbstractProviderFunctionalTestCase()
Method Detail

doSetUp

protected void doSetUp()
                throws Exception
Throws:
Exception

doTearDown

protected void doTearDown()
                   throws Exception
Throws:
Exception

testSend

public void testSend()
              throws Exception
Throws:
Exception

initialiseComponent

public org.mule.umo.UMOComponent initialiseComponent(org.mule.umo.UMODescriptor descriptor,
                                                     EventCallback callback)
                                              throws Exception
Throws:
Exception

createOutboundEndpoint

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

Returns:

createInboundEndpoint

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

Returns:

getTestDescriptor

public static org.mule.impl.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 org.mule.umo.endpoint.UMOEndpointURI getInDest()

getOutDest

protected abstract org.mule.umo.endpoint.UMOEndpointURI getOutDest()

createConnector

protected abstract org.mule.umo.provider.UMOConnector createConnector()
                                                               throws Exception
Throws:
Exception


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