View Javadoc

1   /*
2    * $Id: JmsSingleTransactionNoneTestCase.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;
12  
13  import org.junit.Test;
14  
15  /**
16   * Send and recieve JmsMessage without any tx
17   */
18  public class JmsSingleTransactionNoneTestCase extends AbstractJmsFunctionalTestCase
19  {
20  
21      @Override
22      protected String getConfigResources()
23      {
24          return "integration/jms-single-tx-NONE.xml";
25      }
26  
27      @Override
28      protected void doSetUp() throws Exception
29      {
30          super.doSetUp();
31  
32          purge(getInboundQueueName());
33          purge(getJmsConfig().getMiddleDestinationName());
34          purge(getOutboundQueueName());
35      }
36  
37      @Test
38      public void testNoneTx() throws Exception
39      {
40          send(scenarioNoTx);
41          receive(scenarioNoTx);
42          receive(scenarioNotReceive);
43      }
44  
45  }