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.mule.tck.testmodels.fruit.Apple;
10  
11  import org.junit.Test;
12  
13  /**
14   * Message is sent to and received from simple queue using compression in between
15   */
16  public class JmsQueueWithCompressionTestCase extends AbstractJmsFunctionalTestCase
17  {
18      protected String getConfigResources()
19      {
20          return "integration/jms-queue-with-compression.xml";
21      }
22  
23      @Test
24      public void testJmsQueue() throws Exception
25      {
26          // Lets test it doesn't blow up with serialized objects
27          dispatchMessage(new Apple());
28          receiveMessage();
29          receive(scenarioNotReceive);
30      }
31  
32      @Test
33      public void testMultipleSend() throws Exception
34      {
35          dispatchMessage();
36          dispatchMessage();
37          dispatchMessage();
38          receiveMessage();
39          receiveMessage();
40          receiveMessage();
41          receive(scenarioNotReceive);
42      }
43  }