1 /*
2 * $Id: JmsQueueWithCompressionTestCase.java 11754 2008-05-14 15:55:08Z rossmason $
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 import org.mule.tck.testmodels.fruit.Apple;
13
14 /**
15 * Message is sent to and received from simple queue using compression in between
16 */
17 public class JmsQueueWithCompressionTestCase extends AbstractJmsFunctionalTestCase
18 {
19 protected String getConfigResources()
20 {
21 return "providers/activemq/jms-queue-with-compression.xml";
22 }
23
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 public void testMultipleSend() throws Exception
33 {
34 dispatchMessage();
35 dispatchMessage();
36 dispatchMessage();
37 receiveMessage();
38 receiveMessage();
39 receiveMessage();
40 receive(scenarioNotReceive);
41 }
42 }