1
2
3
4
5
6
7 package org.mule.transport.soap.axis;
8
9 import org.mule.api.MuleMessage;
10 import org.mule.module.client.MuleClient;
11 import org.mule.tck.junit4.FunctionalTestCase;
12 import org.mule.tck.junit4.rule.DynamicPort;
13
14 import org.junit.Rule;
15 import org.junit.Test;
16
17 import static org.junit.Assert.assertNotNull;
18
19 public class VmToAxisProxyTestCase extends FunctionalTestCase
20 {
21
22 @Rule
23 public DynamicPort dynamicPort = new DynamicPort("port1");
24
25 @Override
26 protected String getConfigResources()
27 {
28 return "vm-to-axis-proxy-mule-config.xml";
29 }
30
31 @Test
32 public void testWSProxy() throws Exception
33 {
34 if (isOffline("org.mule.transport.soap.axis.VmToAxisProxyTestCase.testWSProxy()"))
35 {
36 return;
37 }
38
39 MuleClient client = new MuleClient(muleContext);
40 MuleMessage result = client.send("vm://proxy", "ibm", null);
41 assertNotNull(result);
42 }
43
44 }