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.soap.axis;
8   
9   public abstract class AbstractSoapResourceEndpointFunctionalTestCase extends AbstractSoapFunctionalTestCase
10  {
11      
12      @Override
13      public String getConfigResources()
14      {
15          return "axis-" + getTransportProtocol() + "-mule-config.xml";
16      }
17  
18      protected abstract String getTransportProtocol();
19  
20      protected abstract String getSoapProvider();
21  
22      @Override
23      protected String getRequestResponseEndpoint()
24      {
25          return getSoapProvider() + ":" + getTransportProtocol() + "://mycomponent?method=echo";
26      }
27  
28      @Override
29      protected String getReceiveEndpoint()
30      {
31          return getSoapProvider() + ":" + getTransportProtocol() + "://mycomponent2?method=getDate";
32      }
33  
34      @Override
35      protected String getReceiveComplexEndpoint()
36      {
37          return getSoapProvider() + ":" + getTransportProtocol()
38                 + "://mycomponent3?method=getPerson&param=Fred";
39      }
40  
41      @Override
42      protected String getSendReceiveComplexEndpoint1()
43      {
44          return getSoapProvider() + ":" + getTransportProtocol() + "://mycomponent3?method=addPerson";
45      }
46  
47      @Override
48      protected String getSendReceiveComplexEndpoint2()
49      {
50          return getSoapProvider() + ":" + getTransportProtocol()
51                 + "://mycomponent3?method=getPerson&param=Dino";
52      }
53  
54      @Override
55      protected String getReceiveComplexCollectionEndpoint()
56      {
57          return getSoapProvider() + ":" + getTransportProtocol() + "://mycomponent3?method=getPeople";
58      }
59  
60      @Override
61      protected String getDispatchAsyncComplexEndpoint1()
62      {
63          return getSoapProvider() + ":" + getTransportProtocol() + "://mycomponent3?method=addPerson";
64      }
65  
66      @Override
67      protected String getDispatchAsyncComplexEndpoint2()
68      {
69          return getSoapProvider() + ":" + getTransportProtocol()
70                 + "://mycomponent3?method=getPerson&param=Betty";
71      }
72  
73      @Override
74      protected String getTestExceptionEndpoint()
75      {
76          return getSoapProvider() + ":" + getTransportProtocol() + "://mycomponent3?method=addPerson";
77      }
78  
79      @Override
80      protected String getWsdlEndpoint()
81      {
82          return getSoapProvider() + ":" + getTransportProtocol() + "://mycomponent?wsdl";
83      }
84  
85      @Override
86      public void testLocationUrlInWSDL() throws Exception
87      {
88          // Only works with socket based protocols
89      }
90  
91  }