org.mule.test.integration.providers.jms
Class AbstractJmsFunctionalTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.mule.tck.AbstractMuleTestCase
              extended by org.mule.test.integration.providers.jms.AbstractJmsFunctionalTestCase
All Implemented Interfaces:
Test, org.mule.tck.TestCaseWatchdogTimeoutHandler
Direct Known Subclasses:
AbstractJmsQueueFunctionalTestCase, AbstractJmsTransactionFunctionalTest

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


Nested Class Summary
 
Nested classes/interfaces inherited from class org.mule.tck.AbstractMuleTestCase
org.mule.tck.AbstractMuleTestCase.TestInfo
 
Field Summary
protected  boolean callbackCalled
           
protected  Connection cnn
           
protected  org.mule.providers.jms.JmsConnector connector
           
static String CONNECTOR_NAME
           
protected  Message currentMsg
           
static String DEFAULT_DL_QUEUE
           
static String DEFAULT_DL_TOPIC
           
static String DEFAULT_IN_QUEUE
           
static String DEFAULT_IN_TOPIC
           
static String DEFAULT_MESSAGE
           
static String DEFAULT_OUT_QUEUE
           
static String DEFAULT_OUT_TOPIC
           
protected  int eventCount
           
static long LOCK_WAIT
           
protected  Log logger
           
protected  org.mule.umo.model.UMOModel model
           
 
Fields inherited from class org.mule.tck.AbstractMuleTestCase
IGNORED_DOT_MULE_DIRS
 
Constructor Summary
AbstractJmsFunctionalTestCase()
           
 
Method Summary
 void afterInitialise()
           
abstract  org.mule.providers.jms.JmsConnector createConnector()
           
protected  void doSetUp()
           
protected  void doTearDown()
           
protected  void drainDestinations()
           
abstract  ConnectionFactory getConnectionFactory()
           
protected  org.mule.umo.endpoint.UMOEndpointURI getInDest()
           
protected  org.mule.umo.endpoint.UMOEndpointURI getOutDest()
           
protected  Connection getSenderConnection()
           
 void initialiseComponent(org.mule.tck.functional.EventCallback callback)
           
protected  Message receive(String dest, long timeout)
           
protected  void send(String payload, boolean transacted, int ack, String replyTo)
           
 boolean useTopics()
           
 
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

DEFAULT_IN_QUEUE

public static final String DEFAULT_IN_QUEUE
See Also:
Constant Field Values

DEFAULT_OUT_QUEUE

public static final String DEFAULT_OUT_QUEUE
See Also:
Constant Field Values

DEFAULT_DL_QUEUE

public static final String DEFAULT_DL_QUEUE
See Also:
Constant Field Values

DEFAULT_IN_TOPIC

public static final String DEFAULT_IN_TOPIC
See Also:
Constant Field Values

DEFAULT_OUT_TOPIC

public static final String DEFAULT_OUT_TOPIC
See Also:
Constant Field Values

DEFAULT_DL_TOPIC

public static final String DEFAULT_DL_TOPIC
See Also:
Constant Field Values

DEFAULT_MESSAGE

public static final String DEFAULT_MESSAGE
See Also:
Constant Field Values

CONNECTOR_NAME

public static final String CONNECTOR_NAME
See Also:
Constant Field Values

LOCK_WAIT

public static final long LOCK_WAIT
See Also:
Constant Field Values

connector

protected org.mule.providers.jms.JmsConnector connector

callbackCalled

protected volatile boolean callbackCalled

cnn

protected Connection cnn

currentMsg

protected volatile Message currentMsg

eventCount

protected volatile int eventCount

model

protected org.mule.umo.model.UMOModel model

logger

protected final transient Log logger
Constructor Detail

AbstractJmsFunctionalTestCase

public AbstractJmsFunctionalTestCase()
Method Detail

doSetUp

protected void doSetUp()
                throws Exception
Overrides:
doSetUp in class org.mule.tck.AbstractMuleTestCase
Throws:
Exception

getSenderConnection

protected Connection getSenderConnection()
                                  throws Exception
Throws:
Exception

doTearDown

protected void doTearDown()
                   throws Exception
Overrides:
doTearDown in class org.mule.tck.AbstractMuleTestCase
Throws:
Exception

drainDestinations

protected void drainDestinations()
                          throws Exception
Throws:
Exception

getConnectionFactory

public abstract ConnectionFactory getConnectionFactory()
                                                throws Exception
Throws:
Exception

initialiseComponent

public void initialiseComponent(org.mule.tck.functional.EventCallback callback)
                         throws Exception
Throws:
Exception

afterInitialise

public void afterInitialise()
                     throws Exception
Throws:
Exception

getInDest

protected org.mule.umo.endpoint.UMOEndpointURI getInDest()

getOutDest

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

send

protected void send(String payload,
                    boolean transacted,
                    int ack,
                    String replyTo)
             throws JMSException
Throws:
JMSException

receive

protected Message receive(String dest,
                          long timeout)
                   throws JMSException
Throws:
JMSException

useTopics

public boolean useTopics()

createConnector

public abstract org.mule.providers.jms.JmsConnector createConnector()
                                                             throws Exception
Throws:
Exception


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