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.jnp;
8   
9   import org.mule.api.transport.Connector;
10  import org.mule.transport.AbstractConnectorTestCase;
11  import org.mule.transport.jnp.JnpConnector;
12  
13  public class JnpConnectorTestCase extends AbstractConnectorTestCase
14  {
15  
16      @Override
17      public Connector createConnector() throws Exception
18      {
19          JnpConnector c = new JnpConnector(muleContext);
20          c.setName("JnpConnector");
21          c.setSecurityManager(null);
22          return c;
23      }
24  
25      public String getTestEndpointURI()
26      {
27          return "jnp://localhost:1099";
28      }
29  
30      public Object getValidMessage() throws Exception
31      {
32          return "Hello".getBytes();
33      }
34  
35  }