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.tck.junit4.FunctionalTestCase;
10  import org.mule.transport.ibean.IBeansConnector;
11  
12  import org.junit.Test;
13  
14  import static org.junit.Assert.assertNotNull;
15  import static org.junit.Assert.assertTrue;
16  
17  public class IBeansNamespaceHandlerTestCase extends FunctionalTestCase
18  {
19  
20      @Override
21      protected String getConfigResources()
22      {
23          //TODO You'll need to edit this file to configure the properties specific to your transport
24          return "ibeans-namespace-config.xml";
25      }
26  
27      @Test
28      public void testIbeansConfig() throws Exception
29      {
30          IBeansConnector c = (IBeansConnector) muleContext.getRegistry().lookupConnector("ibeansConnector");
31          assertNotNull(c);
32          assertTrue(c.isConnected());
33          assertTrue(c.isStarted());
34  
35          //TODO Assert specific properties are configured correctly
36      }
37  
38  }