View Javadoc
1   /*
2    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
3    * The software in this package is published under the terms of the CPAL v1.0
4    * license, a copy of which has been included with this distribution in the
5    * LICENSE.txt file.
6    */
7   package org.mule.transport.jms.integration;
8   
9   import org.junit.Test;
10  
11  /**
12   * Send and recieve JmsMessage without any tx
13   */
14  public class JmsSingleTransactionNoneTestCase extends AbstractJmsFunctionalTestCase
15  {
16  
17      @Override
18      protected String getConfigResources()
19      {
20          return "integration/jms-single-tx-NONE.xml";
21      }
22  
23      @Override
24      protected void doSetUp() throws Exception
25      {
26          super.doSetUp();
27  
28          purge(getInboundQueueName());
29          purge(getJmsConfig().getMiddleDestinationName());
30          purge(getOutboundQueueName());
31      }
32  
33      @Test
34      public void testNoneTx() throws Exception
35      {
36          send(scenarioNoTx);
37          receive(scenarioNoTx);
38          receive(scenarioNotReceive);
39      }
40  
41  }