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