View Javadoc

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