|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.mule.tck.AbstractMuleTestCase
org.mule.tck.FunctionalTestCase
org.mule.transport.jms.integration.AbstractJmsFunctionalTestCase
org.mule.transport.jms.integration.AbstractJmsSingleTransactionSingleServiceTestCase
public abstract class AbstractJmsSingleTransactionSingleServiceTestCase
This tests single resource transactions through a single service definition (even though the mule config file will have many service definitions). The idea is to test all possible combinations of single resource transaction types.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.mule.transport.jms.integration.AbstractJmsFunctionalTestCase |
---|
AbstractJmsFunctionalTestCase.AbstractScenario, AbstractJmsFunctionalTestCase.NonTransactedScenario, AbstractJmsFunctionalTestCase.Scenario, AbstractJmsFunctionalTestCase.ScenarioCommit, AbstractJmsFunctionalTestCase.ScenarioNotReceive, AbstractJmsFunctionalTestCase.ScenarioReceive, AbstractJmsFunctionalTestCase.ScenarioRollback |
Nested classes/interfaces inherited from class org.mule.tck.AbstractMuleTestCase |
---|
AbstractMuleTestCase.TestInfo |
Field Summary | |
---|---|
static String |
JMS_QUEUE_INPUT_CONF_A
|
static String |
JMS_QUEUE_INPUT_CONF_B
|
static String |
JMS_QUEUE_INPUT_CONF_C
|
static String |
JMS_QUEUE_INPUT_CONF_D
|
static String |
JMS_QUEUE_INPUT_CONF_E
|
static String |
JMS_QUEUE_OUTPUT_CONF_A
|
static String |
JMS_QUEUE_OUTPUT_CONF_B
|
static String |
JMS_QUEUE_OUTPUT_CONF_C
|
static String |
JMS_QUEUE_OUTPUT_CONF_D
|
static String |
JMS_QUEUE_OUTPUT_CONF_E
|
Fields inherited from class org.mule.transport.jms.integration.AbstractJmsFunctionalTestCase |
---|
BROADCAST_TOPIC_ENDPOINT_KEY, DEFAULT_INPUT_MESSAGE, DEFAULT_OUTPUT_MESSAGE, INBOUND_ENDPOINT_KEY, jmsConfig, logger, MIDDLE_ENDPOINT_KEY, MIDDLE2_ENDPOINT_KEY, MIDDLE3_ENDPOINT_KEY, OUTBOUND_ENDPOINT_KEY, purgeQueuesOnPreSetUp, purgeQueuesOnTearDown, scenarioCommit, scenarioNotReceive, scenarioNoTx, scenarioReceive, scenarioRollback |
Fields inherited from class org.mule.tck.AbstractMuleTestCase |
---|
callbackCalled, CLASSNAME_ANNOTATIONS_CONFIG_BUILDER, DEFAULT_MULE_TEST_TIMEOUT_SECS, IGNORED_DOT_MULE_DIRS, LOCK_TIMEOUT, muleContext, numPorts, ports, PROPERTY_MULE_TEST_TIMEOUT, RECEIVE_TIMEOUT, TEST_MESSAGE, testTimeoutSecs |
Constructor Summary | |
---|---|
AbstractJmsSingleTransactionSingleServiceTestCase()
|
Method Summary | |
---|---|
protected void |
doSetUp()
Exactly the same a AbstractMuleTestCase.setUp() in normal JUnit test cases. |
protected Properties |
getStartUpProperties()
Adds the following properties to the registry so that the Xml configuration files can reference them. |
protected void |
runTransactionFail(String serviceName)
Call this when you expect the transaction to fail |
protected void |
runTransactionPass()
Call this when you expect the message to make it to the outbound endpoint |
void |
testAlwaysBegin()
|
void |
testAlwaysJoin()
|
void |
testBeginOrJoin()
|
void |
testJoinIfPossible()
|
void |
testNone()
|
Methods inherited from class org.mule.transport.jms.integration.AbstractJmsFunctionalTestCase |
---|
after, before, checkConfig, createInputDestination, createJmsConfig, createOutputDestination, dispatchMessage, dispatchMessage, dispatchMessage, doTearDown, getBuilder, getClient, getConnection, getDeadLetterQueueName, getInboundEndpoint, getInboundQueueName, getJmsConfig, getOutboundEndpoint, getOutboundQueueName, getSmallTimeout, getTimeout, isMultipleProviders, jmsProviderConfigs, purge, purgeTopic, purgeTopics, receive, receiveMessage, receiveMessage, receiveMessage, runAsynchronousDispatching, send, setJmsConfig, setMultipleProviders, suitePreSetUp |
Methods inherited from class org.mule.tck.FunctionalTestCase |
---|
getComponent, getComponent, getConfigResources, getFunctionalTestComponent, loadResource, loadResourceAsString |
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 |
---|
public static final String JMS_QUEUE_INPUT_CONF_A
public static final String JMS_QUEUE_OUTPUT_CONF_A
public static final String JMS_QUEUE_INPUT_CONF_B
public static final String JMS_QUEUE_OUTPUT_CONF_B
public static final String JMS_QUEUE_INPUT_CONF_C
public static final String JMS_QUEUE_OUTPUT_CONF_C
public static final String JMS_QUEUE_INPUT_CONF_D
public static final String JMS_QUEUE_OUTPUT_CONF_D
public static final String JMS_QUEUE_INPUT_CONF_E
public static final String JMS_QUEUE_OUTPUT_CONF_E
Constructor Detail |
---|
public AbstractJmsSingleTransactionSingleServiceTestCase()
Method Detail |
---|
protected void doSetUp() throws Exception
AbstractMuleTestCase
AbstractMuleTestCase.setUp()
in normal JUnit test cases. this is called before a test
method has been called.
doSetUp
in class AbstractJmsFunctionalTestCase
Exception
- if something fails that should halt the testcaseprotected Properties getStartUpProperties()
AbstractJmsFunctionalTestCase
JmsVendorConfiguration
implementation)
getStartUpProperties
in class AbstractJmsFunctionalTestCase
public void testNone() throws Exception
Exception
public void testAlwaysBegin() throws Exception
Exception
public void testBeginOrJoin() throws Exception
Exception
public void testAlwaysJoin() throws Exception
Exception
public void testJoinIfPossible() throws Exception
Exception
protected void runTransactionFail(String serviceName) throws Exception
serviceName
-
Exception
protected void runTransactionPass() throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |