1 /* 2 * $Id: JettyNamespaceHandlerTestCase.java 19191 2010-08-25 21:05:23Z tcarlson $ 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.transport.servlet.jetty; 12 13 import org.mule.tck.FunctionalTestCase; 14 15 public class JettyNamespaceHandlerTestCase extends FunctionalTestCase 16 { 17 18 protected String getConfigResources() 19 { 20 return "jetty-namespace-config.xml"; 21 } 22 23 public void testConnectorProperties() 24 { 25 JettyHttpConnector connector = (JettyHttpConnector) muleContext.getRegistry().lookupConnector("jettyConnector"); 26 assertNotNull(connector.getConfigFile()); 27 assertEquals("jetty-config.xml", connector.getConfigFile()); 28 } 29 30 /* See MULE-3603 31 public void testEndpointConfig() throws MuleException 32 { 33 InboundEndpoint endpoint = 34 muleContext.getRegistry().lookupEndpointBuilder("endpoint").buildInboundEndpoint(); 35 assertNotNull(endpoint); 36 // is the following test correct? 37 // Can't test it now, the config for the endpoint isn't even valid 38 assertEquals("http://localhost:60223/", endpoint.getEndpointURI().getAddress()); 39 } 40 */ 41 42 }