View Javadoc

1   /*
2    * $Id: JmsSingleTransactionAlwaysBeginConfigurationTestCase.java 14304 2009-03-15 11:19:11Z dfeist $
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      protected String getConfigResources()
25      {
26          return "integration/transactions/local/jms-single-tx-single-service-join-if-possible.xml";
27      }
28  
29      @Test
30      public void testAlwaysJoin() throws Exception
31      {
32          // no-op, investigating why expected failure doesn't occur
33          /*
34          scenarioCommit.setInputDestinationName(JMS_QUEUE_INPUT_CONF_D);
35          scenarioRollback.setInputDestinationName(JMS_QUEUE_INPUT_CONF_D);
36          scenarioNotReceive.setInputDestinationName(JMS_QUEUE_INPUT_CONF_D);
37          scenarioCommit.setOutputDestinationName(JMS_QUEUE_OUTPUT_CONF_D);
38          scenarioRollback.setOutputDestinationName(JMS_QUEUE_OUTPUT_CONF_D);
39          scenarioNotReceive.setOutputDestinationName(JMS_QUEUE_OUTPUT_CONF_D);
40  
41          runTransactionFail("testAlwaysJoin");
42          */
43      }
44  }