1
2
3
4
5
6
7
8
9
10
11 package org.mule.providers.soap.axis;
12
13 import org.mule.config.ExceptionHelper;
14 import org.mule.config.builders.QuickConfigurationBuilder;
15 import org.mule.tck.providers.soap.AbstractSoapUrlEndpointFunctionalTestCase;
16 import org.mule.umo.UMOException;
17 import org.mule.umo.lifecycle.InitialisationException;
18
19 public class AxisConnectorHttpFunctionalTestCase extends AbstractSoapUrlEndpointFunctionalTestCase
20 {
21
22 public static class ComponentWithoutInterfaces
23 {
24 public String echo(String msg)
25 {
26 return msg;
27 }
28 }
29
30 public String getConfigResources()
31 {
32 return "axis-" + getTransportProtocol() + "-mule-config.xml";
33 }
34
35 protected String getTransportProtocol()
36 {
37 return "http";
38 }
39
40 protected String getSoapProvider()
41 {
42 return "axis";
43 }
44
45
46
47
48
49
50
51
52 public void testComponentWithoutInterfaces() throws Throwable
53 {
54 try
55 {
56 QuickConfigurationBuilder builder = new QuickConfigurationBuilder();
57 builder.registerComponent(ComponentWithoutInterfaces.class.getName(),
58 "testComponentWithoutInterfaces", getComponentWithoutInterfacesEndpoint(), null, null);
59 fail();
60 }
61 catch (UMOException e)
62 {
63 e = ExceptionHelper.getRootMuleException(e);
64 assertTrue(e instanceof InitialisationException);
65 }
66 }
67
68 }