1
2
3
4
5
6
7 package org.mule.transport.ssl;
8
9 import org.mule.api.endpoint.ImmutableEndpoint;
10 import org.mule.tck.junit4.AbstractMuleContextTestCase;
11
12 import org.junit.Test;
13
14 import static org.junit.Assert.assertEquals;
15 import static org.junit.Assert.assertNotNull;
16
17 public class ConnectorFactoryTestCase extends AbstractMuleContextTestCase
18 {
19
20 @Test
21 public void testCreate() throws Exception
22 {
23 ImmutableEndpoint endpoint =
24 muleContext.getEndpointFactory().getInboundEndpoint("ssl://localhost:7877");
25 assertNotNull(endpoint);
26 assertNotNull(endpoint.getConnector());
27 assertEquals("ssl://localhost:7877", endpoint.getEndpointURI().getAddress());
28 }
29
30 }