1
2
3
4
5
6
7
8
9
10
11 package org.mule.transport.cxf;
12
13 import org.mule.api.MuleMessage;
14 import org.mule.module.client.MuleClient;
15 import org.mule.tck.providers.soap.AbstractSoapResourceEndpointFunctionalTestCase;
16
17 import java.util.HashMap;
18 import java.util.Map;
19
20 public class CxfConnectorVMFunctionalTestCase extends AbstractSoapResourceEndpointFunctionalTestCase
21 {
22
23 public void testWSDL() throws Throwable
24 {
25 MuleClient client = new MuleClient();
26
27 Map<String,Object> props = new HashMap<String, Object>();
28 props.put("http.method", "GET");
29
30 MuleMessage response = client.send("http://localhost:63081/test?wsdl", "", props);
31
32 assertTrue(response.getPayloadAsString().indexOf("http://localhost:63081/test") != -1);
33
34
35 testRequestResponse();
36 }
37
38 public String getConfigResources()
39 {
40 return getTransportProtocol() + "-mule-config.xml";
41 }
42
43 protected String getTransportProtocol()
44 {
45 return "vm";
46 }
47
48 protected String getSoapProvider()
49 {
50 return "cxf";
51 }
52
53 }