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