View Javadoc

1   /*
2    * $Id: AbstractSoapUrlEndpointFunctionalTestCase.java 19841 2010-10-05 23:17:20Z dzapata $
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 AbstractSoapUrlEndpointFunctionalTestCase extends AbstractSoapFunctionalTestCase
15  {
16      protected abstract String getTransportProtocol();
17  
18      protected abstract String getSoapProvider();
19  
20      protected String getComponentWithoutInterfacesEndpoint()
21      {
22          return getSoapProvider() + ":" + getTransportProtocol() + "://localhost:" + getPorts().get(2) + "/mule/test";
23      }
24  
25      @Override
26      protected String getRequestResponseEndpoint()
27      {
28          return getSoapProvider() + ":" + getTransportProtocol()
29                 + "://localhost:" + getPorts().get(0) + "/mule/mycomponent?method=echo";
30      }
31  
32      @Override
33      protected String getReceiveEndpoint()
34      {
35          return getSoapProvider() + ":" + getTransportProtocol()
36                 + "://localhost:" + getPorts().get(1) + "/mule/services/mycomponent2?method=getDate";
37      }
38  
39      @Override
40      protected String getReceiveComplexEndpoint()
41      {
42          return getSoapProvider() + ":" + getTransportProtocol()
43                 + "://localhost:" + getPorts().get(1) + "/mycomponent3?method=getPerson&param=Fred";
44      }
45  
46      @Override
47      protected String getSendReceiveComplexEndpoint1()
48      {
49          return getSoapProvider() + ":" + getTransportProtocol()
50                 + "://localhost:" + getPorts().get(1) + "/mycomponent3?method=addPerson";
51      }
52  
53      @Override
54      protected String getSendReceiveComplexEndpoint2()
55      {
56          return getSoapProvider() + ":" + getTransportProtocol()
57                 + "://localhost:" + getPorts().get(1) + "/mycomponent3?method=getPerson&param=Dino";
58      }
59  
60      @Override
61      protected String getReceiveComplexCollectionEndpoint()
62      {
63          return getSoapProvider() + ":" + getTransportProtocol()
64                 + "://localhost:" + getPorts().get(1) + "/mycomponent3?method=getPeople";
65      }
66  
67      @Override
68      protected String getDispatchAsyncComplexEndpoint1()
69      {
70          return getSoapProvider() + ":" + getTransportProtocol()
71                 + "://localhost:" + getPorts().get(1) + "/mycomponent3?method=addPerson";
72      }
73  
74      @Override
75      protected String getDispatchAsyncComplexEndpoint2()
76      {
77          return getSoapProvider() + ":" + getTransportProtocol()
78                 + "://localhost:" + getPorts().get(1) + "/mycomponent3?method=getPerson&param=Betty";
79      }
80  
81      @Override
82      protected String getTestExceptionEndpoint()
83      {
84          return getSoapProvider() + ":" + getTransportProtocol()
85                 + "://localhost:" + getPorts().get(1) + "/mycomponent3?method=addPerson";
86      }
87  
88      @Override
89      protected String getWsdlEndpoint()
90      {
91          return getTransportProtocol() + "://localhost:" + getPorts().get(0) + "/mule/mycomponent?wsdl";
92      }
93  
94  }