1   /*
2    * $Id: ServletConnectorTestCase.java 12238 2008-07-06 22:13:50Z rossmason $
3    * --------------------------------------------------------------------------------------
4    * Copyright (c) MuleSource, Inc.  All rights reserved.  http://www.mulesource.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.servlet;
12  
13  import org.mule.api.transport.Connector;
14  import org.mule.transport.AbstractConnectorTestCase;
15  
16  public class ServletConnectorTestCase extends AbstractConnectorTestCase
17  {
18  
19      // @Override
20      public Connector createConnector() throws Exception
21      {
22          ServletConnector c = new ServletConnector();
23          c.setName("test");
24          return c;
25      }
26  
27      public String getTestEndpointURI()
28      {
29          return "servlet://testServlet";
30      }
31  
32      public Object getValidMessage() throws Exception
33      {
34          return HttpRequestMessageAdapterTestCase.getMockRequest("test message");
35      }
36  
37      public void testConnectorMessageDispatcherFactory() throws Exception
38      {
39          // there is no DispatcherFactory for the servlet connector
40      }
41  
42      public void testConnectorMessageDispatcher() throws Exception
43      {
44          // therefore we have no dispatchers
45      }
46  
47  }