View Javadoc

1   /*
2    * $Id: AbstractSoapResourceEndpointFunctionalTestCase.java 19191 2010-08-25 21:05:23Z tcarlson $
3    * --------------------------------------------------------------------------------------
4    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
5    *
6    * The software in this package is published under the terms of the CPAL v1.0
7    * license, a copy of which has been included with this distribution in the
8    * LICENSE.txt file.
9    */
10  
11  package org.mule.transport.soap.axis;
12  
13  
14  public abstract class AbstractSoapResourceEndpointFunctionalTestCase extends AbstractSoapFunctionalTestCase
15  {
16      
17      @Override
18      public String getConfigResources()
19      {
20          return "axis-" + getTransportProtocol() + "-mule-config.xml";
21      }
22  
23      protected abstract String getTransportProtocol();
24  
25      protected abstract String getSoapProvider();
26  
27      @Override
28      protected String getRequestResponseEndpoint()
29      {
30          return getSoapProvider() + ":" + getTransportProtocol() + "://mycomponent?method=echo";
31      }
32  
33      @Override
34      protected String getReceiveEndpoint()
35      {
36          return getSoapProvider() + ":" + getTransportProtocol() + "://mycomponent2?method=getDate";
37      }
38  
39      @Override
40      protected String getReceiveComplexEndpoint()
41      {
42          return getSoapProvider() + ":" + getTransportProtocol()
43                 + "://mycomponent3?method=getPerson&param=Fred";
44      }
45  
46      @Override
47      protected String getSendReceiveComplexEndpoint1()
48      {
49          return getSoapProvider() + ":" + getTransportProtocol() + "://mycomponent3?method=addPerson";
50      }
51  
52      @Override
53      protected String getSendReceiveComplexEndpoint2()
54      {
55          return getSoapProvider() + ":" + getTransportProtocol()
56                 + "://mycomponent3?method=getPerson&param=Dino";
57      }
58  
59      @Override
60      protected String getReceiveComplexCollectionEndpoint()
61      {
62          return getSoapProvider() + ":" + getTransportProtocol() + "://mycomponent3?method=getPeople";
63      }
64  
65      @Override
66      protected String getDispatchAsyncComplexEndpoint1()
67      {
68          return getSoapProvider() + ":" + getTransportProtocol() + "://mycomponent3?method=addPerson";
69      }
70  
71      @Override
72      protected String getDispatchAsyncComplexEndpoint2()
73      {
74          return getSoapProvider() + ":" + getTransportProtocol()
75                 + "://mycomponent3?method=getPerson&param=Betty";
76      }
77  
78      @Override
79      protected String getTestExceptionEndpoint()
80      {
81          return getSoapProvider() + ":" + getTransportProtocol() + "://mycomponent3?method=addPerson";
82      }
83  
84      @Override
85      protected String getWsdlEndpoint()
86      {
87          return getSoapProvider() + ":" + getTransportProtocol() + "://mycomponent?wsdl";
88      }
89  
90      @Override
91      public void testLocationUrlInWSDL() throws Exception
92      {
93          // Only works with socket based protocols
94      }
95  
96  }