View Javadoc

1   /*
2    * $Id: JmsRemoteSyncMule2868TestCase.java 19191 2010-08-25 21:05:23Z tcarlson $
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.mule.api.MuleException;
14  import org.mule.api.MuleMessage;
15  import org.mule.module.client.MuleClient;
16  
17  import org.junit.Test;
18  
19  public class JmsRemoteSyncMule2868TestCase extends AbstractJmsFunctionalTestCase
20  {
21  
22      protected String getConfigResources()
23      {
24          return "integration/jms-remote-sync-mule2868.xml";
25      }
26  
27      @Test
28      public void testMule2868() throws MuleException
29      {
30          MuleClient muleClient = new MuleClient(muleContext);
31          MuleMessage response = muleClient.send("vm://in", "test", null);
32          assertEquals("test Received", response.getPayload());
33      }
34  
35  }