1   /*
2    * $Id: JmsQueueTestCase.java 10787 2008-02-12 18:51:50Z dfeist $
3    * --------------------------------------------------------------------------------------
4    * Copyright (c) MuleSource, Inc.  All rights reserved.  http://www.mulesource.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  package org.mule.transport.jms.integration;
11  
12  /**
13   * Message is sent to and received from simple queue.
14   */
15  public class JmsQueueTestCase extends AbstractJmsFunctionalTestCase
16  {
17      protected String getConfigResources()
18      {
19          return "providers/activemq/jms-queue.xml";
20      }
21  
22      public void testJmsQueue() throws Exception
23      {
24          dispatchMessage();
25          receiveMessage();
26          receive(scenarioNotReceive);
27      }
28  
29      public void testMultipleSend() throws Exception
30      {
31          dispatchMessage();
32          dispatchMessage();
33          dispatchMessage();
34          receiveMessage();
35          receiveMessage();
36          receiveMessage();
37          receive(scenarioNotReceive);
38      }
39  }