View Javadoc

1   /*
2    * $Id: JmsSingleTransactionSingleServiceNoneConfigurationTestCase.java 20320 2010-11-24 15:03:31Z 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) NONE. They should all pass, except for
19   * ALWAYS_JOIN on the outbound endpoint.
20   */
21  public class JmsSingleTransactionSingleServiceNoneConfigurationTestCase extends
22      AbstractJmsSingleTransactionSingleServiceTestCase
23  {
24      protected String getConfigResources()
25      {
26          return "integration/transactions/local/jms-single-tx-single-service-none.xml";
27      }
28  
29      @Test
30      public void testAlwaysJoin() throws Exception
31      {
32          scenarioCommit.setInputDestinationName(JMS_QUEUE_INPUT_CONF_D);
33          scenarioRollback.setInputDestinationName(JMS_QUEUE_INPUT_CONF_D);
34          scenarioNotReceive.setInputDestinationName(JMS_QUEUE_INPUT_CONF_D);
35          scenarioCommit.setOutputDestinationName(JMS_QUEUE_OUTPUT_CONF_D);
36          scenarioRollback.setOutputDestinationName(JMS_QUEUE_OUTPUT_CONF_D);
37          scenarioNotReceive.setOutputDestinationName(JMS_QUEUE_OUTPUT_CONF_D);
38  
39          runTransactionFail("testAlwaysJoin");
40      }
41  }