org.mule.test.integration.providers.jms
Class AbstractJmsTransactionFunctionalTest
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.mule.tck.AbstractMuleTestCase
org.mule.test.integration.providers.jms.AbstractJmsFunctionalTestCase
org.mule.test.integration.providers.jms.AbstractJmsTransactionFunctionalTest
- All Implemented Interfaces:
- Test, org.mule.tck.TestCaseWatchdogTimeoutHandler
- Direct Known Subclasses:
- ActiveMQJmsTransactionFunctionalTestCase, ActiveMQJmsTransactionMule2071TestCase
public abstract class AbstractJmsTransactionFunctionalTest
- extends AbstractJmsFunctionalTestCase
AbstractJmsTransactionFunctionalTest
is a base class for all JMS
based functional tests with or without transactions.
Nested classes/interfaces inherited from class org.mule.tck.AbstractMuleTestCase |
org.mule.tck.AbstractMuleTestCase.TestInfo |
Fields inherited from class org.mule.test.integration.providers.jms.AbstractJmsFunctionalTestCase |
callbackCalled, cnn, connector, CONNECTOR_NAME, currentMsg, DEFAULT_DL_QUEUE, DEFAULT_DL_TOPIC, DEFAULT_IN_QUEUE, DEFAULT_IN_TOPIC, DEFAULT_MESSAGE, DEFAULT_OUT_QUEUE, DEFAULT_OUT_TOPIC, eventCount, LOCK_WAIT, logger, model |
Fields inherited from class org.mule.tck.AbstractMuleTestCase |
IGNORED_DOT_MULE_DIRS |
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.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 |
SEND_NOT_TRANSACTED
public static final int SEND_NOT_TRANSACTED
- See Also:
- Constant Field Values
SEND_TRANSACTED_ALWAYS
public static final int SEND_TRANSACTED_ALWAYS
- See Also:
- Constant Field Values
SEND_TRANSACTED_IF_POSSIBLE_WITH_TRANSACTION
public static final int SEND_TRANSACTED_IF_POSSIBLE_WITH_TRANSACTION
- See Also:
- Constant Field Values
SEND_TRANSACTED_IF_POSSIBLE_WITHOUT_TRANSACTION
public static final int SEND_TRANSACTED_IF_POSSIBLE_WITHOUT_TRANSACTION
- See Also:
- Constant Field Values
SEND_TRANSACTED_ROLLBACK
public static final int SEND_TRANSACTED_ROLLBACK
- See Also:
- Constant Field Values
CLEANUP
public static final int CLEANUP
- See Also:
- Constant Field Values
TRANSACTED_REDELIVERY_TO_DL_DESTINATION
public static final int TRANSACTED_REDELIVERY_TO_DL_DESTINATION
- See Also:
- Constant Field Values
ALL
public static final int ALL
- See Also:
- Constant Field Values
currentTx
protected volatile org.mule.umo.UMOTransaction currentTx
exclusionFlag
protected int exclusionFlag
AbstractJmsTransactionFunctionalTest
public AbstractJmsTransactionFunctionalTest()
exclude
protected void exclude(int flag)
notExcluded
protected boolean notExcluded(int flag)
doSetUp
protected void doSetUp()
throws Exception
- Overrides:
doSetUp
in class AbstractJmsFunctionalTestCase
- Throws:
Exception
doTearDown
protected void doTearDown()
throws Exception
- Overrides:
doTearDown
in class AbstractJmsFunctionalTestCase
- Throws:
Exception
testSendNotTransacted
public void testSendNotTransacted()
throws Exception
- Throws:
Exception
testSendTransactedAlways
public void testSendTransactedAlways()
throws Exception
- Throws:
Exception
testSendTransactedIfPossibleWithTransaction
public void testSendTransactedIfPossibleWithTransaction()
throws Exception
- Throws:
Exception
testSendTransactedIfPossibleWithoutTransaction
public void testSendTransactedIfPossibleWithoutTransaction()
throws Exception
- Throws:
Exception
testSendTransactedRollback
public void testSendTransactedRollback()
throws Exception
- Throws:
Exception
testCleanup
public void testCleanup()
throws Exception
- Throws:
Exception
initialiseComponent
public org.mule.umo.UMOComponent initialiseComponent(org.mule.umo.UMODescriptor descriptor,
byte txBeginAction,
org.mule.tck.functional.EventCallback callback)
throws Exception
- Throws:
Exception
getDescriptor
public static org.mule.umo.UMODescriptor getDescriptor(String name,
String implementation)
afterInitialise
public void afterInitialise()
throws Exception
- Overrides:
afterInitialise
in class AbstractJmsFunctionalTestCase
- Throws:
Exception
getInDest
protected org.mule.umo.endpoint.UMOEndpointURI getInDest()
- Overrides:
getInDest
in class AbstractJmsFunctionalTestCase
getOutDest
protected org.mule.umo.endpoint.UMOEndpointURI getOutDest()
- Overrides:
getOutDest
in class AbstractJmsFunctionalTestCase
getDLDest
protected org.mule.umo.endpoint.UMOEndpointURI getDLDest()
send
protected void send(String payload,
boolean transacted,
int ack)
throws JMSException
- Throws:
JMSException
getAcknowledgementMode
protected int getAcknowledgementMode()
addResultListener
protected void addResultListener(String dest,
CountDownLatch countDown)
throws JMSException
- Throws:
JMSException
getTransactionFactory
public abstract org.mule.umo.UMOTransactionFactory getTransactionFactory()
testTransactedRedeliveryToDLDestination
public void testTransactedRedeliveryToDLDestination()
throws Exception
- Throws:
Exception
Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.