1 /*
2 * $Id: JmsSingleTransactionSingleServiceJoinIfPossibleConfigurationTestCase.java 22431 2011-07-18 07:40:35Z dirk.olmes $
3 * --------------------------------------------------------------------------------------
4 * Copyright (c) MuleSoft, Inc. All rights reserved. http://www.mulesoft.com
5 *
6 * The software in this package is published under the terms of the CPAL v1.0
7 * license, a copy of which has been included with this distribution in the
8 * LICENSE.txt file.
9 */
10
11 package org.mule.transport.jms.integration.transactions.local;
12
13 import org.mule.transport.jms.integration.AbstractJmsSingleTransactionSingleServiceTestCase;
14
15 import org.junit.Test;
16
17 /**
18 * Test all combinations of (inbound) JOIN_IF_POSSIBLE. They should all pass, except
19 * for ALWAYS_JOIN on the outbound endpoint, since no transaction should be created by JOIN_IF_POSSIBLE.
20 */
21 public class JmsSingleTransactionSingleServiceJoinIfPossibleConfigurationTestCase extends
22 AbstractJmsSingleTransactionSingleServiceTestCase
23 {
24
25 @Override
26 protected String getConfigResources()
27 {
28 return "integration/transactions/local/jms-single-tx-single-service-join-if-possible.xml";
29 }
30
31 @Test
32 public void testAlwaysJoin() throws Exception
33 {
34 // no-op, investigating why expected failure doesn't occur
35 /*
36 scenarioCommit.setInputDestinationName(JMS_QUEUE_INPUT_CONF_D);
37 scenarioRollback.setInputDestinationName(JMS_QUEUE_INPUT_CONF_D);
38 scenarioNotReceive.setInputDestinationName(JMS_QUEUE_INPUT_CONF_D);
39 scenarioCommit.setOutputDestinationName(JMS_QUEUE_OUTPUT_CONF_D);
40 scenarioRollback.setOutputDestinationName(JMS_QUEUE_OUTPUT_CONF_D);
41 scenarioNotReceive.setOutputDestinationName(JMS_QUEUE_OUTPUT_CONF_D);
42
43 runTransactionFail("testAlwaysJoin");
44 */
45 }
46 }