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.module.ibeans;
8   
9   import org.mule.api.transport.Connector;
10  import org.mule.transport.AbstractConnectorTestCase;
11  import org.mule.transport.ibean.IBeansConnector;
12  
13  import org.junit.Test;
14  
15  public class IBeansConnectorTestCase extends AbstractConnectorTestCase
16  {
17      @Override
18      public Connector createConnector() throws Exception
19      {
20          /* IMPLEMENTATION NOTE: Create and initialise an instance of your
21             connector here. Do not actually call the connect method. */
22  
23          IBeansConnector connector = new IBeansConnector(muleContext);
24          connector.setName("Test");
25          // TODO Set any additional properties on the connector here
26          return connector;
27      }
28  
29      @Override
30      public String getTestEndpointURI()
31      {
32          return "ibean://hostip.getHostInfo";
33      }
34  
35      @Override
36      public Object getValidMessage() throws Exception
37      {
38          return "123.34.56.7";
39      }
40  
41      @Test
42      public void testProperties() throws Exception
43      {
44          // TODO test setting and retrieving any custom properties on the
45          // Connector as necessary
46      }
47  
48      @Override
49      public void testConnectorMessageRequesterFactory() throws Exception
50      {
51          //No support for Message Requester
52      }
53  
54      @Override
55      public void testConnectorListenerSupport() throws Exception
56      {
57          //No support for Message Receiver
58      }
59  }