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.ajax;
8   
9   import org.mule.api.transport.Connector;
10  import org.mule.transport.AbstractConnectorTestCase;
11  import org.mule.transport.ajax.container.AjaxServletConnector;
12  
13  public class AjaxServletConnectorTestCase extends AbstractConnectorTestCase
14  {
15      public Connector createConnector() throws Exception
16      {
17          AjaxServletConnector c = new AjaxServletConnector(muleContext);
18          c.setName("test");
19          c.setInitialStateStopped(false);
20          return c;
21      }
22  
23      public Object getValidMessage() throws Exception
24      {
25          return "{\"value1\" : \"foo\", \"value2\" : \"bar\"}";
26      }
27  
28      public String getTestEndpointURI()
29      {
30          return "ajax-servlet:///service/request";
31      }
32  }