View Javadoc

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