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   * Message is sent to and received from simple queue.
13   */
14  public class JmsQueueTestCase extends AbstractJmsFunctionalTestCase
15  {
16      protected String getConfigResources()
17      {
18          return "integration/jms-queue.xml";
19      }
20  
21      @Test
22      public void testJmsQueue() throws Exception
23      {
24          dispatchMessage();
25          receiveMessage();
26          receive(scenarioNotReceive);
27      }
28  
29      @Test
30      public void testMultipleSend() throws Exception
31      {
32          dispatchMessage();
33          dispatchMessage();
34          dispatchMessage();
35          receiveMessage();
36          receiveMessage();
37          receiveMessage();
38          receive(scenarioNotReceive);
39      }
40  }