1
2
3
4
5
6
7
8
9
10
11 package org.mule.module.ibeans;
12
13 import org.mule.api.endpoint.InboundEndpoint;
14 import org.mule.tck.AbstractMuleTestCase;
15 import org.mule.transport.ibean.IBeansConnector;
16
17 public class IBeansConnectorFactoryTestCase extends AbstractMuleTestCase
18 {
19
20
21
22 public void testCreateFromFactory() throws Exception
23 {
24 InboundEndpoint endpoint = muleContext.getRegistry()
25 .lookupEndpointFactory().getInboundEndpoint(getEndpointURI());
26 assertNotNull(endpoint);
27 assertNotNull(endpoint.getConnector());
28 assertTrue(endpoint.getConnector() instanceof IBeansConnector);
29 assertEquals(getEndpointURI(), endpoint.getEndpointURI().toString());
30 }
31
32 public String getEndpointURI()
33 {
34 return "ibean://hostip.getHostInfo";
35 }
36 }